Skip to content

Commit

Permalink
replace all rc to opCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ichikawa committed Nov 1, 2024
1 parent 68aa330 commit 1db51ae
Show file tree
Hide file tree
Showing 47 changed files with 226 additions and 226 deletions.
14 changes: 7 additions & 7 deletions _examples/chat/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions _examples/config/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/dataloader/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/embedding/subdir/gendir/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/embedding/subdir/root_.generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/enum/api/exec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/federation/accounts/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/federation/products/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/federation/reviews/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions _examples/fileupload/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/scalars/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions _examples/selection/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions _examples/selection/selection.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type queryResolver struct{ *Resolver }
func (r *queryResolver) Events(ctx context.Context) ([]Event, error) {
var sels []string

reqCtx := graphql.GetOperationContext(ctx)
opCtx := graphql.GetOperationContext(ctx)
fieldSelections := graphql.GetFieldContext(ctx).Field.Selections
for _, sel := range fieldSelections {
switch sel := sel.(type) {
Expand All @@ -32,7 +32,7 @@ func (r *queryResolver) Events(ctx context.Context) ([]Event, error) {
case *ast.InlineFragment:
sels = append(sels, fmt.Sprintf("inline fragment on %s", sel.TypeCondition))
case *ast.FragmentSpread:
fragment := reqCtx.Doc.Fragments.ForName(sel.Name)
fragment := opCtx.Doc.Fragments.ForName(sel.Name)
sels = append(sels, fmt.Sprintf("named fragment %s on %s", sel.Name, fragment.TypeCondition))
}
}
Expand Down
10 changes: 5 additions & 5 deletions _examples/starwars/generated/exec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1db51ae

Please sign in to comment.