Skip to content

feat: set null/empty array on null/undefined and skip find #64

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

fratzinger
Copy link
Collaborator

@fratzinger fratzinger commented Mar 3, 2025

I found that 'feathers-graph-populate' does requests with { query: { [keyHere]: { $in: [null] } } if all items have [keyHere]: null. This got caught by my query-validator, because it was this request: { query: { id: { $in: [null] } } } which shouldn't be possible.

I'm not quite sure if there's a usecase where [keyHere]: null should produce a request, but I assume not. With this PR those requests will be skipped. Also the items [nameAs] was not consistent. It is now with [nameAs]: include.asArray ? [] : null. I think this fits best.

While being at it, I updated all deps and moved to eslint flat config with https://github.com/feathers-community/eslint-config

closes #60
closes #61

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.

1 participant