-
-
Notifications
You must be signed in to change notification settings - Fork 677
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
012a561
commit 722e3a3
Showing
4 changed files
with
71 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
title: Examples | ||
sidebar_label: List of examples | ||
id: version-1.0.0-rc.2-examples | ||
original_id: examples | ||
--- | ||
|
||
On the [GitHub repository](https://github.com/MichalLytek/type-graphql) 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 | ||
|
||
- [Simple usage of fields, basic types and resolvers](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/simple-usage) | ||
|
||
## Advanced | ||
|
||
- [Enums and unions](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/enums-and-unions) | ||
- [Subscriptions (simple)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/simple-subscriptions) | ||
- [Subscriptions (using Redis)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/redis-subscriptions) | ||
- [Interfaces](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/interfaces-inheritance) | ||
- [Extensions (metadata)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/extensions) | ||
|
||
## Features usage | ||
|
||
- [Dependency injection (IoC container)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/using-container) | ||
- [Scoped containers](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/using-scoped-container) | ||
- [Authorization](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/authorization) | ||
- [Validation](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/automatic-validation) | ||
- [Types inheritance](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/interfaces-inheritance) | ||
- [Resolvers inheritance](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/resolvers-inheritance) | ||
- [Generic types](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/generic-types) | ||
- [Mixin classes](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/mixin-classes) | ||
- [Middlewares and Custom Decorators](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/middlewares-custom-decorators) | ||
- [Query complexity](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/query-complexity) | ||
|
||
## 3rd party libs integration | ||
|
||
- [TypeORM (manual, synchronous) \*](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/typeorm-basic-usage) | ||
- [TypeORM (automatic, lazy relations) \*](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/typeorm-lazy-relations) | ||
- [Typegoose](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/typegoose) | ||
- [Apollo federation](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/apollo-federation) | ||
- [Apollo Engine (Apollo Cache Control) \*\*](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/apollo-engine) | ||
- [Apollo client state](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.2/examples/apollo-client) | ||
|
||
_\* Note that we need to edit the TypeORM example's `index.ts` with the credentials of our local database_ | ||
|
||
_\*\* Note that we need to provide an `APOLLO_ENGINE_API_KEY` env variable with our own API key_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
[ | ||
"1.0.0-rc.2", | ||
"1.0.0-rc.1", | ||
"0.17.6", | ||
"0.17.5", | ||
|