We’re overhauling Dgraph’s docs to make them clearer and more approachable. If you notice any issues during this transition or have suggestions, please let us know.

@auth allows you to define how to apply authorization rules on the queries/mutation for a type.

Refer to graphql endpoint security, Role-Based Access Control (RBAC) rules and Graph traversal rules for details.

@auth directive isn’t supported on union and @remote types.