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 2019/10/01 09:46:46 UTC

[GitHub] [couchdb-nano] glynnbird commented on issue #184: Error: Invalid operator: $regex

glynnbird commented on issue #184: Error: Invalid operator: $regex
URL: https://github.com/apache/couchdb-nano/issues/184#issuecomment-536959056
 
 
   Try expressing your regular expression as a string. Nano doesn't understand JavaScript regular expressions - it passes a regular expression _string_ to CouchDB for processing e.g.
   
   ````js
   selector: { name: {"$regex": "^cat" }}
   ```
   
   should find names beginning with "cat".

----------------------------------------------------------------
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