AttachmentStorage.queryAttachments - corda

corda / net.corda.core.node.services / AttachmentStorage / queryAttachments

# queryAttachments

`abstract fun queryAttachments(criteria: AttachmentQueryCriteria, sorting: AttachmentSort? = null): List<AttachmentId>`

Searches attachment using given criteria and optional sort rules

### Parameters

`criteria` - Query criteria to use as a filter

`sorting` - Sorting definition, if not given, order is undefined

Return
List of AttachmentId of attachment matching criteria, sorted according to given sorting parameter

`open fun queryAttachments(criteria: AttachmentQueryCriteria): List<AttachmentId>`