-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perform search over POST too #32
Comments
@glynnbird Hi Glynn! I really need to make a call on _all_docs using the POST method. I would like to implement this feature in nano. I'm wondering what would be the best approach to implement this new route:
For 3, I fear that it could cause some problems if people have custom proxies that limit the method/endpoints accessible. Let me know what you think! |
There's already an API call do do that. It's called https://github.com/apache/couchdb-nano/blob/master/lib/nano.js#L585-L597 |
Ah my bad! Thanks glynn! I think we can also close this issue. |
Original issue
TheHominid
A too long search query results in an error 400 from couchDB (due to GET url length limitations), however if the same query is sent inside the body with a POST call, couchDB works properly.
From the code it seems that nano can only perform search operations over GET and not POST.
The text was updated successfully, but these errors were encountered: