Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs about mutation flag #4128

Merged
merged 7 commits into from Oct 9, 2019
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions wiki/content/deploy/index.md
Expand Up @@ -1807,6 +1807,22 @@ dgraph alpha --whitelist 172.17.0.0:172.20.0.0,192.168.1.1 --lru_mb <one-third R
This would allow admin operations from hosts with IP between `172.17.0.0` and `172.20.0.0` along with
the server which has IP address as `192.168.1.1`.

### Restrict Mutation Operations

prashant-shahi marked this conversation as resolved.
Show resolved Hide resolved
By default, you can perform mutation operations for any existing or non-existing predicates. You can make use of `--mutations` flag to set the restriction, which is by default set to `allow`.

You can set `--mutations` option to `disallow` to disable the mutations.

```sh
dgraph alpha --mutations disallow ...
```

You can set `--mutations` option to `strict` to limit mutations to only existing predicates in the schema, and disable mutations of unknown predicates.
prashant-shahi marked this conversation as resolved.
Show resolved Hide resolved

```sh
dgraph alpha --mutations strict ...
```

### Secure Alter Operations

Clients can use alter operations to apply schema updates and drop particular or all predicates from the database.
Expand Down