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

Discriminator support #236

Open
rjombo opened this issue Jun 17, 2022 · 0 comments
Open

Discriminator support #236

rjombo opened this issue Jun 17, 2022 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@rjombo
Copy link

rjombo commented Jun 17, 2022

Hello, it would be nice to have discriminator support in papr like in mongoose. It might be possible because $jsonSchema supports match for one of specified schemas with keyword "oneOf".

https://www.mongodb.com/docs/v5.0/reference/operator/query/jsonSchema/#mongodb-query-op.-jsonSchema
https://mongoosejs.com/docs/discriminators.html

Here is example usage:
image

@avaly avaly added enhancement New feature or request help wanted Extra attention is needed labels Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants