Mongoose is trying to be smart by making your collection name plural. You can however force it to be whatever you want:
var dataSchema = new Schema({..}, { collection: 'data' })
More Related Contents:
- Push items into mongo array via mongoose
- E11000 duplicate key error index in mongodb mongoose
- Mongoose: findOneAndUpdate doesn’t return updated document
- Mongoose populate vs object nesting
- Stop Mongoose from creating _id property for sub-document array items
- Mongoose, update values in array of objects
- mongodb/mongoose findMany – find all documents with IDs listed in array
- Setting expiry time for a collection in mongodb using mongoose
- MongoDB/Mongoose querying at a specific date?
- MongoError: The ‘cursor’ option is required, except for aggregate with the explain argument
- Making mongoose.js queries run synchronously
- add created_at and updated_at fields to mongoose schemas
- How to populate a sub-document in mongoose after creating it?
- mongoose custom validation using 2 fields
- Mongoose (mongodb) batch insert?
- (node:3341) DeprecationWarning: Mongoose: mpromise
- Mongoose deleting (pull) a document within an array, does not work with ObjectID
- Mongoose populate nested array
- How to fix ‘Error: querySrv EREFUSED’ when connecting to MongoDB Atlas?
- Mongoose nested query on Model by field of its referenced model
- How to define object in array in Mongoose schema correctly with 2d geo index
- How can I generate an ObjectId with mongoose?
- How to get all count of mongoose model?
- Mongoose: CastError: Cast to ObjectId failed for value “[object Object]” at path “_id”
- Model.find() returns empty in mongoose [duplicate]
- Mongoose – caused by :: 11000 E11000 duplicate key error index?
- How do I increment a Number value in Mongoose?
- How to reference another schema in my Mongoose schema?
- Populate a mongoose model with a field that isn’t an id
- MongoDB $lookup vs Mongoose populate