Hi @reasley,
Assuming you’re using a GraphQL schema and not DQL, the only way to remove specific types/fields from the schema is to upload a new schema entirely minus those types/fields.
The reason we cannot edit a GraphQL schema to remove or add specific types alone is because the entire schema is stored as a ‘String’ inside a DQL predicate called <dgraph.graphql.schema> as
<some-uid> <dgraph.graphql.schema> "<stringified-graphql-schema>".
You can even retrieve the entire schema using pure DQL using:
{
q(func: has(dgraph.graphql.schema)) {
uid
dgraph.graphql.schema
}
}
So it is an architectural constraint that we cannot update specific components in a GraphQL schema as of today, but we’re aware of these limitations and do have plans wrt this. Hopefully in future versions it should be possible to do so, but as of today the only way is to upload a new GraphQL schema altogether.
HTH!