Syntax
INSERT document INTO collectionName
Example
INSERT {
"id" : 1,
"firstName" : "Krishna",
"lastName" : "Gurram"
} INTO users
Above snippet write the document into users collection.
From the webui, click on Queries tab available in left side navigation bar.
Place the query in text area and click on Execute button.
You can execute below snippet to get all the documents from a collection.
Syntax
FOR item in collection
RETURN item
Example
FOR userDoc IN users
RETURN userDoc
No comments:
Post a Comment