How to add facets using python

Hello guys
i’m tired, i don’t know how to add facets using python client
help me pls

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

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

it works for me, thanks u :grinning:

1 Like

I know this is quite old, and I am really not trying to do self-promotion here… but pydiggy supports adding facets in a Python client.

1 Like