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

Method ExecuteAsPost

graphql/e2e/common/common.go:1096–1101  ·  view source on GitHub ↗

ExecuteAsPost builds a HTTP POST request from the GraphQL input structure and executes the request to url.

(t require.TestingT, url string)

Source from the content-addressed store, hash-verified

1094// ExecuteAsPost builds a HTTP POST request from the GraphQL input structure
1095// and executes the request to url.
1096func (params *GraphQLParams) ExecuteAsPost(t require.TestingT, url string) *GraphQLResponse {
1097 req, err := params.CreateGQLPost(url)
1098 require.NoError(t, err)
1099
1100 return params.Execute(t, req)
1101}
1102
1103// ExecuteAsPostApplicationGraphql builds an HTTP Post with type application/graphql
1104// Note, variables are not allowed

Callers 15

graphqlHelperFunction · 0.95
AddItemSchemaFunction · 0.95
TestAclCacheRestoreFunction · 0.95
clearAllFunction · 0.95
BenchmarkNestedQueryFunction · 0.95
BenchmarkOneLevelQueryFunction · 0.95
deleteMethod · 0.95
addMethod · 0.95
addMethod · 0.95
addMethod · 0.95
BenchmarkMutationFunction · 0.95
TestCustomGetQueryFunction · 0.95

Calls 2

CreateGQLPostMethod · 0.95
ExecuteMethod · 0.95

Tested by 15

graphqlHelperFunction · 0.76
TestAclCacheRestoreFunction · 0.76
clearAllFunction · 0.76
BenchmarkNestedQueryFunction · 0.76
BenchmarkOneLevelQueryFunction · 0.76
deleteMethod · 0.76
addMethod · 0.76
addMethod · 0.76
addMethod · 0.76
BenchmarkMutationFunction · 0.76
TestCustomGetQueryFunction · 0.76
TestCustomPostQueryFunction · 0.76