Skip to content

LeTanque/graphql-apollo-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-apollo-practice

Link to tutorial

graphql cheat sheet

Part 6 in my deep dive series on graphql, apollo, and prisma.


Notes

We recommend that teams practice Schema First Development and agree upon the schema first before any API development begins.

A scalar type is a primitive type like ID, String, Boolean, or Int. You can define custom scalars, like Date.


Apollo tutorial

File structure

The app is split out into two folders:

  • start: Starting point for the tutorial
  • final: Final version

From within the start and final directories, there are two folders (one for server and one for client).

Installation

To run the app, run these commands in two separate terminal windows from the root:

cd final/server && npm i && npm start

and

cd final/client && npm i && npm start