Skip to content

Syntax error in typeDefs #2151

Open
Open
@Mangatt

Description

@Mangatt

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions