> For the complete documentation index, see [llms.txt](https://altme-documentation.gitbook.io/altmes-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://altme-documentation.gitbook.io/altmes-documentation/alme-wallet/presentation-request-query-types/querybyexample.md).

# QueryByExample

#### Overview

This is a limited implementation of the Verifiable Presentation Request W3C draft.

If “credentialQuery”: is an empty list, one keeps the current behavior of Credible. The user is asked to select credentials to send. Never mind the VCs.

If “credentialQuery.example” contains {“reason”: \[……]} then the Verifier wishes to display an information message to the user. This message will be displayed on the wallet at the time of selection.

If “credentialQuery.example” contains {“type”: “some\_type”} then the Verifier wishes to receive VCs conforming to the specified type and the wallet presents a list of VCs consisting only of the specified type.

If “credentialQueryexample” contains { “trustedIssuer” : \[ {“issuer” : “did:tz2:12343243223”}]} then the Verifier wishes to receive VCs sent by the specified Issuer and the wallet presents a list consisting only of the specified issuer.

Nota Bene : - There is one credentialQuery.example for each type of VC requested - By default the credential is required (“required” : “True”), it does not support the other option. - The reason attribute should be analysed as an array of different languages (“fr”, “en”, …)
