Urigo/graphql-cli

The full stack template gives an error in server

udith-shalinda opened this issue · 2 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