Skip to content

How to use Mango Queries with special characters in Windows shell #2979

Answered by janl
janl asked this question in Q&A
Discussion options

You must be logged in to vote

Solution

Thank you! I try both options, The firts option worked me. And use the json structure with special caracters for windows:

{  
    "selector": {    
        "age": 29,    
        "$or": [      
            {        
                "name": "Martín"      
            },      
            {        
                "name": "Daniela"      
            }    
        ]  
    },  
    "fields": [    
        "name",    "age",    "_id"  
    ]
}

And my curl command on Windos was:
curl -X POST http://anna:[email protected]:5984/pruebaproyecto/_find -H "Accept: application/json" -H "Content-Type: application/json" -d @query1.json

Replies: 1 comment

Comment options

janl
Jul 1, 2020
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by janl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant