keystone
keystone copied to clipboard
`graphql.omit` will drop types, but you might need the types for a `.sudo` context
As seen in https://github.com/keystonejs/keystone/pull/8357, if you use graphql.omit, the types will be removed from your GraphQL schema, but that schema is not the same as your .sudo GraphQL schema, but now you're missing the types.
The types for .sudo need to be different.