Skip to content

Schema alias option #5177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rkt2spc opened this issue Apr 18, 2017 · 1 comment
Closed

Schema alias option #5177

rkt2spc opened this issue Apr 18, 2017 · 1 comment
Labels
new feature This change adds new functionality, like a new method or class
Milestone

Comments

@rkt2spc
Copy link
Contributor

rkt2spc commented Apr 18, 2017

Are you guys accepting pull requests? I want to add schema alias option feature

var FooSchema = mongoose.schema({
  bar: { type: String, alias: 'baz' }
});

Basically, the only thing I do is read this option out and create virtual properties. There was some guy at where I work who wrote a fork that does this. But the fork is really obsolete now, merging it is quite troublesome, too many conflicts.

The fork is creating troubles for us as things upgrade. So we plan to reuse his logic and merge it to official mongoose, so we can both cooperate with our current code while using the latest mongoose.

Do you have any suggestion to where I should start? Which file should I put the changes in?

@sobafuchs sobafuchs added the new feature This change adds new functionality, like a new method or class label Apr 18, 2017
@vkarpov15 vkarpov15 added this to the 4.10 milestone Apr 30, 2017
@vkarpov15
Copy link
Collaborator

#5184

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature This change adds new functionality, like a new method or class
Projects
None yet
Development

No branches or pull requests

3 participants