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