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

Handle aggregate for discriminators #135

Merged

Conversation

davellx
Copy link
Contributor

@davellx davellx commented Jun 12, 2023

This PR should handle the use Discriminators with aggregateWithDeleted.

Some things to notice :

  • I kept using var instead of let/const. It felt strange but I've seen a commit that show this style is intended.
  • I used destructuring, I think it should not be a probme on most Node.js server nowadays
  • I used Optional chaining, that is present in Node.js since v14. Tell me if it's a problem.
  • I added test for this case

I hope it helps.
David.

@dsanel dsanel merged commit 008ea81 into dsanel:master Jun 13, 2023
18 checks passed
@dsanel
Copy link
Owner

dsanel commented Jun 13, 2023

Nice work @davellx! Thx for help

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