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'm building many-many relation on MongoDB but LB4 doesn't support ReferencesMany yet so in the meantime I have to work-around by configure entity like below:
The ID array is stored as list of string in MongoDB.
Expected Behavior
The ID array is stored as list of ObjectId in MongoDB.
Additional information
The root cause of this problem is that ReferencesMany is not supported yet while it's the critical feature to develop any systems using MongoDB. There is no timeline for it and the GH ticket for it is staled for almost a year.
The text was updated successfully, but these errors were encountered:
haotangio
changed the title
@property.array does not work with MongoDB ObjectId array
@property.array does not convert string to MongoDB ObjectId
Jun 29, 2020
Backgrounds
I'm building many-many relation on MongoDB but LB4 doesn't support ReferencesMany yet so in the meantime I have to work-around by configure entity like below:
Steps to reproduce
When I save
directorIds
like below. The ID array is stored as string in MongoDB.Current Behavior
The ID array is stored as list of string in MongoDB.
Expected Behavior
The ID array is stored as list of ObjectId in MongoDB.
Additional information
The root cause of this problem is that ReferencesMany is not supported yet while it's the critical feature to develop any systems using MongoDB. There is no timeline for it and the GH ticket for it is staled for almost a year.
The text was updated successfully, but these errors were encountered: