Skip to content
Snippets Groups Projects
Commit 0ffbd6a5 authored by Julian's avatar Julian
Browse files

Develop GraphQL schema in the Core

parent 59191820
No related branches found
No related tags found
1 merge request!1045Introduce Vuetify and GraphQL
...@@ -3,7 +3,7 @@ from graphene_django import DjangoObjectType ...@@ -3,7 +3,7 @@ from graphene_django import DjangoObjectType
from graphene_django.forms.mutation import DjangoModelFormMutation from graphene_django.forms.mutation import DjangoModelFormMutation
from .forms import PersonForm from .forms import PersonForm
from .models import Person from .models import Group, Person
from .util.core_helpers import get_app_module, get_app_packages from .util.core_helpers import get_app_module, get_app_packages
...@@ -12,6 +12,11 @@ class PersonType(DjangoObjectType): ...@@ -12,6 +12,11 @@ class PersonType(DjangoObjectType):
model = Person model = Person
class GroupType(DjangoObjectType):
class Meta:
model = Group
class PersonMutation(DjangoModelFormMutation): class PersonMutation(DjangoModelFormMutation):
person = graphene.Field(PersonType) person = graphene.Field(PersonType)
......
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