adriatic / graphql-practice

apollo, express, prisma, ...
0 stars 0 forks source link

graphql-node Tutorial #2

Open adriatic opened 4 years ago

adriatic commented 4 years ago

In this tutorial, you’ll learn how to build an idiomatic GraphQL server entirely from scratch. You are going to use the following technologies:


Section adding a database, command prisma deploy results with:

λ prisma deploy
? Set up a new Prisma server or deploy to an existing server? Demo server
? Choose the region of your demo server nikolaj-ivancic-fde3e6/demo-eu1
? Choose a name for your service hackernews-node
? Choose a name for your stage dev

Written endpoint `https://eu1.prisma.sh/nikolaj-ivancic-fde3e6/hackernews-node/dev` to prisma.yml

Creating stage dev for service hackernews-node √
Deploying service `hackernews-node` to stage `dev` to server `prisma-eu1` 1.1s

Changes:

  Link (Type)
  + Created type `Link`
  + Created field `id` of type `ID!`
  + Created field `createdAt` of type `DateTime!`
  + Created field `description` of type `String!`
  + Created field `url` of type `String!`

Applying changes 2.1s

Your Prisma GraphQL database endpoint is live:

  HTTP:  https://eu1.prisma.sh/nikolaj-ivancic-fde3e6/hackernews-node/dev
  WS:    wss://eu1.prisma.sh/nikolaj-ivancic-fde3e6/hackernews-node/dev

You can view & edit your data here:

  Prisma Admin: https://eu1.prisma.sh/nikolaj-ivancic-fde3e6/hackernews-node/dev/_admin

Additional reading

GraphQL Server Basics: GraphQL Schemas, TypeDefs & Resolvers Explained GraphQL Server Basics: Demystifying the info Argument in GraphQL Resolvers

adriatic commented 4 years ago

Logs

1 GraphQL Server Basics: GraphQL Schemas, TypeDefs & Resolvers Explained

1.1 graphql-js

1.2 graphql-tools

1.3 graphene