Skip to content

default example with makeExecutableSchema error and graphql-tools #52

@catafest-work

Description

@catafest-work

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_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions