Skip to content

Example code to show typescript code-generation of Graphql queries and mutation with Apollo and the Github API

Notifications You must be signed in to change notification settings

daugsbi/apollo-typescript-example-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This project was created to show the interactions between typescript and graphql(apollo) via generated types of the client scripts. It uses the Github API v4 (https://developer.github.com/v4/) to request the data via GraphQL. To create a token go to https://github.com/settings/tokens. Please make sure not to publish the access token.

Installation

  • clone this repository
  • npm/yarn install
  • Replace TOKEN_HERE with your github token in config.ts and apollo.config.js
  • npm/yarn install -g apollo
  • (optional) install apollo vscode extension with "ext install apollographql.vscode-apollo"
  • npm/yarn run gen (for type generation)
  • npm start

What it does

  • It lists some issues from a defined repository.
  • It lets you add a comment to the issue 1 in this repository.
  • It lists comments from the issue 1 in this repository.

About

Example code to show typescript code-generation of Graphql queries and mutation with Apollo and the Github API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published