From 722e3a38c518527b0880f34bee925cbbb037e97a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lytek?= Date: Tue, 19 May 2020 21:34:41 +0200 Subject: [PATCH] release: 1.0.0-rc.2 --- CHANGELOG.md | 4 +- .../version-1.0.0-rc.1/examples.md | 38 +++++++-------- .../version-1.0.0-rc.2/examples.md | 48 +++++++++++++++++++ website/versions.json | 1 + 4 files changed, 71 insertions(+), 20 deletions(-) create mode 100644 website/versioned_docs/version-1.0.0-rc.2/examples.md diff --git a/CHANGELOG.md b/CHANGELOG.md index fade6dd2c..05b671d41 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,9 @@ # Changelog and release notes -## Unreleased + + +## v1.0.0-rc.2 ### Features - expose `createResolversMap` utility that generates apollo-like resolvers object - support IoC containers which `.get()` method returns a `Promise` of resolver instance diff --git a/website/versioned_docs/version-1.0.0-rc.1/examples.md b/website/versioned_docs/version-1.0.0-rc.1/examples.md index 824e316ff..0da30e36a 100644 --- a/website/versioned_docs/version-1.0.0-rc.1/examples.md +++ b/website/versioned_docs/version-1.0.0-rc.1/examples.md @@ -11,34 +11,34 @@ All examples have an `examples.gql` file with sample queries/mutations/subscript ## Basics -- [Simple usage of fields, basic types and resolvers](https://github.com/MichalLytek/type-graphql/tree/master/examples/simple-usage) +- [Simple usage of fields, basic types and resolvers](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/simple-usage) ## Advanced -- [Enums and unions](https://github.com/MichalLytek/type-graphql/tree/master/examples/enums-and-unions) -- [Subscriptions (simple)](https://github.com/MichalLytek/type-graphql/tree/master/examples/simple-subscriptions) -- [Subscriptions (using Redis)](https://github.com/MichalLytek/type-graphql/tree/master/examples/redis-subscriptions) -- [Interfaces](https://github.com/MichalLytek/type-graphql/tree/master/examples/interfaces-inheritance) +- [Enums and unions](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/enums-and-unions) +- [Subscriptions (simple)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/simple-subscriptions) +- [Subscriptions (using Redis)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/redis-subscriptions) +- [Interfaces](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/interfaces-inheritance) ## Features usage -- [Dependency injection (IoC container)](https://github.com/MichalLytek/type-graphql/tree/master/examples/using-container) - - [scoped container](https://github.com/MichalLytek/type-graphql/tree/master/examples/using-scoped-container) -- [Authorization](https://github.com/MichalLytek/type-graphql/tree/master/examples/authorization) -- [Validation](https://github.com/MichalLytek/type-graphql/tree/master/examples/automatic-validation) -- [Types inheritance](https://github.com/MichalLytek/type-graphql/tree/master/examples/interfaces-inheritance) -- [Resolvers inheritance](https://github.com/MichalLytek/type-graphql/tree/master/examples/resolvers-inheritance) -- [Generic types](https://github.com/MichalLytek/type-graphql/tree/master/examples/generic-types) -- [Mixin classes](https://github.com/MichalLytek/type-graphql/tree/master/examples/mixin-classes) -- [Middlewares and Custom Decorators](https://github.com/MichalLytek/type-graphql/tree/master/examples/middlewares-custom-decorators) +- [Dependency injection (IoC container)](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/using-container) + - [scoped container](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/using-scoped-container) +- [Authorization](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/authorization) +- [Validation](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/automatic-validation) +- [Types inheritance](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/interfaces-inheritance) +- [Resolvers inheritance](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/resolvers-inheritance) +- [Generic types](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/generic-types) +- [Mixin classes](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/mixin-classes) +- [Middlewares and Custom Decorators](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/middlewares-custom-decorators) ## 3rd party libs integration -- [TypeORM (manual, synchronous) \*](https://github.com/MichalLytek/type-graphql/tree/master/examples/typeorm-basic-usage) -- [TypeORM (automatic, lazy relations) \*](https://github.com/MichalLytek/type-graphql/tree/master/examples/typeorm-lazy-relations) -- [Typegoose](https://github.com/MichalLytek/type-graphql/tree/master/examples/typegoose) -- [Apollo Engine (Apollo Cache Control) \*\*](https://github.com/MichalLytek/type-graphql/tree/master/examples/apollo-engine) -- [Apollo client state](https://github.com/MichalLytek/type-graphql/tree/master/examples/apollo-client) +- [TypeORM (manual, synchronous) \*](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/typeorm-basic-usage) +- [TypeORM (automatic, lazy relations) \*](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/typeorm-lazy-relations) +- [Typegoose](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/typegoose) +- [Apollo Engine (Apollo Cache Control) \*\*](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/apollo-engine) +- [Apollo client state](https://github.com/MichalLytek/type-graphql/tree/1.0.0-rc.1/examples/apollo-client) _\* Note that we need to edit the TypeORM example's `index.ts` with the credentials of our local database_ diff --git a/website/versioned_docs/version-1.0.0-rc.2/examples.md b/website/versioned_docs/version-1.0.0-rc.2/examples.md new file mode 100644 index 000000000..154b63c82 --- /dev/null +++ b/website/versioned_docs/version-1.0.0-rc.2/examples.md @@ -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_ diff --git a/website/versions.json b/website/versions.json index e3d4c4455..81ee0ec32 100644 --- a/website/versions.json +++ b/website/versions.json @@ -1,4 +1,5 @@ [ + "1.0.0-rc.2", "1.0.0-rc.1", "0.17.6", "0.17.5",