Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions compiler/crates/relay-typegen/src/visit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2324,10 +2324,7 @@ pub(crate) fn raw_response_visit_selections(
runtime_imports,
custom_scalars,
enclosing_linked_field_concrete_type,
inline_fragment
.directives
.named(*THROW_ON_FIELD_ERROR_DIRECTIVE)
.is_some(),
emit_semantic_types,
),
Selection::LinkedField(linked_field) => {
// Note: We intentionally use the semantic field type here
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ export type MyQuery$data = {|
|};
export type MyQuery$rawResponse = {|
+opera?: ?{|
+cast: ?$ReadOnlyArray<?{|
+character: ?string,
+singer: ?{|
+cast: $ReadOnlyArray<{|
+character: string,
+singer: {|
+id: string,
+name: ?string,
|},
|}>,
+composer: ?{|
+composer: {|
+id: string,
+name: ?string,
|},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ export type MyQuery$data = {
export type MyQuery$rawResponse = {
readonly opera?: {
readonly cast: ReadonlyArray<{
readonly character: string | null | undefined;
readonly character: string;
readonly singer: {
readonly id: string;
readonly name: string | null | undefined;
} | null | undefined;
} | null | undefined> | null | undefined;
};
}>;
readonly composer: {
readonly id: string;
readonly name: string | null | undefined;
} | null | undefined;
};
} | null | undefined;
};
export type MyQuery = {
Expand Down
Loading