コード例 #1
0
 def resolve_visualizations(self,
                            info,
                            filters=None,
                            pagination=None,
                            sortings=None):
     qs = VisualizationModel.objects()
     qs = filter_qs(qs, filters)
     qs = pagination_qs(qs, pagination)
     qs = sortings_qs(qs, sortings)
     return list(VisualizationModel.objects().all())
コード例 #2
0
 def resolve_parts(self,
                   info,
                   filters=None,
                   pagination=None,
                   sortings=None):
     qs = PartModel.objects()
     qs = filter_qs(qs, filters)
     qs = pagination_qs(qs, pagination)
     qs = sortings_qs(qs, sortings)
     return list(PartModel.objects().all())
コード例 #3
0
 def resolve_companies(self, info, filters=None, pagination=None, sortings=None):
     qs = CompanyModel.objects()
     qs = filter_qs(qs, filters)
     qs = pagination_qs(qs, pagination)
     qs = sortings_qs(qs, sortings)
     return list(CompanyModel.objects().all())