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
Not sure if I'm doing something wrong but I want to have a field that is an array of objects (questions) and each object should have an id and some text. When I do this the question text is different for each question but the ID is the same? I want the ID to be unique and want to reference it in another collection as a primary key/foreign key for joins so to speak.
This is actually a bug, the playground you linked should have worked. You can avoid the problem for now by setting a higher count for each collection, and set the array size to one, like this: https://mongoplayground.net/p/4P8Gn-dHpul
Thanks for reporting the issue, I'll try to fix it soon
Hi,
Not sure if I'm doing something wrong but I want to have a field that is an array of objects (questions) and each object should have an id and some text. When I do this the question text is different for each question but the ID is the same? I want the ID to be unique and want to reference it in another collection as a primary key/foreign key for joins so to speak.
My Mongo playground is: https://mongoplayground.net/p/YgxGJnMHmr-
Thanks,
Sean
The text was updated successfully, but these errors were encountered: