You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you pass "key" query to GET /{db}/_design/{ddoc}/_view/{view}
for example /your_db/_design/your_doc/_view/some_view?key="some_exist_key" works fine, it return rows if it match.
But if you use json as key: /your_db/_design/your_doc/_view/some_view?key={"json_example": "some_exist_key"} for example will not return any row even if {"json_example": "some_exist_key"} as key exist.
I think it's not matter TIP: # ( Include as many relevant details about your environment as possible. ) TIP: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
CouchDB version used: 3.4.2
Browser name and version: edge, postman
Operating system and version: windows 10
Additional Context
The text was updated successfully, but these errors were encountered:
Description
When you pass "key" query to GET /{db}/_design/{ddoc}/_view/{view}
for example /your_db/_design/your_doc/_view/some_view?key="some_exist_key" works fine, it return rows if it match.
But if you use json as key: /your_db/_design/your_doc/_view/some_view?key={"json_example": "some_exist_key"} for example will not return any row even if {"json_example": "some_exist_key"} as key exist.
Steps to Reproduce
I use it
http://admin:admin@localhost:5984/account_documents/_design/unique_data_design_doc/_view/account_id_rev_by_hash_password_login?key={"login": "login_2","password_hash": "XKJyibT/PjDRPy2X/DP86v12ZmzKdHuVudId5E0+4ts"}
with view
If you want reproduce bag, just add document and then view with json as key and then try retrieve by then key row, you got empty row array
Expected Behaviour
Possibility to retrieve document by json not only by string, so key like
will return not empty array rows if key is exists
Your Environment
I think it's not matter
TIP: # ( Include as many relevant details about your environment as possible. )
TIP: # ( You can paste the output of curl http://YOUR-COUCHDB:5984/ here. )
Additional Context
The text was updated successfully, but these errors were encountered: