Can't bulk edit DQL schema

What I want to do

Bulk edit the DQL schema

What I did

Opened up DQL Schema in the cloud’s text editor, and it gives me
Can't alter predicate `dgraph.cors` as it is prefixed with `dgraph.` which is reserved as the namespace for dgraph's internal types/predicates.

Even though I didn’t touch that predicate at all. All I tried to do was put a @recurse after one of my uid predicates.

Dgraph metadata

v21.03.0-76-ged09b8cc1

Delete the whole scheme in the editor and put only those predicates you wanna change. That might work.

So that wouldn’t end up removing the entire rest of the schema?

Nope, that’s not how it works. To remove something you have to explicitly command via API.

1 Like