Skip to content

Commit

Permalink
Update docs codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Jan 21, 2024
1 parent ee1df7a commit 66d4551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion website/docs/03-resolvers/snippets/04-renaming-field.out
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function getSchema(): GraphQLSchema {
name: "greeting",
type: GraphQLString,
resolve(source, args, context, info) {
return typeof source.getGreeting === "function" ? source.getGreeting(source, args, context, info) : source.getGreeting;
return source.getGreeting(source, args, context, info);
}
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function getSchema(): GraphQLSchema {
name: "name",
type: GraphQLString,
resolve(source, args, context, info) {
return typeof source.graphQLName === "function" ? source.graphQLName(source, args, context, info) : source.graphQLName;
return source.graphQLName(source, args, context, info);
}
}
};
Expand Down

0 comments on commit 66d4551

Please sign in to comment.