Skip to content

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

@fratzinger fratzinger merged commit 57890f4 into master Oct 28, 2025
10 checks passed
@fratzinger fratzinger deleted the feat/null-empty-array-skip-request branch October 28, 2025 20:54
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