diff --git a/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.expected b/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.expected index f8fe3a10d05ed..ecf652835730d 100644 --- a/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.expected +++ b/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.expected @@ -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 = {||}; @@ -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, diff --git a/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.graphql b/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.graphql index ee85e6e6155fc..d6716859b05da 100644 --- a/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.graphql +++ b/compiler/crates/relay-typegen/tests/generate_flow/fixtures/relay-resolver-with-output-type-client-interface.graphql @@ -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 + ) }