You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: gql.go
    path of file: ./repos/stash/pkg/plugin/js
    
    the code of the file until where you have to start completion: package js

import (
	"bytes"
	"context"
	"encoding/json"
	"fmt"
	"net/http"
	"strings"

	"github.com/rob
    
func AddGQLAPI(ctx context.Context, vm *otto.Otto, cookie *http.Cookie, gqlHandler http.Handler) error {
	gql, _ := vm.Object("({})")
	if err := gql.Set("Do", gqlRequestFunc(ctx, vm, cookie, gqlHandler)); err != nil {
		return fmt.Errorf("unable to set GraphQL Do function: %w", err)
	}

	if err := vm.Set("gql", gql); err != nil {
		return fmt.Errorf("unable to set gql: %w", err)
	}

	return nil
}