SoftwareBrothers / adminjs-mongoose

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

allow strings as reference fields #103

Closed bslocombe closed 1 year ago

bslocombe commented 1 year ago

Hi, we are using adminjs on top of a MeteorJS application, which uses String ID's as the primary _id field by default for all its collections.

This tweak seems safe enough to allow strings to be used as ID fields so that the adminjs interface uses the select/dropdow widget to pick a related model via the ref.

Probably could have added this for number fields too.