Primary_key

46 views
Skip to first unread message

Marcela Guerrero

unread,
Aug 26, 2020, 3:31:03 PM8/26/20
to ArangoDB
Has ArangoDb primary composed key?

Kerry Hormann

unread,
Aug 26, 2020, 5:11:33 PM8/26/20
to aran...@googlegroups.com
Yes, every document has two non-optional attributes:
  • _key  -  ex: _key: "1234"
  • _id  -  ex: _id: "myCollection/1234"
Both _id and _key are strings, and the value of _id is the collection name plus the _key, concatenated with a forward-slash.

All document collections have non-alterable indexes that cover these attributes.

All edge collections also have required properties:
  • _from  -  ex: from: "myCollection/123"
  • _to  -  ex: _to: "myCollection/abc"
All edge collections have non-alterable indexes that cover these attributes as well.


On Wed, Aug 26, 2020 at 12:31 PM Marcela Guerrero <marcelagu...@gmail.com> wrote:
Has ArangoDb primary composed key?

--
You received this message because you are subscribed to the Google Groups "ArangoDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to arangodb+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/arangodb/dbe5b8de-0781-4cd0-9366-969355276602n%40googlegroups.com.

noel del rosario

unread,
Aug 26, 2020, 10:00:34 PM8/26/20
to ArangoDB

Hope the LINK below could do some help ....
https://www.arangodb.com/why-arangodb/sql-aql-comparison/  
Reply all
Reply to author
Forward
0 new messages