xiaoqf10
08/29/2018, 7:26 AMnikolasburk
start
method of `GraphQLServer`:
const options = {
port: 8000,
}
server.start(options, ({ port }) =>
console.log(
`Server started, listening on port ${port} for incoming requests.`,
),
)
nikolasburk
xiaoqf10
08/29/2018, 7:56 AMnikolasburk
.graphqlconfig
is important for tools like the GraphQL Playground or the GraphQL CLI. For example, if you want the Playground to show both projects side-by-side, you need to have a .graphqlconfig
file that specifies bothxiaoqf10
08/29/2018, 8:02 AMxiaoqf10
08/29/2018, 8:05 AMnikolasburk
graphql playground
command it should show you a sidenav with trhe app
and database
projectsnikolasburk
xiaoqf10
08/29/2018, 8:10 AMxiaoqf10
08/29/2018, 8:12 AMnikolasburk
Can this server use the app project?Hmm not quite sure what you mean by this, the
GraphQLServer
basically is the app
project.
.graphlconfig
is “just” a way to provide information about your GraphQL server to the GraphQL CLI and the GraphQL Playground. You don’t need it but it simplifies certain worfklows.xiaoqf10
08/29/2018, 8:25 AM