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

default example with makeExecutableSchema error and graphql-tools #52

Open
catafest-work opened this issue Nov 10, 2022 · 0 comments
Open

Comments

@catafest-work
Copy link

catafest-work commented Nov 10, 2022

I tested with nodejs first example and I got this error:

const schema = makeExecutableSchema({
               ^

ReferenceError: makeExecutableSchema is not defined

I think is not working because this issue from graphql-tools to ardatan/graphql-tools#136 is closed but is regarding to apollo server ...
After I add it
import { makeExecutableSchema } from 'graphql-tools';
I got this error:
_This package has been deprecated and now it only exports makeExecutableSchema.
And it will no longer receive updates.
We recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.
Check out https://www.graphql-tools.com to learn what package you should use instead!
This package has been deprecated and now it only exports makeExecutableSchema.
And it will no longer receive updates.
We recommend you to migrate to scoped packages such as @graphql-tools/schema, @graphql-tools/utils and etc.
Check out https://www.graphql-tools.com to learn what package you should use instead!
file:///E:/testgithubgraphql/start_graphql-directive-auth_example_001.js:10
typeDefs,
^

ReferenceError: typeDefs is not defined_

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

No branches or pull requests

1 participant