You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The attempt to parse schema with description tokens results in exception
Steps to reproduce
var schema = Schema.For(@"""Root type for all queries""
type Query {
""Documentation for the field""
name: String
}");
Expected result
Documentation should either be ignored or parsed into the corresponding fields
Actual result
Exception
GraphQLParser.Exceptions.GraphQLSyntaxErrorException: Syntax Error GraphQL (1:1) Unexpected String "Root type for all queries"
1: "Root type for all queries"
^
2: type Query {
at at GraphQLParser.ParserContext.ParseDefinition()
at at GraphQLParser.ParserContext.ParseDefinitionsIfNotEOF()
at at GraphQLParser.ParserContext.ParseDocument()
at at GraphQLParser.ParserContext.Parse()
at at GraphQLParser.Parser.Parse(ISource source)
at at GraphQL.Utilities.SchemaBuilder.Parse(String document)
at at GraphQL.Utilities.SchemaBuilder.Build(String typeDefinitions)
at at GraphQL.Types.Schema.For(String typeDefinitions, Action`1 configure)
Environment
.NET Core 3.1, graphql-dotnet 3.0.0-preview-1490
The text was updated successfully, but these errors were encountered:
Description
The attempt to parse schema with description tokens results in exception
Steps to reproduce
Expected result
Documentation should either be ignored or parsed into the corresponding fields
Actual result
Exception
Environment
.NET Core 3.1, graphql-dotnet 3.0.0-preview-1490
The text was updated successfully, but these errors were encountered: