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

Export healSchema, visitSchema and SchemaVisitor from index.js #1070

Closed
MOZGIII opened this issue Feb 28, 2019 · 3 comments
Closed

Export healSchema, visitSchema and SchemaVisitor from index.js #1070

MOZGIII opened this issue Feb 28, 2019 · 3 comments
Labels

Comments

@MOZGIII
Copy link

MOZGIII commented Feb 28, 2019

Hello.

I find healSchema, visitSchema and SchemaVisitor very useful to force various actions over the whole schema. After updating from 2.24.0 I can't import them from graphql-tools. Thankfully it's easily fixed:

-import { healSchema, SchemaVisitor, visitSchema } from "graphql-tools";
+import {
+  healSchema,
+  SchemaVisitor,
+  visitSchema
+} from "graphql-tools/dist/schemaVisitor";

Would be great if you could export those at graphql-tools again.

@yaacovCR
Copy link
Collaborator

yaacovCR commented Oct 4, 2019

Fixed in graphql-tools-fork, see https://www.npmjs.com/package/graphql-tools-fork

@kamilkisiela
Copy link
Collaborator

We recently released an alpha version of GraphQL Tools (#1308) that should fix the issue.

Please update graphql-tools to next or run:

npx match-version graphql-tools next

Let us know if it solves the problem, we're counting for your feedback! :)

@yaacovCR yaacovCR mentioned this issue Mar 27, 2020
22 tasks
@yaacovCR
Copy link
Collaborator

Rolled into #1306

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants