Documentation that arrays work as a set not storing duplicates

Continuing the discussion from Schema for maps of kv pairs with variant values:

https://dgraph.io/docs/query-language/schema/#list-type

  • A set operation adds to the list of values. The order of the stored values is non-deterministic.
  • A delete operation deletes the value from the list.
  • Querying for these predicates would return the list in an array.
  • Indexes can be applied on predicates which have a list type and you can use Functions on them.
  • Sorting is not allowed using these predicates.

Clarification needs to be added here that:

1 Like

Fixed by: https://github.com/dgraph-io/dgraph/pull/6455