# PredicateProperty

The `Predicate` property specifies information for generating Amplify DataStore queries.

Use `Predicate` to retrieve a subset of the data in a collection.

- Source: Generated code
- Type last changed: v2.127.0 · 10 Feb 2024

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_amplifyuibuilder as amplifyuibuilder } from 'aws-cdk-lib';

declare const predicateProperty_: amplifyuibuilder.CfnComponent.PredicateProperty;
const predicateProperty: amplifyuibuilder.CfnComponent.PredicateProperty = {
  and: [predicateProperty_],
  field: 'field',
  operand: 'operand',
  operandType: 'operandType',
  operator: 'operator',
  or: [predicateProperty_],
};
```

## Properties

- `and`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.PredicateProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.PredicateProperty.html)[] — A list of predicates to combine logically.

- `field`: string — The field to query.

- `operand`: string — The value to use when performing the evaluation.

- `operandType`: string — The type of value to use when performing the evaluation.

- `operator`: string — The operator to use to perform the evaluation.

- `or`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnComponent.PredicateProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_amplifyuibuilder.CfnComponent.PredicateProperty.html)[] — A list of predicates to combine logically.
