Query class
Query scheme for mongo db query
Constructors
-
Query.allowAll({required QueryType queryType, AccessToken? token, Map<
String, dynamic> filters = const <String, dynamic>{}, Map<String, dynamic> equals = const <String, dynamic>{}, Map<String, dynamic> sorts = const <String, dynamic>{}, Map<String, dynamic> update = const <String, dynamic>{}, Map<String, bool> fileds = const <String, bool>{}, int? limit = 1000, int? offset = 0}) - AllowAll Query
-
Query.create({required String? collection, required QueryType queryType, AccessToken? token, Map<
String, dynamic> filters = const <String, dynamic>{}, Map<String, dynamic> equals = const <String, dynamic>{}, Map<String, dynamic> sorts = const <String, dynamic>{}, Map<String, dynamic> notEquals = const <String, dynamic>{}, Map<String, dynamic> update = const <String, dynamic>{}, Map<String, bool> fileds = const <String, bool>{}, int? limit = 1000, required bool allowAll, int? offset = 0}) - AllowAll Query
-
Query.fromMap(Map<
String, dynamic> map) - Query from socket data scheme
Properties
- allowAll ↔ bool
-
Allow All Query
getter/setter pair
- collection ↔ String?
-
Query collection
eg users , posts
getter/setter pair
-
data
↔ Map<
String, dynamic> ? -
Query document
getter/setter pair
-
equals
↔ Map<
String, dynamic> -
Query equals
e.g. {user_name : "mehmedyaz"} , {name : Mehmet}
getter/setter pair
-
fileds
↔ Map<
String, bool> -
getter/setter pair
-
filters
↔ Map<
String, dynamic> -
Query filter
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- limit ↔ int?
-
Data counts
getter/setter pair
-
notEquals
↔ Map<
String, dynamic> -
getter/setter pair
- offset ↔ int?
-
Data counts
getter/setter pair
- operationType ↔ DbOperationType
-
Query Type
update
create
delete
read
getter/setter pair
- queryType ↔ QueryType
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sorts
↔ Map<
String, dynamic> -
Sorts
getter/setter pair
- token ↔ AccessToken?
-
Access Token
getter/setter pair
-
update
↔ Map<
String, dynamic> -
Update data
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
selector(
) → SelectorBuilder - query to mongo db selector
-
toMap(
) → Map< String, dynamic> - query to map for socket data
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited