(url string)
| 1176 | } |
| 1177 | |
| 1178 | func (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 | |
| 1187 | func (params *GraphQLParams) createApplicationGQLPost(url string) (*http.Request, error) { |
| 1188 | return params.buildPostRequest(url, []byte(params.Query), "application/graphql") |