1

I'm new to arangodb and went through the site's CRUD tutorial. I don't see how to select from collections not in the default _system database. Is there a way to tell curl? Thanks, Mark

1 Answer 1

5

The curl command would look like this:

curl --data @- -X POST --dump - http://0.0.0.0:8529/_db/mydb/_api/cursor <<< '{ "query" : "FOR u IN mycollection FILTER u.name == \"Hase\" RETURN u" }'

mydb is the database you want to use.

The pattern extends to nearly all REST APIs: https://docs.arangodb.com/3.11/develop/http/databases/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.