Organizing the Backend Project
Learn how to better organize our server project, which will help us easily navigate the project.
We'll cover the following
Organizing the server
To make our project more organized, we’ll split our code into the following files:
-
resolvers.js
: A file fort our resolvers. -
schema.graphql
: The GraphQL schema for our project. -
schema.js
: A file that contains code to read the GraphQL schema. -
nodemon.json
: The configuration for thenodemon
tool.
This is how the files are structured on the disk:
Get hands-on with 1200+ tech skills courses.