Report Issue Edit Page

Switching Backend Modes

Slash GraphQL supports three different backend modes, which control how the underlying Dgraph instance is configured.

Read-only Mode

In read-only (readonly) mode, only queries are allowed. All mutations and attempts to alter the schema are disallowed.

GraphQL Mode

GraphQL mode is the default setting on Slash GraphQL, and is suitable for backends where the primary mode of interaction is using the GraphQL APIs. You can use DQL (formerly GraphQL+-) queries and mutations in this mode, as described in the advanced queries section. However, all queries and mutations must be valid for the applied GraphQL schema.

Flexible Mode

Flexible mode is suitable for users who are already familiar with Dgraph, and plan to interact with their backend using DQL. Flexible mode removes any restrictions on queries and mutations, and also provides users access to advanced Dgraph features like directly altering the schema with the /alter HTTP and GRPC endpoints.

Running your backend in flexible mode is also a requirement for upcoming features such as support for Dgraph’s access control list (ACL).

Changing your Backend Mode

To change your backend mode, go to the settings page, click the “Advanced” tab, and then select a mode from the Backend Mode list box.