graphql / graphql/graphiql

Hello World example/'vscode-graphql.contentProvider' failed

Open
#2,292 6 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

I'm probably doing something very basic wrong, as I'm just learning GraphQL.

In VS Code, I created a **`.gql` file** with the following contents:

```gql
POST https://api.github.com/graphql
Authorization: bearer ghp_my0token0here

query($owner:String!, $name:String!) {
repository(owner: $owner, name: $name) {
url, stargazerCount
}
}
```

Then I run **"Execute GraphQL Operations"** via the Command Palette and receive the following error:

> Running the contributed command: 'vscode-graphql.contentProvider' failed.

As said above, I'm probably doing something very basic wrong, but IMO this error message is not descriptive at all. Maybe you could give me a short hint what I am expected to do instead in order to test out my query from VS Code? :-)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.