github.com/codykaup/genqlient@v0.6.2/generate/testdata/snapshots/TestGenerate-EmptyInterface.graphql-EmptyInterface.graphql.go (about)

     1  // Code generated by github.com/codykaup/genqlient, DO NOT EDIT.
     2  
     3  package test
     4  
     5  import (
     6  	"github.com/codykaup/genqlient/graphql"
     7  )
     8  
     9  // EmptyInterfaceResponse is returned by EmptyInterface on success.
    10  type EmptyInterfaceResponse struct {
    11  	GetJunk        interface{}                             `json:"getJunk"`
    12  	GetComplexJunk []map[string]*[]*map[string]interface{} `json:"getComplexJunk"`
    13  }
    14  
    15  // GetGetJunk returns EmptyInterfaceResponse.GetJunk, and is useful for accessing the field via an interface.
    16  func (v *EmptyInterfaceResponse) GetGetJunk() interface{} { return v.GetJunk }
    17  
    18  // GetGetComplexJunk returns EmptyInterfaceResponse.GetComplexJunk, and is useful for accessing the field via an interface.
    19  func (v *EmptyInterfaceResponse) GetGetComplexJunk() []map[string]*[]*map[string]interface{} {
    20  	return v.GetComplexJunk
    21  }
    22  
    23  // The query or mutation executed by EmptyInterface.
    24  const EmptyInterface_Operation = `
    25  query EmptyInterface {
    26  	getJunk
    27  	getComplexJunk
    28  }
    29  `
    30  
    31  func EmptyInterface(
    32  	client_ graphql.Client,
    33  ) (*EmptyInterfaceResponse, error) {
    34  	req_ := &graphql.Request{
    35  		OpName: "EmptyInterface",
    36  		Query:  EmptyInterface_Operation,
    37  	}
    38  	var err_ error
    39  
    40  	var data_ EmptyInterfaceResponse
    41  	resp_ := &graphql.Response{Data: &data_}
    42  
    43  	err_ = client_.MakeRequest(
    44  		nil,
    45  		req_,
    46  		resp_,
    47  	)
    48  
    49  	return &data_, err_
    50  }
    51