Huge news!Announcing our $20M Series A led by Andreessen Horowitz.Learn more
Socket
Socket
Log inDemoInstall

github.com/wundergraph/graphql-go-tools/examples/chat

Package Overview
Dependencies
11
Maintainers
0
Issues
File Explorer

github.com/wundergraph/graphql-go-tools/examples/chat

    v0.0.0-20231130082843-b1b86255282e

Version published
Maintainers
0

Readme

Chat Demo

Getting started

  1. Install go modules & npm dependencies
go mod download
npm i
  1. Start server and start react client
chmod +x start-server.sh
./start-server.sh
npm run start

Example is forked from: gqlgen

Example(s)

mutation SendMessage {
  post(roomName: "#test", username: "me", text: "hello!") {
    ...MessageData
  }
}

query GetMessages {
  room(name:"#test") {
    name
    messages {
      ...MessageData
    }
  }
}

subscription LiveMessages {
  messageAdded(roomName: "#test") {
    ...MessageData
  }
}

fragment MessageData on Message{
  id
  text
  createdBy
  createdAt
}

FAQs

Last updated on 30 Nov 2023

Did you know?

Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install
SocketSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc