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 not found any smart issue to manage this problem, the adapter changes the _id field as string, but I have also other ObjectId fields (some references to other collections) and they are not converted to string, so I need to call a toString() for doing other queries, but moleculer validation prevents to call service.getusing an object id or with null values.
My database has some optional references to other entities, so there are null values. I think that is not possible to manage directly, because validator throws an error...
Hello,
I have not found any smart issue to manage this problem, the adapter changes the _id field as string, but I have also other ObjectId fields (some references to other collections) and they are not converted to string, so I need to call a toString() for doing other queries, but moleculer validation prevents to call
service.get
using an object id or with null values.My database has some optional references to other entities, so there are null values. I think that is not possible to manage directly, because validator throws an error...
Example
Thanks to everyone :)
The text was updated successfully, but these errors were encountered: