Skip to content

Commit

Permalink
Reflect correct resolver type in test fixture
Browse files Browse the repository at this point in the history
Reviewed By: voideanvalue

Differential Revision: D46164291

fbshipit-source-id: 87c47b340d78a543abad5406c168050f914ab83b
  • Loading branch information
captbaritone authored and facebook-github-bot committed May 25, 2023
1 parent 43be585 commit 2732238
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,18 @@ type ClientTypeWithNestedInterface {
}

extend type User {
pop_star_name: ClientInterface! @relay_resolver(fragment_name: "PopStarNameResolverFragment_name", import_path: "PopStarNameResolver", has_output_type: true)
pop_star_game: ClientTypeWithNestedInterface! @relay_resolver(fragment_name: "PopStarNameResolverFragment_name", import_path: "PopStarNameResolver", has_output_type: true)
pop_star_name: ClientInterface
@relay_resolver(
fragment_name: "PopStarNameResolverFragment_name"
import_path: "PopStarNameResolver"
has_output_type: true
)
pop_star_game: ClientTypeWithNestedInterface
@relay_resolver(
fragment_name: "PopStarNameResolverFragment_name"
import_path: "PopStarNameResolver"
has_output_type: true
)
}
==================================== OUTPUT ===================================
export type User__pop_star_game$normalization$variables = {||};
Expand Down Expand Up @@ -77,7 +87,7 @@ import userPopStarNameResolverType from "PopStarNameResolver";
) => ?User__pop_star_name$normalization);
declare export opaque type Foo_user$fragmentType: FragmentType;
export type Foo_user$data = {|
+poppy: {|
+poppy: ?{|
+name: ?string,
|},
+$fragmentType: Foo_user$fragmentType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ type ClientTypeWithNestedInterface {
}

extend type User {
pop_star_name: ClientInterface! @relay_resolver(fragment_name: "PopStarNameResolverFragment_name", import_path: "PopStarNameResolver", has_output_type: true)
pop_star_game: ClientTypeWithNestedInterface! @relay_resolver(fragment_name: "PopStarNameResolverFragment_name", import_path: "PopStarNameResolver", has_output_type: true)
pop_star_name: ClientInterface
@relay_resolver(
fragment_name: "PopStarNameResolverFragment_name"
import_path: "PopStarNameResolver"
has_output_type: true
)
pop_star_game: ClientTypeWithNestedInterface
@relay_resolver(
fragment_name: "PopStarNameResolverFragment_name"
import_path: "PopStarNameResolver"
has_output_type: true
)
}

0 comments on commit 2732238

Please sign in to comment.