TBD54566975 / dwn-sdk-js

Decentralized Web Node (DWN) Reference implementation
https://identity.foundation/decentralized-web-node/spec/
Apache License 2.0
324 stars 95 forks source link

`RecordsRead` should not fail if multiple values exist #739

Open LiranCohen opened 3 months ago

LiranCohen commented 3 months ago

Currently, if there is more than one match to a RecordsRead filter, the operation will fail.

The desired behavior is to include an optional sort property for the read, which allows the user control over which record to return if there is more than one record matching the filter.