$select nested object properties #3161
Unanswered
Everlasting12
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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