iamcco / iamcco/coc-post

Does it support graphql - variables?

Open
#4 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
55
Forks
1
PR merge metrics
No merged PRs in 30d

Description

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

There is a [HTTP Plugin ](https://marketplace.visualstudio.com/items?itemName=humao.rest-client)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"
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.