graphql / graphql/graphiql

Execute Query will not work without at least one *.graphql file (using only gql template literals)

Open
#2,353 1 comment 3 reactions 0 assignees View on GitHub
bug vscode-graphql
Dominant language
TypeScript
Stars
16.9k
Forks
1.9k
Avg merge
22h 45m
Merged PRs (30d)
70

Description

## Actual Behavior
Executing a Query from a gql template literal will not give any results unless a *.graphql file with a valid query exists somewhere in the `documents`
## Expected Behavior
Using only gql template literals will still allow Execute Query to work
## Steps to Reproduce the Problem Or Description
Create an empty project using only gql`` queries.
Query will not work.
Add the same query to a .graphql file somewhere in the project.
Now all queries including gql template queries work as expected.
## Specifications

- GraphQL for VSCode Extension Version: 15.5.0
- VSCode Version: 1.57.0-insiders
- OS Name: Windows 10 under wsl 2 ubuntu
- OS Version: 10

## Logs Of TS Server || GraphQL Language Service
No log produced

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.