Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
1-hello
2-subscription
3-realtime
4-entities
5-cluster upgrade all samples Dec 26, 2018
6-errors upgrade all samples Dec 26, 2018
7-spa
README.md

README.md

GraphQL-IO Samples

These are small examples for GraphQL-IO. For a more realistic usage, check out the the Units and Persons (UnP) sample application.

  • 1-hello:
    The simplest possible Client/Server based Hello World. This showcases the minimalistic API.

  • 2-subscription:
    One server, two clients: one client updates a counter, the other client is subscribed onto the counter. This showcases the query subscription.

  • 3-realtime:
    One server, one client, two sliders. Pressing LEFT or RIGHT on the console changes the left slider. The client then updates the slider on the server and receives the new value back and updates the right slider. This showcases the realtime performance.

  • 4-entities:
    One server, one client (either in Node.js or in Browser). The client updates some entities. This showcases the usage in Node.js and the browser.

  • 5-cluster:
    This shows clustering.

  • 6-errors:
    This shows error handling.

  • 7-spa:
    A small HTML5 Single-Page-Application (SPA). This especially showcases the use in the browser.