Skip to content

Commit

Permalink
fix property name as type or input
Browse files Browse the repository at this point in the history
  • Loading branch information
mununki committed Oct 9, 2023
1 parent b1d213b commit 29e7152
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (s *Schema) Parse(p *Parser) {
fd.Filename = p.lex.filename
fd.Line = p.lex.line
fd.Column = p.lex.col
name, comments := p.lex.consumeIdent()
name, comments := p.lex.consumeIdent(tokInput, tokType)
fd.Name = name.String()
fd.Descriptions = comments

Expand Down
14 changes: 14 additions & 0 deletions test/property_type/generated.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
schema {
query: Query
mutation: Mutation
subscription: Subscription
}

type SomePayload {
type: String!
someKey: String!
}




0 comments on commit 29e7152

Please sign in to comment.