Closed ekajogja closed 6 years ago
How is indukOrganisasiId defined in the schema you made for mongo-graphql-starter? Ie, the code here:
https://github.com/arackaf/mongo-graphql-starter#how-do-you-use-it
Did you use MongoIdType
? If so, then the value you send should be cast as ObjectId before saved. If it's defined like that, but the wrapping is not happening, then this is definitely a bug. Let me know
Yes, I used MongoIdType
Hm ok thanks - I’ll have a look
Hey! Version 0.6.24 is out, which should fix this. Thanks, and let me know if you see further issues!
Problem: During creation, input Id (of existing document) is correctly stored as ObjectId. However, during update, input Id is stored as string.
On playground, I use
Updates: { fieldId: "${document._id}" }
since I need to insert existing doc instead of creating a new one.Query result after update is good.
But the oid was stored as string in 1st doc, compared to 2nd doc which was stored during creation.
Any advise on how to make Update input also stores as ObjectId? Thank you.