Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 621 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 621 Bytes

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} } }