SoftwareBrothers / adminjs-mongoose

Mongoose adapter for AdminJS
MIT License
14 stars 40 forks source link

fix: Support defining field references by passing Model instance #87

Closed hendrysadrak closed 2 years ago

hendrysadrak commented 2 years ago

Right now AdminJS throws 500 when using Model instances for field references.

But, mongoose supports defining references in fields by passing in the Model instance.

Example:

image

This PR allows AdminJS to work with this pattern.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 3.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: