Urigo / graphql-cli

📟 Command line tool for common GraphQL development workflows

Home Page:https://graphql-cli.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The full stack template gives an error in server

udith-shalinda opened this issue · comments

The issue is with the typeDefs and resolvers in apolloServer.

const apolloServer = new ApolloServer({
    typeDefs: loadSchemaFiles(join(__dirname, '/schema/')),
    resolvers: loadResolversFiles(join(__dirname, '/resolvers/')),
    context: createKnexRuntimeContext(db as any, pubSub),
    playground: true,
  })

Apollo broke compatibility on their types.
I'm currently refactoring this so going to assign it to myself.
As a quick workaround, we can do as any or use makeExecutableSchema from graphql-toolkit

That is currently fixed. Updating to latest Graphback