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 have a fixed number of keys and depending on the key value I need to generate different values. I also need to reference a parent object that was generated.
An example may help. I have a table that stores multiple configurations per user:
+--------+------+--------+
| userId | key | value |
+--------+------+--------+
| 1 | color | blue |
| 1 | size | large |
| 2 | color | red |
| 2 | size | small |
+--------+------+--------+
So I need 2 rows per user with the keys 'color' and 'size'
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm stumped on how to accomplish this:
I have a fixed number of keys and depending on the key value I need to generate different values. I also need to reference a parent object that was generated.
An example may help. I have a table that stores multiple configurations per user:
So I need 2 rows per user with the keys 'color' and 'size'
Is this use case supported?
Beta Was this translation helpful? Give feedback.
All reactions