Skip to content

How about a fields parameter for the changes feed? #3774

Answered by nickva
nono asked this question in Ideas
Discussion options

You must be logged in to vote
http put $DB/db
http put $DB/db/d1 a=b d=e
http put $DB/db/d2 a=b1 d=e1
http put $DB/db/d3 a=b42 d=e99
http put $DB/db/d4 a=b15 d=e17
http post $DB/db/_changes'?include_docs=true&filter=_selector' selector:='{"a" : {"$regex": "^b1"}}' fields:='["a"]'
{
    "last_seq": "4-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9____szKYE5lygQLsKSYmaYYmlpjKcRqRxwIkGRqA1H8Uk4yMkkwsjM0wdWUBAEGvI-k",
    "pending": 0,
    "results": [
        {
            "changes": [
                {
                    "rev": "1-a90ad30f15b1be9fe5922cb55161ff1b"
                }
            ],
            "doc": {
                "a": "b1"
            },
            "id": "d2",
            "seq": "2-g1AAAACTe…

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by wohali
Comment options

You must be logged in to vote
0 replies
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
Category
Ideas
Labels
None yet
2 participants