Giter Club home page Giter Club logo

mongoose-i18n-extra's People

Contributors

svengau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

future-forward

mongoose-i18n-extra's Issues

Error: Cannot find module 'mpath'

Get error as below
Error: Cannot find module 'mpath'
Require stack:

  • /abc/node_modules/mongoose-i18n-extra/dist/mongoose-i18n-extra.js
  • /abc/node_modules/mongoose-i18n-extra/dist/index.js
  • /abc/lib/utils/models.js

Code wise was trying the basic version to work.
const mongooseI18nExtra = require('mongoose-i18n-extra');

some package.json dependencies
"mongodb": "^3.5.9",
"mongoose": "5.8.10",
"mongoose-i18n-extra": "^0.1.5",

Doesn't seems to work with sub path schemas

Hi,

I'm trying to use with sub docs like schema below :

const schema = new Schema({
  name: {type: String},
  description: {type: String, i18n: true},
  child: {
      cname: {type: String, i18n: true},
  }
}

While running tests with it, I've got :
Plugin mongooseI18nExtra › Create / update › should be able to update a document with i18n fields
MongoError: The dotted field 'child.cname' in '_i18n.fr.child.cname' is not valid for storage.

Plugin mongooseI18nExtra › should set default value if not default value is empty
key child.cname must not contain '.'

Is there any workaround ? =)

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.