postmanlabs / postman-collection

Javascript module that allows a developer to work with Postman Collections

Home Page:https://www.postmanlabs.com/postman-collection/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphQL request body toString returns a string of length 0

ratpik opened this issue · comments

In Postman Mock service, while trying to compare request body whose content-type is set to application/json, the length of the stringified body is used to filter out potentially large sized JSON request body. The .toString works fine when the mode is raw but returns '' when the mode is graphql.

What would be the correct way to compute the string length (or size) of the request body for GraphQL?