code: def query(self):
          
          query = self.query_raw
          query = self.authorization.filter_query(query, self)
          query = query.options(
              *itertools.chain(self.base_query_options, self.query_options)
          )
  
          return query
docs: The SQLAlchemy query for the view.
  
          Override this to customize the query to fetch items in this view.
  
          By default, this applies the filter from the view's `authorization` and
          the query options from `base_query_options` and `query_options`.