juampi92 / adonis-mongoose-model

Mongoose models for Adonis framework.
MIT License
62 stars 17 forks source link

Is possible to use mongoose-autopopulate? #48

Closed jonjts closed 5 years ago

jonjts commented 5 years ago

HI there

Is possible to use mongoose-autopopulate to auto populate the relationships? If not, exist other way to auto populate relationships?

juampi92 commented 5 years ago

You can define your schema by just redefining the

static get schema () {
    return {

    }
  }

https://github.com/juampi92/adonis-mongoose-model/blob/master/instructions.md#defining-schema