message-example

module
v0.0.0-...-7b6d726 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2020 License: Apache-2.0

README

Message Example

This project was made for job interview.

How to test

  1. Open http://localhost:3000/playground

  2. Paste:

mutation writeMessage {
writeMessage(
  input: {
    id: "1"
    text: "hello"
  }
){
  id
  text
  createdAt
}
}

query getMessages {
getMessages(
  input: {
    startDate: "2006-01-02T00:00:05Z"
    endDate: "2021-01-02T00:00:05Z"
  }
){
  id
  text
  createdAt
}
}
  1. On separate tab paste and launch:
subscription {
  newMessagesSubscription{
    id
    text
    createdAt
  }
}

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL