Skip to content

Commit 2c0ee87

Browse files
committed
added filter fields
1 parent f6b3a4a commit 2c0ee87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/family_tree/student/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ class StudentType(DjangoObjectType):
66
class Meta:
77
model= Student
88
fields= ("id","name","branch","year","picture","homeTown","extraCurriculars","socialMedia", "linkedIn","email","parentId","roll_no")
9+
filter_fields=["id","name","branch","year","email","parentId","roll_no"]
910

1011
class Query(graphene.ObjectType):
11-
all_students=graphene.List(StudentType)
12+
students=graphene.List(StudentType)
1213

1314
schema=graphene.Schema(query=Query)

0 commit comments

Comments
 (0)