Open hgiasac opened 1 year ago
Package | Line Rate | Health |
---|---|---|
github.com/hasura/go-graphql-client | 68% | ➖ |
github.com/hasura/go-graphql-client/ident | 100% | ✔ |
github.com/hasura/go-graphql-client/pkg/jsonutil | 86% | ✔ |
Summary | 73% (1539 / 2114) | ➖ |
Minimum allowed line rate is 60%
Introduce the
Builder
structure that wraps the naive[][2]interface{}
type. It helps construct multiple queries to a request that needs to be conditionally added.You might need to dynamically multiple queries or mutations in a single request. It isn't convenient with static structures.
Builder
helps us construct many queries flexibly.For example, to make the following GraphQL mutation:
You can define: