You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for enter and leave objects was dropped in GraphQL 16 (graphql/graphql-js#2957), so the visitor would just need to be rewritten in this format:
visit(ast,{Kind: {enter(node){// enter the "Kind" node}leave(node){// leave the "Kind" node}}})
I've patched this locally, and otherwise everything seems to be working fine.
The text was updated successfully, but these errors were encountered:
Make the toolkit compatible with GQL 16.
The only problem I see is this visitor, which is causing
TypeError: visitFn.call is not a function
:gatsby-graphql-toolkit/src/compile-node-queries/ast-transformers/remove-unused-fragments.ts
Lines 11 to 42 in b395feb
Support for
enter
andleave
objects was dropped in GraphQL 16 (graphql/graphql-js#2957), so the visitor would just need to be rewritten in this format:I've patched this locally, and otherwise everything seems to be working fine.
The text was updated successfully, but these errors were encountered: