RecursiveModelPredicateExtender<RT>: ((lambda) => PredicateInternalsKey)

A function that accepts a RecursiveModelPrecicate, which it must use to return a final condition.

This is used in DataStore.query(), DataStore.observe(), and DataStore.observeQuery() as the second argument. E.g.,

DataStore.query(MyModel, model => model.field.eq('some value'))

More complex queries should also be supported. E.g.,

DataStore.query(MyModel, model => model.and(m => [
m.relatedEntity.or(relative => [
relative.relativeField.eq('whatever'),
relative.relativeField.eq('whatever else')
]),
m.myModelField.ne('something')
]))

Type Parameters

Type declaration