refactor: migrate schema output config from flat props to nested schema object#848
Merged
pyramation merged 1 commit intomainfrom Mar 18, 2026
Merged
Conversation
…ma object
Replaces schemaOnly/schemaOnlyOutput/schemaOnlyFilename with:
schema: { enabled?: boolean, output?: string, filename?: string }
This aligns schema export config with the existing nested object paradigm
used by tables, queries, mutations, codegen, hooks, docs, etc.
CLI flags updated: --schema-enabled, --schema-output, --schema-filename
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces the flat
schemaOnly/schemaOnlyOutput/schemaOnlyFilenameproperties with a nestedschema: { enabled, output, filename }object, aligning schema export configuration with the existing nested-object paradigm used bytables,queries,codegen,docs, etc.Config change:
CLI change:
--schema-only→--schema-enabled, plus new--schema-outputand--schema-filenameflags.Files changed across
graphql/codegen(types, generate, CLI handler/index, tests) andpackages/cli(codegen command, display, README, AGENTS.md).Review & Testing Checklist for Human
generate.ts: The oldschemaOnlytriggered an early return regardless of other generators being enabled. The new code gates schema export onschemaEnabled && !runReactQuery && !runOrm && !runCli— meaning if a user setsschema: { enabled: true }alongsideorm: true, the schema export is silently skipped. Verify this is the desired behavior vs. also exporting SDL when generators run.schemaOnly/schemaOnlyOutput/schemaOnlyFilenameproperties are fully removed. Any existing configs or programmatic callers using these will silently stop exporting schemas (no error thrown). Consider whether a runtime warning or migration period is needed.--schema-onlyno longer works. Verify no CI scripts, Makefiles, or downstream tooling depend on the old flag name.generateMulti, the fallback filename changed from always being${name}.graphqltoschema?.filename ?? ${name}.graphql. Confirm user-provided filename correctly overrides the per-target default.Notes
--schema-onlywere intentionally left untouched (historical records).constructive-skills,constructive-private-skills, andconstructive-dbare planned to update docs/skills referencing the old syntax.Link to Devin session: https://app.devin.ai/sessions/a0ac766d75d340d490fd265bfafaac83
Requested by: @pyramation