You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @daffl I'm using FeathersJS v5.0 and Mongodb, JSON schema validator
having a user schema where fields have nested properties, I want to select only nested properties of those fields
in this case, I want only email, name, and "address.city" fields from the user's collection,
we are getting those wanted fields from the front-end side in $select query params
this would be dynamic in nature i.e. tomorrow front-end might ask for "address.country" instead of "address.city"
my context.params.query object would look like this:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi @daffl I'm using FeathersJS v5.0 and Mongodb, JSON schema validator
having a user schema where fields have nested properties, I want to select only nested properties of those fields
for eg.
here's a user schema,
in this case, I want only email, name, and "address.city" fields from the user's collection,
we are getting those wanted fields from the front-end side in $select query params
this would be dynamic in nature i.e. tomorrow front-end might ask for "address.country" instead of "address.city"
my context.params.query object would look like this:
currently I am getting this validator error as a response
Beta Was this translation helpful? Give feedback.
All reactions