Skip to content

Latest commit

 

History

History

sample

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.