[ 
https://issues.apache.org/jira/browse/COUCHDB-2988?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15652234#comment-15652234
 ] 

ASF subversion and git services commented on COUCHDB-2988:
----------------------------------------------------------

Commit 7cfabb5543de52639d226f509897e9b418327fcb in couchdb-fabric's branch 
refs/heads/master from [~vatamane]
[ https://git-wip-us.apache.org/repos/asf?p=couchdb-fabric.git;h=7cfabb5 ]

Add optional `fields` to change feed selectors

When using selectors with `include_docs=true` can specify an optional fields
array in the POST request JSON body.

Each element in the array can be a json field (or even a key path
specified as field1.field2...). Resulting documents will contain only the
specified document fields.

For example:
```
http://.../d1/_changes?filter=_selector&include_docs=true

{
    "selector": {"z" : {"$gte" : 1} }, "fields": ["field1", "field2"]
}
```
Will first select only document with "z" value >= 1, then will return only 
field1 and field2 in documents.

```{ "field1": "field1value", "field2": "field2value"}```

(This is a companion pr. Main pr is in couch repo)

Jira: COUCHDB-2988


> Allow query selector as changes and replication filter
> ------------------------------------------------------
>
>                 Key: COUCHDB-2988
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2988
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core, Mango
>            Reporter: Nick Vatamaniuc
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to