Skip to content

Commit

Permalink
update for more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemurray committed Mar 17, 2024
1 parent 9b4ffe3 commit 77e328f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dotnet-gqlgen/GraphQLSchema.g4
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ scalarDef : comment* SCALAR ws+ typeName=idKeyword ws+;
inputDef : comment* INPUT ws+ typeName=idKeyword ws* '{' ws* inputFields ws* comment* ws* '}' ws*;
enumDef : comment* ENUM ws+ typeName=idKeyword ws* '{' (ws* enumItem ws* comment* ws*)+ '}' ws*;
directiveTarget: 'FIELD' | 'FRAGMENT_SPREAD' | 'INLINE_FRAGMENT';
directiveDef: 'directive' ws+ '@' name=idKeyword ('(' args=arguments ')')? ws+ 'on' ws+ (directiveTarget (ws+ '|' ws+ directiveTarget)*) ws*;
directiveDef: comment* 'directive' ws+ '@' name=idKeyword ('(' args=arguments ')')? ws+ 'on' ws+ (directiveTarget (ws+ '|' ws+ directiveTarget)*) ws*;
inputFields : fieldDef (ws* '=' ws* constant)? (ws* ',')? (ws* fieldDef (ws* '=' ws* constant)? (ws* ',')?)* ws*;
objectDef : '{' ws* fieldDef (ws* ',')? (ws* fieldDef (ws* ',')?)* ws* comment* ws* '}' ws*;
Expand Down
2 changes: 1 addition & 1 deletion src/dotnet-gqlgen/dotnet-gqlgen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>dotnet_gqlgen</RootNamespace>
<PreserveCompilationContext>true</PreserveCompilationContext>
<PackageVersion>0.6.4</PackageVersion>
<PackageVersion>0.6.5</PackageVersion>
</PropertyGroup>

<PropertyGroup>
Expand Down
6 changes: 5 additions & 1 deletion src/tests/DotNetGraphQLQueryGen.Tests/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ schema {
mutation: Mutation
}

""" comment """
scalar Date

enum Sex {
Expand Down Expand Up @@ -126,4 +127,7 @@ type Mutation {
addActor2(firstName: String, lastName: String, movieId: Int): Person
# Not required for now
#removePerson(id: Int!): Int
}
}

"""comments"""
directive @include(if: Boolean!) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT

0 comments on commit 77e328f

Please sign in to comment.