Skip to content

how to achieve these features with _find API? #4970

Answered by nickva
fangq asked this question in General
Discussion options

You must be logged in to vote
  1. when finding a match, the "fields":[] specifier can only retrieve the content of the specified object, but not parameters, even simple ones such as the length of an array, or the key names of an objects etc. Is this possible to retrieve these properties? my content may include embedded objects and can be be fairly large and I don't want to return those.

Maybe others can correct me, but I don't think that's possible. It's the kind of stuff you could do in the map/reduce view if you process the document with a javascript function

  1. my document contains special annotations, such as DataLink as key name, in various depth; if I want to query how many such key exists, can I use _find? or de…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nickva
Comment options

nickva Mar 21, 2024
Collaborator

Answer selected by fangq
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants