Amplify JS API Documentation
Library Documentation
NPM
GitHub
Preparing search index...
aws-amplify
datastore
ModelSortPredicateCreator
Class ModelSortPredicateCreator
Index
Constructors
constructor
Methods
create
From
Existing
get
Predicates
is
Valid
Predicate
Constructors
constructor
new
ModelSortPredicateCreator
()
:
ModelSortPredicateCreator
Returns
ModelSortPredicateCreator
Methods
Static
create
From
Existing
createFromExisting
<
T
extends
Readonly
<
Record
<
string
,
any
>
>
>
(
modelDefinition
:
SchemaModel
,
existing
:
ProducerSortPredicate
<
T
>
,
)
:
SortPredicate
<
T
>
Type Parameters
T
extends
Readonly
<
Record
<
string
,
any
>
>
Parameters
modelDefinition
:
SchemaModel
existing
:
ProducerSortPredicate
<
T
>
Returns
SortPredicate
<
T
>
Static
get
Predicates
getPredicates
<
T
extends
Readonly
<
Record
<
string
,
any
>
>
>
(
predicate
:
SortPredicate
<
T
>
,
throwOnInvalid
?:
boolean
,
)
:
SortPredicatesGroup
<
T
>
Type Parameters
T
extends
Readonly
<
Record
<
string
,
any
>
>
Parameters
predicate
:
SortPredicate
<
T
>
Optional
throwOnInvalid
:
boolean
Returns
SortPredicatesGroup
<
T
>
Static
is
Valid
Predicate
isValidPredicate
<
T
extends
Readonly
<
Record
<
string
,
any
>
>
>
(
predicate
:
any
,
)
:
predicate
is
SortPredicate
<
T
>
Type Parameters
T
extends
Readonly
<
Record
<
string
,
any
>
>
Parameters
predicate
:
any
Returns
predicate
is
SortPredicate
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
create
From
Existing
get
Predicates
is
Valid
Predicate
Library Documentation
NPM
GitHub
Amplify JS API Documentation
Loading...