decentralized-web-node
decentralized-web-node copied to clipboard
Update RecordsRead spec definition to utilize a Filter
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.