How to add facets using python

You can use the JSON mutation format for facets: https://docs.dgraph.io/mutations/#facets

{
  "predicate|facet": "value"
}
1 Like