- Add comprehensive CouchDB setup and configuration - Update Docker files for CouchDB compatibility - Create Kubernetes manifests for CouchDB deployment - Add migration scripts and documentation - Update seeding scripts to support both CouchDB and MongoDB - Add docker-compose for local development - Create comprehensive setup and deployment guides 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
32 lines
637 B
JavaScript
32 lines
637 B
JavaScript
/*!
|
|
* Module dependencies.
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const MongooseError = require('./mongooseError');
|
|
|
|
/**
|
|
* Strict mode error constructor
|
|
*
|
|
* @param {string} type
|
|
* @param {string} value
|
|
* @api private
|
|
*/
|
|
|
|
class ObjectExpectedError extends MongooseError {
|
|
|
|
constructor(path, val) {
|
|
const typeDescription = Array.isArray(val) ? 'array' : 'primitive value';
|
|
super('Tried to set nested object field `' + path +
|
|
`\` to ${typeDescription} \`` + val + '`');
|
|
this.path = path;
|
|
}
|
|
}
|
|
|
|
Object.defineProperty(ObjectExpectedError.prototype, 'name', {
|
|
value: 'ObjectExpectedError'
|
|
});
|
|
|
|
module.exports = ObjectExpectedError;
|