-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
+++ | ||
title = "Switching Backend Modes" | ||
[menu.main] | ||
parent = "slash-graphql-admin" | ||
weight = 6 | ||
+++ | ||
|
||
Slash GraphQL supports different 3 different backend modes, which controls how the underlying Dgraph instance is configured | ||
|
||
### Readonly Mode | ||
|
||
In readonly mode, only queries are allowed. All mutations and attempts to alter schema will be disallowed. | ||
|
||
### GraphQL Mode | ||
|
||
GraphQL mode is the default setting on Slash GraphQL, and is suitable for backends where the primary mode of interaction is via the GraphQL APIs. You can use of DQL/GraphQL+- queries and mutations, as described in the [advanced queries](/slash-graphql/advanced-queries/) section. However, all queries and mutations must be valid as per the applied GraphQL schema. | ||
|
||
### Flexible Mode | ||
|
||
Flexible mode is suitable for users who are already familiar with Dgraph, and intent to interact with their backend with DQL/GraphQL+-. 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 ACL. | ||
|
||
## Changing your Backend Mode | ||
|
||
You can change the backend mode on the [settings page](https://slash.dgraph.io/_/settings), under the "Advanced" tab. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters