AnWeber / vscode-httpyac

Quickly and easily send REST, Soap, GraphQL, GRPC, MQTT and WebSocket requests directly within Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=anweber.vscode-httpyac
MIT License
237 stars 20 forks source link

support GraphQL request syntax of IntelliJ IDEA HTTP client #165

Closed cxcatir closed 1 year ago

cxcatir commented 1 year ago

Hi, is it possible that httpYac can also support the GraphQL request syntax of Intellij Idea HTTP client and be compatible for development?

IntelliJ IDEA HTTP client:

use GraphQL keyword

GRAPHQL https://api.spacex.land/graphql

query launchesQuery($limit: Int!){
  launchesPast(limit: $limit) {
    mission_name
    launch_date_local
  }
}

{
    "limit": 10
}

Thanks a lot :bow:

AnWeber commented 1 year ago

I overlooked the difference. I will take a look, if I find a documentation and update my implementation.

https://www.jetbrains.com/help/idea/http-client-in-product-code-editor.html#graphql

AnWeber commented 1 year ago

With the next release GRAPHQL Method will be autmatically replaced with POST Method

cxcatir commented 1 year ago

I'm looking forward to the next release, thanks!

AnWeber commented 1 year ago

@cxcatir I haven't closed all differences to Intellij Http Client yet, but wanted to release the changes that are important to you. With v5.10.0 it is now available. It still lacks support for streaming responses and multiple requests, but I'm already working on that.

cxcatir commented 1 year ago

Thanks for the quick release! :partying_face: