MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / _prepareGraphQLRequest

Method _prepareGraphQLRequest

lib/helper/GraphQL.js:122–129  ·  view source on GitHub ↗

* Prepares request for axios call * * @param {object} operation * @param {object} headers * @return {object} graphQLRequest

(operation, headers)

Source from the content-addressed store, hash-verified

120 * @return {object} graphQLRequest
121 */
122 _prepareGraphQLRequest(operation, headers) {
123 return {
124 baseURL: this.options.endpoint,
125 method: 'POST',
126 data: operation,
127 headers,
128 }
129 }
130
131 /**
132 * Send query to GraphQL endpoint over http.

Callers 2

sendQueryMethod · 0.95
sendMutationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected