Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Predicate = Predicate' {}
- newPredicate :: Predicate
- predicate_and :: Lens' Predicate (Maybe [Predicate])
- predicate_field :: Lens' Predicate (Maybe Text)
- predicate_operand :: Lens' Predicate (Maybe Text)
- predicate_operator :: Lens' Predicate (Maybe Text)
- predicate_or :: Lens' Predicate (Maybe [Predicate])
Documentation
Stores information for generating Amplify DataStore queries. Use a
Predicate
to retrieve a subset of the data in a collection.
See: newPredicate
smart constructor.
Predicate' | |
|
Instances
newPredicate :: Predicate Source #
Create a value of Predicate
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:and:Predicate'
, predicate_and
- A list of predicates to combine logically.
$sel:field:Predicate'
, predicate_field
- The field to query.
$sel:operand:Predicate'
, predicate_operand
- The value to use when performing the evaluation.
$sel:operator:Predicate'
, predicate_operator
- The operator to use to perform the evaluation.
$sel:or:Predicate'
, predicate_or
- A list of predicates to combine logically.
predicate_and :: Lens' Predicate (Maybe [Predicate]) Source #
A list of predicates to combine logically.
predicate_operand :: Lens' Predicate (Maybe Text) Source #
The value to use when performing the evaluation.