Skip to content
Snippets Groups Projects
Commit 70a3eaa1 authored by Julian's avatar Julian
Browse files

Create field for person full name

parent df1383fd
No related branches found
No related tags found
1 merge request!1045Introduce Vuetify and GraphQL
......@@ -16,6 +16,11 @@ class PersonType(DjangoObjectType):
class Meta:
model = Person
full_name = graphene.Field(graphene.String)
def resolve_full_name(root: Person, info, **kwargs):
return root.full_name
class GroupType(DjangoObjectType):
class Meta:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment