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

fix(mongoose): use official discriminator definitions #1704

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

LoneRifle
Copy link
Collaborator

Problem

Now that mongoose properly defines discriminator(), drop our
custom definition of DocumentArray in favour of the official one

Solution

  • pick up the latest version of mongoose
  • go back to casting the return value of FormSchema.path() as a
    DocumentArray, as opposed to our custom definition of it
  • remove custom definitions of mongoose types, no longer used

Now that mongoose properly defines discriminator(), drop our
custom definition of DocumentArray in favour of the official one

- pick up the latest version of mongoose
- go back to casting the return value of `FormSchema.path()` as a
  DocumentArray, as opposed to our custom definition of it
- remove custom definitions of mongoose types, no longer used
@LoneRifle LoneRifle requested a review from mantariksh April 22, 2021 07:42
@LoneRifle LoneRifle merged commit 0fe245b into develop Apr 22, 2021
@LoneRifle LoneRifle deleted the fix/mongoose/discriminator branch April 22, 2021 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants