Skip to content

Commit

Permalink
Fix naming in new resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
captbaritone committed Sep 19, 2024
1 parent 94c8f0b commit cb2773b
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

'use strict';

import type {UserRequiredNameResolver$key} from './__generated__/UserRequiredNameResolver.graphql';
import type {UserRequiredThrowNameResolver$key} from './__generated__/UserRequiredThrowNameResolver.graphql';

const invariant = require('invariant');
const {graphql} = require('relay-runtime');
Expand All @@ -27,7 +27,9 @@ const requiredThrowNameCalls: {count: number} = {count: 0};
* @RelayResolver User.required_throw_name: String
* @rootFragment UserRequiredThrowNameResolver
*/
function required_name(rootKey: UserRequiredNameResolver$key): string {
function required_throw_name(
rootKey: UserRequiredThrowNameResolver$key,
): string {
const user = readFragment(
graphql`
fragment UserRequiredThrowNameResolver on User {
Expand All @@ -45,6 +47,6 @@ function required_name(rootKey: UserRequiredNameResolver$key): string {
}

module.exports = {
required_name,
required_throw_name,
requiredThrowNameCalls,
};

0 comments on commit cb2773b

Please sign in to comment.