eq method
An equal to operation.
Matches a model whose model identifier is equal to the provided value.
Example:
The example returns Posts where the rating is equal to 10.
Amplify.DataStore.query(
Inventory.classType,
where: Inventory.MODEL_IDENTIFIER.eq(
InventoryModelIdentifier(
productID: 'product-id',
name: 'product-name',
warehouseID: 'warehouse-id',
region: 'some region',
),
),
);
Implementation
QueryByIdentifierOperation eq(T value) => QueryByIdentifierOperation(
dummyFieldName,
EqualModelIdentifierQueryOperator<T>(value),
);