Skip to content
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

Accessing underlying mongoose methods #37

Open
ricick opened this issue Nov 19, 2017 · 2 comments
Open

Accessing underlying mongoose methods #37

ricick opened this issue Nov 19, 2017 · 2 comments
Assignees

Comments

@ricick
Copy link

ricick commented Nov 19, 2017

Is there a way, and is it recommended to access mongoose methods on a model using this datastore? e.g. this.app.models.Sprockets.insertMany(sprockets)

@konstantinzolotarev
Copy link
Collaborator

@ricick This trailpack actually does nothing about adding new methods.
And all models this.orm.User are pure mongoose models. So you could use any method you want.
We didn't write any overlay above mongoose.

Like here: https://github.com/trailsjs/trailpack-mongoose#query

@konstantinzolotarev
Copy link
Collaborator

@ricick And sorry that I missed issue in my notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants