Credential.where()
Learn: Credentials |
---|
Get a Set of credentials that match a provided predicate.
Description
Gets a Set of credentials,
represented as Credential
documents, that match a provided
predicate function.
A credential associates a password with an
identity document. You can
use credentials and the credential.login()
method to
create tokens as part of an
end-user authentication system.
If Credential.where()
is the last expression in a query, the first page of
the Set
is returned. See Pagination.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
pred |
Yes |
Anonymous predicate function that:
The method returns a Set of |