Skip to content

mohanRepo/lacinia-clojure-graphql-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lacinia-stock-example

service:
cd lacinia-stock-example
lein repl

***should host the api in localhost:8888

client:
cd ws-client
lein repl

***would subscribe and listen to the pub/sub events from service

Sample requests :

subscription {watchStock(ric: "IBM") {ric price }

}

queries:

{ getAllStockQuotes { ric price } }

{ BulkStockDetails(rics: ["IBM", "GOOG"]) { ric company { ric boardMembers description name } } }

mutation { AddNewStock(stock: {ric: "XYZ" price: "123USD"}) { ric company{boardMembers} } }