From 078418eb055548c0b70f4c6fed1230642378737f Mon Sep 17 00:00:00 2001 From: Lucian Jones Date: Wed, 20 Apr 2022 12:30:50 +1200 Subject: [PATCH] Set operationName explicitly Some downstream servers do not infer the operation and so cannot do any checks on the operationName. --- introspection.go | 1 + 1 file changed, 1 insertion(+) diff --git a/introspection.go b/introspection.go index c41bbf53..3fc12305 100644 --- a/introspection.go +++ b/introspection.go @@ -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"`