New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTN-29032, create interface to graphql client #20
Conversation
c51926f
to
6e5411f
Compare
Run(ctx context.Context, req *Request, resp interface{}) error | ||
SetLogger(func(string)) | ||
} | ||
|
||
// Client is a client for interacting with a GraphQL API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment should be describing the interface on line 51
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, I didn't catch your comment prior to the merge. I would prefer deleting something as obvious as this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -48,25 +48,26 @@ import ( | |||
"github.com/pkg/errors" | |||
) | |||
|
|||
type Client interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change caused a problem in my repo where I was using a * to graphql.Client...!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same issue with edge-output-writer https://github.com/veritone/edge-output-writer/blob/master/api/graphql.go#L78 where I was using
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The clients of graphql need to be updated to use the new API.
VTN-29032
This is to allow us to use mocks in the Core API layer of Edge services.