Module Values.Predicate

Stores information for generating Amplify DataStore queries. Use a Predicate to retrieve a subset of the data in a collection.

Sourcetype nonrec t = {
  1. or_ : PredicateList.t option;
    (*

    A list of predicates to combine logically.

    *)
  2. and_ : PredicateList.t option;
    (*

    A list of predicates to combine logically.

    *)
  3. field : String_.t option;
    (*

    The field to query.

    *)
  4. operator : String_.t option;
    (*

    The operator to use to perform the evaluation.

    *)
  5. operand : String_.t option;
    (*

    The value to use when performing the evaluation.

    *)
  6. operandType : OperandType.t option;
    (*

    The type of value to use when performing the evaluation.

    *)
}
Sourceval make : ?or_:PredicateList.t -> ?and_:PredicateList.t -> ?field:String_.t -> ?operator:String_.t -> ?operand:String_.t -> ?operandType:OperandType.t -> unit -> t
Sourceval to_value : t -> Awso.Botodata.value
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t