Hello,
Is there a way to update a document without a field name using N1QL? Please see attached image.
Hello,
Is there a way to update a document without a field name using N1QL? Please see attached image.
According to JSON schema with in the JSON OBJECT you must have field name.
JSON value also as JSON document. You can store the document as JSOM value instead of object and modify.
EXAMPLE: of various N1QL statements on JSON value as document.
INSERT INTO default VALUES("k01",10);
INSERT INTO default VALUES("k02", "My City");
SELECT d FROM default WHERE d = 10;
UPDATE default AS d SET d = d+10 WHERE d = 10;
DELETE FROM default d WHERE d = 10;