This is an samll example of a graphql server
- [Yoga]
- [Typescript]
- Create the .env file
- run this:
$/ cd <project-name>
$/ yarn
$/ yarn dev // Initialize the yoga server and starts the playground
Project Root/
│
├── src/
│ └── config/ # setup the services
│ └── datasources/ # sources of data, here you can put databases, file services , etc
│ └── resolvers/ # example of how the resolvers can be structure
│ └── schema/ # Schema definition
│ └── types/ # Typescript types, interfaces
│ └── context # resolvers context
│ └── index # this is where the yoga server is started
├── .env.example # example of how the env file have to look like
├── .gitignore
├── .graphqlconfig.yml # graphQL configuration file
├── package.json
├── README.md
└── tsconfig.json # Typescript configuration file