keystonejs / keystonejs/keystone

`graphql.omit` will drop types, but you might need the types for a `.sudo` context

Open
#8,547 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10k
Forks
1.3k
Avg merge
19h 14m
Merged PRs (30d)
19

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the graphql.omit behavior and how the separate .sudo GraphQL schema is produced, using pull request #8357 for context. Determine how the sudo schema should differ, then verify that types needed there remain available while omitted types stay removed from the regular schema.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.