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

Let extensions intercept schemas #463

Merged
merged 11 commits into from
Mar 26, 2020
Merged

Conversation

kamilkisiela
Copy link
Owner

@kamilkisiela kamilkisiela commented Mar 25, 2020

export const MyExtension: GraphQLExtensionDeclaration = api => {
  api.loaders.schema.use(document => addDirective(document));
 
  return {
    name: 'my-extension',
  };
};

@theguild-bot
Copy link
Collaborator

theguild-bot commented Mar 25, 2020

The latest changes of this PR are available as alpha in npm: 0.0.0-experimental-5ea0951.511

Quickly update your package.json by running:

npx match-version graphql-config 0.0.0-experimental-5ea0951.511

@vercel vercel bot requested a deployment to Preview March 25, 2020 15:42 Abandoned
@vercel vercel bot requested a deployment to Preview March 25, 2020 15:43 Abandoned
@zth
Copy link

zth commented Mar 25, 2020

This is great, thank you!

@kamilkisiela kamilkisiela force-pushed the feat/extension-extends branch from e025101 to eaded0b Compare March 26, 2020 17:30
@kamilkisiela kamilkisiela merged commit 3d106eb into master Mar 26, 2020
@kamilkisiela kamilkisiela deleted the feat/extension-extends branch March 26, 2020 20:26
This was referenced Mar 28, 2022
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.

3 participants