Examples
On the GitHub repository there are a few simple examples of how to use different TypeGraphQL features and how well they integrate with 3rd party libraries.
All examples have an examples.gql
file with sample queries/mutations/subscriptions that we can execute.
Basics
Advanced
- Enums and unions
- Subscriptions (simple)
- Subscriptions (using Redis)
- Interfaces
- Extensions (metadata)
Features usage
- Dependency injection (IoC container)
- Authorization
- Validation
- Types inheritance
- Resolvers inheritance
- Generic types
- Mixin classes
- Middlewares and Custom Decorators
- Query complexity
3rd party libs integration
- TypeORM (manual, synchronous) *
- TypeORM (automatic, lazy relations) *
- MikroORM
- Typegoose
- Apollo federation
- Apollo Cache Control
- Apollo Client state
- GraphQL Modules
* Note that we need to edit the TypeORM example's index.ts
with the credentials of our local database