Skip to content

Commit

Permalink
chores: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjanrak committed Nov 24, 2021
1 parent 103711b commit acbe64e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,23 @@ go get github.com/ranjanrak/clickhouse-graphql-go
```

## Usage
```
```go
import (
clickhousegraphqlgo "github.com/ranjanrak/clickhouse-graphql-go"
)

// Create new graphql instance
client := clickhousegraphqlgo.New()

// Dump tick websocket data to clickhouse
// Pass list of instrument token for subscription to websocket feeds
clickhousegraphqlgo.ClickhouseDump([]uint32{779521, 256265, 1893123, 13209858})
client.ClickhouseDump([]uint32{779521, 256265, 1893123, 13209858})

// Run graphql server on clickhouse
clickhousegraphqlgo.GraphqlServer()
client.GraphqlServer()

// Run graphql server to fetch GraphQL List
clickhousegraphqlgo.GraphqlServerList()
client.GraphqlServerList()

```
#### GraphQL query
Expand Down

0 comments on commit acbe64e

Please sign in to comment.