nosql - How to delete in couchbase? -


hi having issues trying delete entries in couchbase. entry looks this,

[ "default": {"status": "success", "traceback": null, "result": 13, "task_id": "003bba0e-a9ff-44a5-8c79-7829878eb1bb", "children": []}] 

where entry celery task add entry.

i have tried following queries keep getting no result or entry not being deleted,

delete default s s.task_id = "003bba0e-a9ff-44a5-8c79-7829878eb1bb" returning s delete default "task_id" = "003bba0e-a9ff-44a5-8c79-7829878eb1bb" 

but no avail.

your first delete statement correct if document json object top-level field of task_id, perhaps document not well-formed json.

### add document default bucket insert default (key, value) values ("task1", {"status": "success", "traceback": null, "result": 13, "task_id": "003bba0e-a9ff-44a5-8c79-7829878eb1bb", "children": []});  ### delete document default bucket delete `default` s s.task_id = "003bba0e-a9ff-44a5-8c79-7829878eb1bb" returning s; 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -