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

context.db should not omit types omitted from the GraphQL schema #9402

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/core/src/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export async function generateArtifacts (cwd: string, system: System) {

export async function generateTypes (cwd: string, system: System) {
const paths = getSystemPaths(cwd, system.config)
const schema = printGeneratedTypes(paths.types.relativePrismaPath, system.graphQLSchema, system.lists)
const schema = printGeneratedTypes(paths.types.relativePrismaPath, system.graphQLSchemaSudo, system.lists)
await fs.mkdir(path.dirname(paths.schema.types), { recursive: true })
await fs.writeFile(paths.schema.types, schema)
}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/lib/createSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ export function createSystem (config_: KeystoneConfig) {
return {
config,
graphQLSchema,
graphQLSchemaSudo,
adminMeta,
lists,

Expand Down
Loading