graphql using JSON creates invalid schema
0
So I'm trying to enable JSON scalar type as defined below, but it's throwing me an invalid GraphQL schema error. What have I defined wrong? I'm just trying to follow their guide: https://www.apollographql.com/docs/graphql-tools/scalars.html const GraphQLJSON = require("graphql-type-json") const { makeExecutableSchema } = require("graphql-tools") const typeDefs = ` scalar JSON type Query { hello: String, print (name: String): String, json (a: JSON): JSON } ` // Provide resolver functions for your schema fields export const resolvers = { Query: { hello: function (parent, args, context) { console.log(context.body) return "Hello" }...