You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell this mongoose adapter does not include any support for Mongoose discriminators.
Is there a plan to add support for discriminators?
If not is there any interest in contributions towards adding support for discriminators?
The discriminator mapping (discriminatorKey) along with the property information for each discriminator type could be extracted from the Mongoose schema and stored on the Property.
Once available in the adminjs frontend the full set of properties could be determined using the discriminatorKey value for a recored.
The text was updated successfully, but these errors were encountered:
I would need more details on how you would like this to be implemented as I don't work with Mongoose much. Displaying different fields dynamically based on what's selected as discriminatorKey might be impossible with how AdminJS is structured because adapters cannot access data in the frontend.
As far as I can tell this mongoose adapter does not include any support for Mongoose discriminators.
Is there a plan to add support for discriminators?
If not is there any interest in contributions towards adding support for discriminators?
The discriminator mapping (discriminatorKey) along with the property information for each discriminator type could be extracted from the Mongoose schema and stored on the
Property
.Once available in the adminjs frontend the full set of properties could be determined using the discriminatorKey value for a recored.
The text was updated successfully, but these errors were encountered: