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())
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())
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())