ddebrunner commented on issue #5679:
URL: https://github.com/apache/jmeter/issues/5679#issuecomment-3443615983

   Hit this issue as well, but used `__javaScript` to escape the executable 
document, also did this once, rather than per-request:
   
   ```
             <elementProp name="document" elementType="Argument">
               <stringProp name="Argument.name">document</stringProp>
               <stringProp 
name="Argument.value">${__javaScript(JSON.stringify(`${__FileToString(op.graphql)}`).slice(1\,-1))}</stringProp>
               <stringProp name="Argument.metadata">=</stringProp>
             </elementProp>
   ```
   
   `op.graphql` contains the executable document.
   
   and then in the GraphQL sampler:
   
   ```
   <stringProp name="GraphQLHTTPSampler.query">${document}</stringProp>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to