Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
keithmattix committed Jan 7, 2020
1 parent 50ef84e commit 607cac1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ When using `UseFieldResolvers` schema option, a struct field will be used *only*

The method has up to two arguments:

- Optional `context.Context` argument.
- Optional `context.Context` argument. If the graphql query had nested subfields, then use the `SelctedFieldsFromContext(ctx context.Context)` getter method
- Mandatory `*struct { ... }` argument if the corresponding GraphQL field has arguments. The names of the struct fields have to be [exported](https://golang.org/ref/spec#Exported_identifiers) and have to match the names of the GraphQL arguments in a non-case-sensitive way.

The method has up to two results:
Expand Down
1 change: 0 additions & 1 deletion internal/exec/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ func selectionToSelectedFields(internalSelection []selected.Selection) []*select
Name: field.Name,
SelectedFields: nestedSelections,
})
fieldSelection = append(fieldSelection, nestedSelections...)
}
}
return fieldSelection
Expand Down

0 comments on commit 607cac1

Please sign in to comment.