airpingu / data-store-api

W3C working draft for Data Store API
http://airpingu.github.io/data-store-api/index.html
4 stars 2 forks source link

What is the result type of the Promise returned by get()? #26

Open cdumez opened 10 years ago

cdumez commented 10 years ago

What is the result type of the Promise returned by get()? The spec is not clear about this. It is likely a value (of 'any' type) if only 1 id is given and an array of values (any[]) if several ids are requested.

One issue is also, what is supposed to happen if several ids are requested but some of them do not exist in the database? 2 solutions are possible: