Skip to content
No description, website, or topics provided.
Go
Branch: master
Clone or download
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.
README.md
main.go

README.md

Get Started with dfuse graphQL API over gRPC

This simple programme demonstrates how easy it is to query our graphQL API over gRPC.

  • It uses our go client to retrieve a JWT that will then be used to create the gRPC credential.
  • Create a gRPC connection.
  • Instantiate a graphQL client.
  • Write a simple graphQL query
  • Execute the query and wait for response

Before you begin

Get the source code

  • git clone https://github.com/dfuse-io/example-graphql-grpc.git
  • git clone https://github.com/dfuse-io/graphql-over-grpc.git

Generates the graphql.pb.go

  • protoc -I graphql-over-grpc graphql/graphql.proto --go_out=plugins=grpc:./example-graphql-grpc

Getting project dependencies

  • cd example-graphql-grpc
  • go mod init main
  • go mod tidy

Run it!

Useful links

You can’t perform that action at this time.