I want to ask. what's the usage of app project? ho...
# orm-help
x
I want to ask. what's the usage of app project? how can I change local graphql port
n
the port is set in the config object that’s passed to the
start
method of `GraphQLServer`:
Copy code
const options = {
  port: 8000,
}

server.start(options, ({ port }) =>
  console.log(
    `Server started, listening on port ${port} for incoming requests.`,
  ),
)
x
👌, so the app project is useless now?
n
nope, the
.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 both
x
How can I see the app project in Playground?
In my demo, I can see the usage of database project.
n
when you’re running the
graphql playground
command it should show you a sidenav with trhe
app
and
database
projects
check the end of this page for a bit more context: https://www.howtographql.com/graphql-js/5-connecting-server-and-database/
x
👌thanks, got it.
Is there any relation between GraphqlServer and .graphqlconfig.yml file? Can this server use the app project?
n
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.
x
👍