We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class MyModel { @property.array(String, { default: [], mongodb: {dataType: 'ObjectID'}, }) relatedIds: string[]; }
relatedIds writes strings[] into MongoDb
relatedIds should write ObjectId[] into MongoDb
This looks like correcting the problem (mongodb.js#36, function ObjectId):
if (typeof id !== 'string') { return Array.isArray(id) ? id.map(ObjectID) : id; }
The text was updated successfully, but these errors were encountered:
I think this is fixed in #582 and released in version 5.3.0. Thanks.
Sorry, something went wrong.
Similar issue: loopbackio/loopback-next#5848
No branches or pull requests
Steps to reproduce
Current Behavior
relatedIds writes strings[] into MongoDb
Expected Behavior
relatedIds should write ObjectId[] into MongoDb
Additional information
This looks like correcting the problem (mongodb.js#36, function ObjectId):
The text was updated successfully, but these errors were encountered: