Selective field return on query or find

0 votes
Is it possible to have only certain fields returned (or excluded) when doing a query or find on the nosql storage? For example, I want to get some but not all user information from an account collection, such as not retrieving the password field.
asked May 14, 2018 in Flash by kustardking (12 points)

1 Answer

0 votes

Hi,

Apologies for the delayed response.

You can achieve this by setting select keys on service object as shown here. It can be used with any Find APIs.

Please let me know if you have any further query.

Thanks.

answered May 17, 2018 by rajeev.etc (1,660 points)
Thanks for the info.  I'd like to comment that the method shown is a bit cumbersome, and appears to be not at all thread-safe.  It would be more flexible, and less error prone, on our side if you changed the signatures of the find/query calls to include optional filters.
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...