|
|
|
|
|
by duped
237 days ago
|
|
I wouldn't get worked up about the actual names of things I used here, but there's no difference between having the key contained in the user data versus lifted up to the containing object... every language supports iterating objects by (key, value). You would do a query like "give me all users with age over 18" or something and return a `{ [id: string]: User }` |
|