code: def filter_query(self, query, filter_info, model):
          
          if filter_info:
              filters = create_filters(model, filter_info, self.resource)
              query = query.filter(*filters)
  
          return query
docs: Filter query according to jsonapi 1.0
  
          :param Query query: sqlalchemy query to sort
          :param filter_info: filter information
          :type filter_info: dict or None
          :param DeclarativeMeta model: an sqlalchemy model
          :return Query: the sorted query