Oleh Herych
Oleh Herych

Reputation: 905

How in CouchDB get GET parameter

I need get GET (or other) parameter in my CouchDB map() function.

P.S. I want search by polygon and for this i need to have list of points and compare with documents position.

Upvotes: 0

Views: 111

Answers (1)

smathy
smathy

Reputation: 27961

You can't access any parameters in your map function. The only thing map functions do is output key/value pairs. You can then limit the rows returned based on either a single key (key), a list of multiple keys (keys), or a range of keys (startKey and/or endKey). See more in the docs.

Upvotes: 2

Related Questions