Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Java RestAssured: Using Json Variable

$
0
0

I am using Java Restassured with GraphQL. We have a Query and Variable.Our variable is slightly different as it is JSON format.

What is the syntax to utilize Variable JSON Format? My Variable is Not a Java class, but rather json. Should I just convert my Json into an Object, and send into query?

GraphQLQuery query = new GraphQLQuery();query.setVariables(variableInput);

Query:

mutation GetData(      $input: testPerson!)      {            personAccountInfo             {      

Variable:

{"input": {"person": {"name": "Joe","age": "50"    },"address": {"street": "Maple St","zipCode": "90210",  }}

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>