martinmasa / sick-fits-be

Wes Bos Advanced React Course - backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sick Fits - Back End

Working through Advanced React course by Wes Bos.

GraphQL + Prisma Notes

  • GraphQL - A specification (language agnostic)
  • Prisma - GraphQL ORM-like layer (with playground + CRUD API + GUI). Useful commands:
    • yarn global add prisma
    • prisma login
    • prisma init
    • prisma deploy
    • prisma deploy --env-file variables.env
  • GraphQL Yoga - Express GraphQL server
    • Used for querying, server side logic (auth, email, permissions etc etc)
    • src/db.js - connect to Prisma
    • src/createServer.js + src/schema.graphql (can’t be empty)
    • Start server in src/index.js
  • Files:
    • datamodel.graphql - prisma schema
    • prisma.graphql - generated by prisma from datamodel.graphql
    • schema.graphql - public facing API (types, queries & mutations)
    • resolvers/{Mutation, Query} - custom resolvers

About

Wes Bos Advanced React Course - backend


Languages

Language:JavaScript 100.0%