MongoIds pass integer validation whether you are using mongo or not #4659
Comments
I agree that this is smelly. We need to rip out some mongo-specific references within waterline, including this. Adapters currently do have the ability to set their own primary key type. |
@kevinburke @devinivy Hey, we moved this Mongolds issue to our main Sails hub with the label "orm." It appears to have been patched in a newer version of Waterline. Thanks for sharing this info and hope it's working for everyone now. |
Great! Thanks! |
Hi @kevinburke @devinivy we are further cleaning up the Sails issues by closing old ones and issues that have been patched with newer versions. |
This has been published. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Relevant code in
core/validations.js
So it seems like if I am using Postgres but I pass something like
"4cdfb11e1f3c000000007822"
as aninteger
value, Waterline will pass it to the database without applying the normal validation.The text was updated successfully, but these errors were encountered: