Skip to main content

CredentialRecordWhere

Filter criteria for credential records.

Supports complex filtering with AND/OR operators (max depth: 3, max 20 conditions total).

Example - Filter by multiple statuses:

{
"OR": [
{ "credentialRecordStatus": "issuanceCompleted" },
{ "credentialRecordStatus": "revoked" }
]
}
input CredentialRecordWhere {
AND: [CredentialRecordWhere!]
OR: [CredentialRecordWhere!]
contractId: ID
createdById: ID
createdFrom: DateTime
createdTo: DateTime
credentialRecordStatus: CredentialRecordStatus
excludeDeprovisionedOlderThanDays: NonNegativeInt
id: ID
identityId: ID
identityStoreId: ID
issuanceMethod: CredentialIssuanceMethod
}

Fields

CredentialRecordWhere.AND ● [CredentialRecordWhere!] list input

Logical AND - all conditions must match. Maximum depth: 3 levels.

CredentialRecordWhere.OR ● [CredentialRecordWhere!] list input

Logical OR - at least one condition must match. Maximum depth: 3 levels.

CredentialRecordWhere.contractId ● ID scalar

Filter by contract ID.

CredentialRecordWhere.createdById ● ID scalar

Filter by the user or application that created the record.

CredentialRecordWhere.createdFrom ● DateTime scalar

Filter records created on or after this date.

CredentialRecordWhere.createdTo ● DateTime scalar

Filter records created on or before this date.

CredentialRecordWhere.credentialRecordStatus ● CredentialRecordStatus enum

Filter by credential record status.

CredentialRecordWhere.excludeDeprovisionedOlderThanDays ● NonNegativeInt scalar

Exclude records in a deprovisioned state whose deprovisioning event occurred more than this many days ago. Omitting this field preserves the current behaviour — all records are returned regardless of age. Non-deprovisioned records are never excluded regardless of this value. Deprovisioned states and their anchor timestamps: revoked (revokedAt), expired (expiresAt), offerExpired (expiresOn), offerCancelled (cancelledAt/updatedAt), offerFailed (updatedAt), issuanceFailed (failedAt/updatedAt), identityNotVerified (updatedAt), issuanceExpired (expiresAt).

CredentialRecordWhere.id ● ID scalar

Filter by credential record ID.

CredentialRecordWhere.identityId ● ID scalar

Filter by identity ID.

CredentialRecordWhere.identityStoreId ● ID scalar

Filter by identity store ID.

CredentialRecordWhere.issuanceMethod ● CredentialIssuanceMethod enum

Filter by issuance method.

Member Of

credentialRecordCount query ● CredentialRecordWhere input ● findCredentialRecords query