Skip to content

Commit

Permalink
Remove statement from parser.Select
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Oct 19, 2022
1 parent c0707d0 commit 4b0084c
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions query/graphql/parser/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ type Select struct {
Filter *Filter

Fields []Selection

// Raw graphql statement
Statement *ast.Field
}

func (s Select) validate() []error {
Expand Down Expand Up @@ -261,10 +258,9 @@ func parseQueryOperationDefinition(def *ast.OperationDefinition) (*OperationDefi
// filters, limits, orders, etc..
func parseSelect(rootType parserTypes.SelectionType, field *ast.Field, index int) (*Select, error) {
slct := &Select{
Alias: getFieldAlias(field),
Name: field.Name.Value,
Root: rootType,
Statement: field,
Alias: getFieldAlias(field),
Name: field.Name.Value,
Root: rootType,
}

// parse arguments
Expand Down

0 comments on commit 4b0084c

Please sign in to comment.