firecamp icon indicating copy to clipboard operation
firecamp copied to clipboard

[Feature Request] GraphQL Variable Request can be Json Formatted

Open HuyNVuong opened this issue 5 years ago • 4 comments

I wanted to have options to be able to provide a Json formatted request body for graphql queries and mutations. These are somewhat similar to graphql playground like this

We should also have options to generate query place holder when checking for query parameter

image

HuyNVuong avatar Dec 09 '20 19:12 HuyNVuong

Welcome to the Firecamp! Thanks and congrats for opening your very first issue in Firecamp. Join the Discord community here https://discord.gg/8hRaqhK Hope you have a great time here :)

welcome[bot] avatar Dec 09 '20 19:12 welcome[bot]

Thank you @HuyNVuong for raising the issue. We'll consider it in the next version of GraphQL Playground.

--

We should also have options to generate query place holder when checking for query parameter

also can you please share more thoughts on it?

Nishchit14 avatar Dec 10 '20 07:12 Nishchit14

Thank you @HuyNVuong for raising the issue. We'll consider it in the next version of GraphQL Playground.

--

We should also have options to generate query place holder when checking for query parameter

also can you please share more thoughts on it?

Currently, when selecting field parameter for a mutation or query by checking, the code is generated like this ✔️ bar

query {
  foo(bar: "") {
     ..details
  }
}

What I wanted: ✔️ bar

query ($bar: String) {
  foo(bar: $bar) {
    ..details
  }
}

HuyNVuong avatar Dec 11 '20 01:12 HuyNVuong

Awesome, thank you for explaining it @HuyNVuong , will consider it in the newly coming GraphQL playground in Firecamp. Stay tuned.

Nishchit14 avatar Dec 11 '20 04:12 Nishchit14