Skip to content

Commit

Permalink
Update dev tests
Browse files Browse the repository at this point in the history
  • Loading branch information
eddeee888 committed Dec 16, 2024
1 parent c3a9410 commit 9d1df52
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions dev-test/test-schema/resolvers-federation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
info: GraphQLResolveInfo
) => TResult | Promise<TResult>;

/** Mapping of federation types */
export type FederationTypes = {
User: User;
};

/** Mapping between all available schema types and the resolvers types */
export type ResolversTypes = {
Address: ResolverTypeWrapper<Address>;
Expand Down Expand Up @@ -190,24 +195,25 @@ export type QueryResolvers<

export type UserResolvers<
ContextType = any,
ParentType extends ResolversParentTypes['User'] = ResolversParentTypes['User']
ParentType extends ResolversParentTypes['User'] = ResolversParentTypes['User'],
FederationType extends FederationTypes['User'] = FederationTypes['User']
> = {
__resolveReference?: ReferenceResolver<
Maybe<ResolversTypes['User']>,
{ __typename: 'User' } & (
| GraphQLRecursivePick<ParentType, { id: true }>
| GraphQLRecursivePick<ParentType, { name: true }>
| GraphQLRecursivePick<FederationType, { id: true }>
| GraphQLRecursivePick<FederationType, { name: true }>
),
ContextType
>;

email?: Resolver<
ResolversTypes['String'],
{ __typename: 'User' } & (
| GraphQLRecursivePick<ParentType, { id: true }>
| GraphQLRecursivePick<ParentType, { name: true }>
| GraphQLRecursivePick<FederationType, { id: true }>
| GraphQLRecursivePick<FederationType, { name: true }>
) &
GraphQLRecursivePick<ParentType, { address: { city: true; lines: { line2: true } } }>,
GraphQLRecursivePick<FederationType, { address: { city: true; lines: { line2: true } } }>,
ContextType
>;

Expand Down

0 comments on commit 9d1df52

Please sign in to comment.