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
{{ message }}
This repository has been archived by the owner on Nov 5, 2018. It is now read-only.
the param in view function - {keys: [key1,key2]}
is the key based on the emit part of the view function? If so, will I be able to set anything as key, like the _id?
views: {
"all": {
"map": "function(doc){if(doc) emit(doc._id,null)}"
}
}
If this is not the case, could you please clarify as to what keys refers to OR how I can query based on an array of id?
The text was updated successfully, but these errors were encountered:
yes, key is what you emit as key in your view function. You can emit everything you like as keys, I often use arrays. Normally you don't need to set up a view with _id keys, because the built in _all_docs view has _id as key. You can use nanos list API for that.
the param in view function - {keys: [key1,key2]}
is the key based on the emit part of the view function? If so, will I be able to set anything as key, like the _id?
views: {
"all": {
"map": "function(doc){if(doc) emit(doc._id,null)}"
}
}
If this is not the case, could you please clarify as to what keys refers to OR how I can query based on an array of id?
The text was updated successfully, but these errors were encountered: