diff --git a/README.md b/README.md index 78d44b6..e3ddedc 100644 --- a/README.md +++ b/README.md @@ -147,11 +147,39 @@ You should format the `selector` property this way: ``` This makes selectors more convenient to write declaratively, while still -maintaining the ability to express selectors with full fidelity. For more -documentation on pouchdb-find selectors, please check out the docs +maintaining the ability to express selectors with full fidelity. Note that +embedded strings in selectors (e.g. 'Mario' in the example above) are not +always parsed correctly. In these cases it is better to express the selector +as an object or JSON string, as shown in the example below + +For more documentation on pouchdb-find selectors, please check out the docs [here](https://github.com/nolanlawson/pouchdb-find#dbfindrequest--callback). +You can also express selectors as objects or JSON strings, which must +conform to the semantics described in the pouchdb-find documentation. JSON +strings can be used as selector attribute values. Javascript objects can be +defined as component properties and passed as a value to the selector. + +Example of object used as a selector: + +```html +