decentralized-web-node icon indicating copy to clipboard operation
decentralized-web-node copied to clipboard

Update RecordsRead spec definition to utilize a Filter

Open LiranCohen opened this issue 2 years ago • 0 comments

There has been a change in the DWN SDK which now allows you to issue a RecordsRead using the same type of Filter that you would use in RecordsQuery.

If the provided filter returns more than 1 result, an error is returned from the DWN, otherwise the record is returned.

This allows the user to create and read records by a protocolPath so long as that Filter will only produce 1 record.

LiranCohen avatar Sep 20 '23 15:09 LiranCohen