Query.create constructor

Query.create({
  1. required String? collection,
  2. required QueryType queryType,
  3. AccessToken? token,
  4. Map<String, dynamic> filters = const <String, dynamic>{},
  5. Map<String, dynamic> equals = const <String, dynamic>{},
  6. Map<String, dynamic> sorts = const <String, dynamic>{},
  7. Map<String, dynamic> notEquals = const <String, dynamic>{},
  8. Map<String, dynamic> update = const <String, dynamic>{},
  9. Map<String, bool> fileds = const <String, bool>{},
  10. int? limit = 1000,
  11. required bool allowAll,
  12. int? offset = 0,
})

AllowAll Query

Implementation

Query.create(
    {required this.collection,
    required this.queryType,
    this.token,
    this.filters = const <String, dynamic>{},
    this.equals = const <String, dynamic>{},
    this.sorts = const <String, dynamic>{},
    this.notEquals = const <String, dynamic>{},
    this.update = const <String, dynamic>{},
    this.fileds = const <String, bool>{},
    this.limit = 1000,
    required this.allowAll,
    this.offset = 0})
    : operationType = operationTypeFromQueryType(queryType);