javascript-style-guide
javascript-style-guide copied to clipboard
Allow variable '_id'
trafficstars
Context
We are using mongodb's _id identifier, but our linter rules do not support this.
@moog
We are using mongodb's _id identifier, but our linter rules do not support this.
Could you please give us more context regarding why this rule is not covered yet? :slightly_smiling_face:
We can use the id identifier for mongodb documents.
https://stackoverflow.com/questions/15724272/what-is-the-difference-between-id-and-id-in-mongoose
I've used id in the code, and it worked like a charm :smile: