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 5055c9c commit ee552b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion codegen/generated!.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@

func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
opCtx := graphql.GetOperationContext(ctx)
ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
{{- range $input := .Inputs -}}
{{ if not $input.HasUnmarshal }}
Expand Down
2 changes: 1 addition & 1 deletion codegen/root_.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (e *executableSchema) Complexity(typeName, field string, childComplexity in

func (e *executableSchema) Exec(ctx context.Context) graphql.ResponseHandler {
opCtx := graphql.GetOperationContext(ctx)
ec := executionContext{rc, e, 0, 0, make(chan graphql.DeferredResult)}
ec := executionContext{opCtx, e, 0, 0, make(chan graphql.DeferredResult)}
inputUnmarshalMap := graphql.BuildUnmarshalerMap(
{{- range $input := .Inputs -}}
{{ if not $input.HasUnmarshal }}
Expand Down

0 comments on commit ee552b6

Please sign in to comment.