retrieve items with specified keys in a single request

+3 votes
Hi,

 

how can I retrieve multiple items from a stream within one call?

e.g.

{"method" : "liststreamqueryitems", "params":["myStream1", {"keys":["key1", "key2", "key3"]}]}

does not work as it will return only items which have all keys specified, but I want the items which have key1, the items which have key2 and so on.

Is this possible or do I have to send multiple requests?

I need the coreesponding publishMulti functionality for get e.g. getMulti

Thanks!
asked Jan 23, 2019 by anonymous

1 Answer

0 votes
In this case you would need to make multiple calls, to separately obtain the items for each key.
answered Jan 23, 2019 by MultiChain
...