Related questions
What are naming conventions for MongoDB?
Is there a set of preferred naming conventions for MongoDB entitites such as databases, collections, field names?
I was thinking along these lines:
Databases: consist of the purpose (word in singular) and end with “db” – all lower case: imagedb, resumedb, …
mongodb schema design naming convention
So I have something called
exports.create = function(projectJSON){
var project = new ProjectModel({
id : projectJSON.id,
projectName : projectJSON.projectName ,
authorName : projectJSON.authorName,
firstPostDate : projectJSON.firstPostDate
})
}
Is the above naming convention for a multi-word element firstPostDate (camel case) correct, or should …
How to query MongoDB with "like"?
I want to query something with SQL's like query:
SELECT * FROM users WHERE name LIKE '%m%'
How to do I achieve the same in MongoDB? I can't find an operator for like in the documentation.