graphql/graphiql

Syntax error in typeDefs

Open

#2,151 opened on 2022年1月23日

GitHub で見る
 (4 comments) (1 reaction) (0 assignees)TypeScript (15,473 stars) (1,785 forks)batch import
bughas-duplicateshelp wantedlsp-server

説明

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

コントリビューターガイド