Warning with _id
on a Mongo model
#105
Closed
MaheshkumarSundaram
started this conversation in
General
Replies: 1 comment
-
Sorry, this was my stupid mistake where by mistake, I have added |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @neonexus,
This is more of a general question with a Sails model which uses MongoDB. I have a collection in a MongoDB which I have to read in my Sails webapp for display purposes.
Sails Model named
clcDoc
:Sample Record:
Please note, these record are created outside Sails app. Here, we only read the records for display purposes.
Now, whenever I query the model, I get valid results BUT this annoying warning also pops up.
I looked up this, but as suggested the
type
of_id
isstring
eventhough for Mongo, itsObjectId
which is already the case. I tried removingrequired
, but doesn't help.I am not sure what exactly is the problem. Do you have any idea about this?
Any help would be appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions