Examples
On the GitHub repository there are a few simple examples showing how to use different TypeGraphQL features and how well it integrates with 3rd party libraries.
All examples has a examples.gql
file with sample queries/mutations/subscriptions that you can execute.
Basics
Advanced
- Enums and unions
- Interfaces and types inheritance
- Subscriptions (simple)
- Subscriptions (using Redis)
- Resolvers inheritance
Features usage
3rd party libs integration
- TypeORM (manual, synchronous) *
- TypeORM (automatic, lazy relations) *
- Apollo Engine (Apollo Cache Control) **
* Note that you need to edit the TypeORM examples index.ts
with credentials to your local database
** Note that you need to provide APOLLO_ENGINE_API_KEY
env variable with your own API key