Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 955 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 955 Bytes

Fullstack GraphQL workshop with Hasura

Deploy to Heroku

Environment variables:

HASURA_GRAPHQL_ADMIN_SECRET: secret

HASURA_GRAPHQL_JWT_SECRET: {"type": "HS256", "key": "myjwtsecretkey111111111111111111111111111111111"}

JWT Token

Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyLCJodHRwczovL2hhc3VyYS5pby9qd3QvY2xhaW1zIjp7IngtaGFzdXJhLWFsbG93ZWQtcm9sZXMiOlsidXNlciJdLCJ4LWhhc3VyYS1kZWZhdWx0LXJvbGUiOiJ1c2VyIiwieC1oYXN1cmEtdXNlci1pZCI6IjEifX0.GuJT4DlW4NCN0T8ffzvqFmDjLUUk1JBhHkamCfI81Tc

Actions

Definition

type Mutation {
  add_todo (
    title: String!
    is_public: Boolean!
    user_id: Int!
  ): AddTodoOutput
}

type AddTodoOutput {
  id : Int!
}

Hander: https://pointy-large-acapella.glitch.me/add_todo