graphql/graphiql

Syntax error in typeDefs

Open

#2 151 ouverte le 23 janv. 2022

Voir sur GitHub
 (4 commentaires) (1 réaction) (0 assignés)TypeScript (1 785 forks)batch import
bughas-duplicateshelp wantedlsp-server

Métriques du dépôt

Stars
 (15 473 stars)
Métriques de merge PR
 (Merge moyen 3j 23h) (50 PRs mergées en 30 j)

Description

Actual Behavior

Simple typeDefs.gql file throws Syntax Error: Expected Name, found "}".GraphQL: Syntax

type Test {
	id: ID!
}

type Query {
	test(id: ID!): Test
}

Expected Behavior

There should not be an error.

Steps to Reproduce the Problem Or Description

Create file with contents above.

Specifications

  • GraphQL for VSCode Extension Version: 0.3.41
  • VSCode Version: 1.63.2
  • OS Name: Win 10
  • OS Version: 21H2
  • graphql config filename and format example: .graphqlrc
{
  "schema": "http://localhost:4000/graphql",
  "documents": "packages/*/src/**/*.{graphql,gql,js,ts,jsx,tsx}",
  "extensions": {
  	"endpoints": {
  		"default": {
  			"url": "http://localhost:4000"
  		}
  	}
  }
}

Logs Of TS Server || GraphQL Language Service

Guide contributeur