Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Examples

This folder consists of simple examples showing how to use different TypeGraphQL features and how well it integrates with 3rd party libraries.

To run an example, simply go to the subdirectory (e.g. cd ./simple-usage), and then start the server (npx ts-node ./index.ts).

Each subdirectory contains a examples.graphql file with predefined GraphQL queries/mutations/subscriptions that you can use in Apollo Studio (http://localhost:4000) and play with them by modifying their shape and data.

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 we need to provide the environment variable DATABASE_URL with connection parameters to your local database
** Note that we need to provide the environment variable REDIS_URL with connection parameters to your local Redis instance