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

refactor: Accept pre-processed schemas as introspection inputs #147

Merged
merged 10 commits into from
Mar 20, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Mar 20, 2024

Summary

This allows the API to accept a pre-processed “gql.tada schema” to be accepted as the introspection option (i.e. on AbstractSetupSchema / setupSchema). Effectively, this means that mapIntrospection is used on demand, and only when the input hasn't already been run through mapIntrospection before.

This also required us to then split introspection mapping into two steps — one for the general remapping, and one for scalars.

Set of changes

  • Split mapIntrospection into non-scalar and scalar-adding steps
  • Accept pre-processed schema as introspection option

Copy link

changeset-bot bot commented Mar 20, 2024

🦋 Changeset detected

Latest commit: 9d4a4df

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

src/introspection.ts Outdated Show resolved Hide resolved
@kitten kitten force-pushed the refactor/split-scalars-and-introspection-mapping branch from 01a87ad to 9d4a4df Compare March 20, 2024 14:04
@kitten kitten merged commit 92283ad into main Mar 20, 2024
1 check passed
@kitten kitten deleted the refactor/split-scalars-and-introspection-mapping branch March 20, 2024 14:06
@github-actions github-actions bot mentioned this pull request Mar 20, 2024
@kitten kitten added this to the Are We Fast Yet? milestone Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants