Github user robertkowalski commented on a diff in the pull request:

    https://github.com/apache/couchdb-nmo/pull/14#discussion_r46952143
  
    --- Diff: doc/cli/nmo-query ---
    @@ -0,0 +1,17 @@
    +nmo-query(1) -- Query Mango
    +===========================================
    +
    +## SYNOPSIS
    +
    +    nmo query cluster <database> create <fields> [--json]
    +    nmo query cluster <database> <selector> [--json]
    +
    +## DESCRIPTION
    +
    +Create and query CouchDB Mango indexes.
    +
    +This will create an index with three fields
    +    nmo query mycluster database create name surname age
    +
    +This will query an index
    +    nmo query mycluster database {name: "Harry", age: {$gt: 5}, surname: 
{gt: null}}
    --- End diff --
    
    i think a selector is missing here:
    
    ```
    nmo query mycluster database {"selector": {"_id": {"$gt":null}}}
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to