Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ArangoDB: AQL: Insert a document into the collection

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

Previous                                                    Next                                                    Home


This post first appeared on Java Tutorial : Blog To Learn Java Programming, please read the originial post: here

Share the post

ArangoDB: AQL: Insert a document into the collection

×

Subscribe to Java Tutorial : Blog To Learn Java Programming

Get updates delivered right to your inbox!

Thank you for your subscription

×