We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d26c98 commit 71784eeCopy full SHA for 71784ee
backend/family_tree/family_tree/settings.py
@@ -36,6 +36,7 @@
36
'django.contrib.admin',
37
'django.contrib.auth',
38
'django.contrib.contenttypes',
39
+ 'django_filters',
40
'django.contrib.sessions',
41
'django.contrib.messages',
42
'django.contrib.staticfiles',
backend/family_tree/student/schema.py
@@ -11,4 +11,7 @@ class Meta:
11
class Query(graphene.ObjectType):
12
students=graphene.List(StudentType)
13
14
+ def resolve_students(root,info):
15
+ return Student.objects.all()
16
+
17
schema=graphene.Schema(query=Query)
0 commit comments