Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collection cannot understand {{key}} inside a JSON data file when running GraphQL request #981

Open
hungdao-testing opened this issue Feb 7, 2020 · 0 comments

Comments

@hungdao-testing
Copy link

Precondition

There is a JSON data file,
[ { "test" : "data1", "expData": {//} }, { "test" : "data2", "expData": {//} }, ]

In the GraphQL variables, I pass the key {{test}} but the result is failed. But in Pre-request script, I convert it into string and set into env variable, it okie

let testObj = pm.iterationData.get("test");
pm.environment.set("testObj", testObj)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant