You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/03/13 22:22:21 UTC
[GitHub] [couchdb-documentation] andcastillo opened a new issue #506: Mango
_find query with fields/names that starts with dollar sign "$"
andcastillo opened a new issue #506: Mango _find query with fields/names that starts with dollar sign "$"
URL: https://github.com/apache/couchdb-documentation/issues/506
It is not possible to execute a _find query on Mango if the matching parameter name starts with a dollar sign $.
## Description
If you call the _find function with the statement {"$type" : "entry"} Mango throws an error because "$type" is not an operator.
## Steps to Reproduce
Create a database where every single entry contains the field "$type": "entry".
Try to filter out the documents which "$type" = "entry", by using the **_find** function
## Expected Behaviour
Return all the entries in the database
## Your Environment
Any CouchDB version supporting Mango
## Aditional information
Does somebody know a way to circumvent this problem that does not require to fix the names on my database?
Is there a way to escape the dollar sign in the names?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services