firecamp-io / firecamp

VSCode for APIs, Postman Alternative.
https://firecamp.dev
317 stars 22 forks source link

[Feature Request] GraphQL Variable Request can be Json Formatted #135

Open HuyNVuong opened 3 years ago

HuyNVuong commented 3 years ago

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

welcome[bot] commented 3 years ago

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 :)

Nishchit14 commented 3 years ago

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?

HuyNVuong commented 3 years ago

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
  }
}
Nishchit14 commented 3 years ago

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