SimpleLookup class
Defines the structure of a simple lookup.
For Lookup documentation see DBObject.get and QueryBuilder.lookup.
Constructors
- SimpleLookup(String field)
- Creates a instance of SimpleLookup
Properties
- field ↔ String
-
The name of the object reference field of the model that will be looked
up. Only the immediate fields of the model can be used in simple lookups.
If you would like to look up for a sub-object field then you need to use
that respective sub-model as the reference point of your lookups.
The simple lookup basically runs the following query:
this.field == lookup._id
, meaning joins the looked up model with the current one by matching the value of the field with the _id of the looked up model.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Lookup abstraction.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited