Result is not updated as expected in N1ql

  1. I have a scenario where I create a list and add an item to that list in single API request. My approach is basically, I first create a list and then insert an item to that list. I am using PHP for this, I am getting success after creating a list but when I try to insert an item to that list it says list does not exist, but when I try after some delay list exist. The whole point is basically that list is created after some delay. Is there any workaround for this or am I doing something wrong?

  2. Is there a way to delete key from a document as we have way to delete column in sql.


Couchbase Indexes are asynchronously maintained. It lags behind. Use Scan_consistency.
Do you mean remove field from document. Checkout UPDATE statement