You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use an inbound primary key "id". How can I get a result as a map (instead of an array), with the id as key and the value as the value (with or without the id)
So instead of:
[{
id: 0,
name: "John"
age: 34
}, ...]
Like this:
{
0: {name: "John", age: 34},
1: {...}
}
I have to fetch thousands of values, so I'm unsure of how efficient it would be to manually manipulate the data
The text was updated successfully, but these errors were encountered:
I use an inbound primary key "id". How can I get a result as a map (instead of an array), with the id as key and the value as the value (with or without the id)
So instead of:
Like this:
I have to fetch thousands of values, so I'm unsure of how efficient it would be to manually manipulate the data
The text was updated successfully, but these errors were encountered: