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

Mongoose array discriminators do not render properties from the discriminated objects #58

Open
maxpeterson opened this issue Jul 9, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@maxpeterson
Copy link

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.

@handrei
Copy link

handrei commented Dec 6, 2021

Hello, do we have any status regarding this ?

@krish512
Copy link

Need support for Mongoose discriminators

@dziraf dziraf added the enhancement New feature or request label Jun 21, 2022
@dziraf dziraf added this to AdminJS Jun 21, 2022
@dziraf
Copy link
Contributor

dziraf commented Jun 24, 2022

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.

@dziraf dziraf removed this from AdminJS Jul 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants