yolen
10/31/2018, 2:12 PMconst server = new GraphQLServer({
typeDefs: './src/schema.graphql',
port: 8080,
resolvers,
context: {
db: prisma,
},
} as any). runs fine and I can get the playground up and running..... but on port 4000 NOT 8080. I have tried other ports but no cigar. I found this old issue https://github.com/prisma/graphql-yoga/issues/281Jared
10/31/2018, 2:16 PMyolen
10/31/2018, 2:18 PMJared
10/31/2018, 2:19 PMJared
10/31/2018, 2:20 PMyolen
10/31/2018, 2:22 PMJared
10/31/2018, 2:23 PMyolen
10/31/2018, 2:24 PMJared
10/31/2018, 2:25 PMyolen
10/31/2018, 2:26 PMJared
10/31/2018, 2:26 PMyolen
10/31/2018, 2:27 PMJared
10/31/2018, 2:27 PMJared
10/31/2018, 2:28 PMdocker ps , then docker kill <container name>Jared
10/31/2018, 2:28 PMdocker-compose up -dJared
10/31/2018, 2:29 PMyolen
10/31/2018, 2:31 PMZefex Developer
10/31/2018, 2:32 PMJared
10/31/2018, 2:32 PMJared
10/31/2018, 2:33 PMyolen
10/31/2018, 2:33 PMJared
10/31/2018, 2:37 PMconst options = {
port: 8000,
endpoint: '/graphql',
subscriptions: '/subscriptions',
playground: '/playground',
}
server.start(options, ({ port }) =>
console.log(
`Server started, listening on port ${port} for incoming requests.`,
),
)
The port is supposed to be passed into the server.startJared
10/31/2018, 2:38 PMnew GraphQLServeryolen
10/31/2018, 6:54 PM