MCPcopy
hub / github.com/dgraph-io/dgraph / CreateGQLPost

Method CreateGQLPost

graphql/e2e/common/common.go:1178–1185  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

1176}
1177
1178func (params *GraphQLParams) CreateGQLPost(url string) (*http.Request, error) {
1179 body, err := json.Marshal(params)
1180 if err != nil {
1181 return nil, err
1182 }
1183
1184 return params.buildPostRequest(url, body, "application/json")
1185}
1186
1187func (params *GraphQLParams) createApplicationGQLPost(url string) (*http.Request, error) {
1188 return params.buildPostRequest(url, []byte(params.Query), "application/graphql")

Callers 9

touchedUidsHeaderFunction · 0.95
cacheControlHeaderFunction · 0.95
gzipCompressionHeaderFunction · 0.95
gzipCompressionNoHeaderFunction · 0.95
ExecuteAsPostMethod · 0.95
hasCurrentGraphQLSchemaFunction · 0.95
addSchemaFunction · 0.95
testCORSFunction · 0.95
testCORSFunction · 0.95

Calls 1

buildPostRequestMethod · 0.95

Tested by 2

testCORSFunction · 0.76
testCORSFunction · 0.76