coc-post icon indicating copy to clipboard operation
coc-post copied to clipboard

Does it support graphql - variables?

Open collegeimprovements opened this issue 5 years ago • 2 comments

Graphql query works well. How can we set variable in query or mutation components?

There is a HTTP Plugin for VS-Code which handles graphql along with query-variables. Is is possible or can be done with coc-post ?

POST https://api.github.com/graphql
Content-Type: application/json
Authorization: Bearer xxx
X-REQUEST-TYPE: GraphQL

query ($name: String!, $owner: String!) {
  repository(name: $name, owner: $owner) {
    name
    fullName: nameWithOwner
    description
    diskUsage
    forkCount
    stargazers(first: 5) {
        totalCount
        nodes {
            login
            name
        }
    }
    watchers {
        totalCount
    }
  }
}

# QUERY - VARIABLES
{
    "name": "vscode-restclient",
    "owner": "Huachao"
}

collegeimprovements avatar May 12 '20 06:05 collegeimprovements

Not support by now.

iamcco avatar May 12 '20 06:05 iamcco

Thanks for the reply @iamcco. Since it has enhancement label, I'm gonna leave this issue open. This could be a killer feature as more n more people are using graphql now.

collegeimprovements avatar May 20 '20 03:05 collegeimprovements