toQuery method

Query toQuery(
  1. QueryType type, {
  2. AccessToken? token,
  3. bool allowAll = false,
})

Implementation

Query toQuery(QueryType type, {AccessToken? token, bool allowAll = false}) {
  return Query.create(
      collection: _collection,
      allowAll: allowAll,
      equals: _equals,
      queryType: type,
      filters: _filters,
      limit: _limit,
      notEquals: _notEquals,
      offset: _offset,
      sorts: _sorts,
      token: token);
}