feathersjs / feathers

The API and real-time application framework
https://feathersjs.com
MIT License
14.97k stars 742 forks source link

virtual properties have inconsistent behavior with query #3424

Open AshotN opened 4 months ago

AshotN commented 4 months ago

Steps to reproduce

https://codesandbox.io/p/devbox/feathers-select-bug-q4fsvw

It should just bootstrap itself and create a company on startup, so you can just instantly access it via /company

/company?$select[]=virtualField1 <-- this works /company?$select[]=virtualField2 <-- this doesn't

Expected behavior

I would expect virtual properties to behave like regular ones

Actual behavior

resolvers bypass the query validation Except for external resolvers

System configuration

Tell us about the applicable parts of your setup.

"@feathersjs/feathers": "5.0.21"