Skip to content

Commit

Permalink
Set operationName explicitly
Browse files Browse the repository at this point in the history
Some downstream servers do not infer the operation and so cannot do any
checks on the operationName.
  • Loading branch information
Lucian Jones committed Apr 20, 2022
1 parent 1fe4a6d commit 078418e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions introspection.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func NewService(serviceURL string) *Service {
// Update queries the service's schema, name and version and updates its status.
func (s *Service) Update() (bool, error) {
req := NewRequest("query brambleServicePoll { service { name, version, schema} }")
req.OperationName = "brambleServicePoll"
response := struct {
Service struct {
Name string `json:"name"`
Expand Down

0 comments on commit 078418e

Please sign in to comment.