GraphQLBundle icon indicating copy to clipboard operation
GraphQLBundle copied to clipboard

Restrict to send JSON request as string (object expected)

Open vladdnepr opened this issue 1 year ago • 0 comments

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Documented? no
Fixed tickets
License MIT

Return value of getParsedBody must be array. But passed string will cause TypeError

Example

fetch("ENDPOINT", {
  "headers": {
    "content-type": "application/json",
  },
  "body": "111",
  "method": "POST"
});

vladdnepr avatar Jul 04 '24 09:07 vladdnepr