Can I dynamically extract fields from a document?

(Jeffrey Pinyan) #1

Can I dynamically select fields from my document to return, based on a query? Say I have a document like so:


I would like the returned friends to include only those with an age above 21, e.g:


Can I do this in a query (presumably with a script), or must I do it after the response has been received?

(Alexander Reelsen) #2

take a look at the nested datatype and its corresponding queries and especially the inner hits functionality.


(system) closed #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.