Query<S>
@hyperledger/identus-sdk v8.0.0
@hyperledger/identus-sdk / overview / Query
Type Alias: Query<S>
Query<
S> = {selector?:QueryType<S>; } &QueryOptions
Defined in: packages/lib/sdk/src/pluto/types.ts:48
Query type used by Pluto repositories.
Wraps @trust0/ridb-core QueryType inside a selector field
and extends it with QueryOptions (e.g. limit, skip).
Type Declaration
| Name | Type | Defined in |
|---|---|---|
selector? | QueryType<S> | packages/lib/sdk/src/pluto/types.ts:49 |
Type Parameters
| Type Parameter | Description |
|---|---|
S extends SchemaType | The SchemaType of the target collection. |
Example
const q: Query<typeof CredentialSchema> = {
selector: { issuer: "did:example:123" },
limit: 10
};