~netlandish/gobwebs-graphql

cb0738b34957f9d6ee092ef76856bc1f99a4b0f1 — Peter Sanchez 4 months ago d529621
Working around updated gqlclient error wrapping changes
1 files changed, 4 insertions(+), 0 deletions(-)

M client.go
M client.go => client.go +4 -0
@@ 41,6 41,10 @@ func Execute(ctx context.Context, op *gqlclient.Operation, result interface{}) e

	client = gqlclient.New(origin, httpClient)
	err := client.Execute(ctx, op, &result)
	if graphErrors, ok := err.(interface{ Unwrap() []error }); ok {
		errs := graphErrors.Unwrap()
		err = errs[0]
	}
	return err
}