toQuery method
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);
}