Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
apollo-client docs(examples): update deps and code of apollo-client example Sep 8, 2019
apollo-engine docs(examples): update examples to remove `graphql-yoga` dependency Oct 13, 2018
authorization docs(examples): update examples to remove `graphql-yoga` dependency Oct 13, 2018
automatic-validation fix(validation): remove `formatArgumentValidationError` helper Feb 23, 2019
enums-and-unions docs(unions): update docs and examples with function syntax for types Aug 17, 2019
generic-types fix(inheritance): allow for returning plain objects (#279) Mar 16, 2019
interfaces-inheritance docs(examples): update interfaces example with `orphanedTypes` Sep 7, 2019
middlewares-custom-decorators feat(decorators): add createMethodDecorator helper May 6, 2019
mixin-classes docs(examples): add mixin classes example Sep 21, 2019
query-complexity feat(complexity): add support only for `fieldExtensionsEstimator` Oct 6, 2019
redis-subscriptions Update all urls and mentions of old github account name Sep 8, 2019
resolvers-inheritance docs(examples): fix `using private name` error Feb 18, 2019
simple-subscriptions docs(examples): improve query complexity and subscriptions examples Oct 13, 2018
simple-usage feat(defaults): add support for default values for input types (#203) Dec 15, 2018
typegoose Update all urls and mentions of old github account name Sep 8, 2019
typeorm-basic-usage Update all urls and mentions of old github account name Sep 8, 2019
typeorm-lazy-relations Update all urls and mentions of old github account name Sep 8, 2019
using-container docs(examples): fix examples for new container registration API Jan 26, 2019
using-scoped-container docs(examples): fix examples for new container registration API Jan 26, 2019
README.md docs(examples): add mixin classes example Sep 21, 2019
tsconfig.json docs(examples): fix `using private name` error Feb 18, 2019

README.md

Examples

This folder consist of 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.

Note: Be aware that the examples on master branch are designed to work with latest codebase that might not be released yet. So if you are looking for examples that are compatible with the version you use, just browse the files by the git tag, e.g. tree/v0.16.0 for 0.16.0 release.

Basics

Advanced

Features usage

3rd party libs integration

* 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

You can’t perform that action at this time.