Skip to content

Graphql-js tutorial mutation './src/schema.graphql' #66

@tuscanlabs

Description

@tuscanlabs

Following the tutorial, a simple mutation, I am getting error at './src/schema.graphql'. I am using node version v11.1.0

/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/lexer.js:280
throw (0, _syntaxError.syntaxError)(source, pos, unexpectedCharacterMessage(code));
^
GraphQLError: Syntax Error: Cannot parse the unexpected character "/".
at syntaxError (/Users/raghu/Documents/hackernews-node/node_modules/graphql/error/syntaxError.js:15:10)
at readToken (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/lexer.js:280:38)
at Object.lookahead (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/lexer.js:55:43)
at Object.advanceLexer [as advance] (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/lexer.js:45:33)
at expectOptionalToken (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/parser.js:1440:11)
at many (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/parser.js:1517:11)
at parseFieldsDefinition (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/parser.js:852:54)
at parseObjectTypeDefinition (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/parser.js:806:16)
at parseTypeSystemDefinition (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/parser.js:704:16)
at parseDefinition (/Users/raghu/Documents/hackernews-node/node_modules/graphql/language/parser.js:137:16)

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