Beispiel #1
0
 def resolve_userTypes(self, info, **kwargs):
     if "query" in kwargs:
         return parse_query(kwargs["query"], UserTypeModel)
     return UserTypeModel.objects.all()
Beispiel #2
0
 def resolve_stats(self, info, **kwargs):
     if "query" in kwargs:
         return parse_query(kwargs["query"], StatModel)
     return StatModel.objects.all()
Beispiel #3
0
 def resolve_businesses(self, info, **kwargs):
     if "query" in kwargs:
         return parse_query(kwargs["query"], BusinessModel)
     return BusinessModel.objects.all()
Beispiel #4
0
 def resolve_categories(self, info, **kwargs):
     if "query" in kwargs:
         return parse_query(kwargs["query"], CategoryModel)
     return CategoryModel.objects.all()
Beispiel #5
0
 def resolve_files(self, info, **kwargs):
     if "query" in kwargs:
         return parse_query(kwargs["query"], FileModel)
     return FileModel.objects.all()