Skip to content

Commit

Permalink
📸 - Update snapshots
Browse files Browse the repository at this point in the history
It seems these are just additional type information
  • Loading branch information
Roland Peelen committed Jan 19, 2024
1 parent 0438b2b commit dd21527
Show file tree
Hide file tree
Showing 64 changed files with 532 additions and 264 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ function back to the original JSON compatible data */
{argNamedQuery: argNamedQuery};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
inp => {query: (a => a)((inp: t_variables).query)};
let serializeVariables: t_variables => Raw.t_variables = (
inp => {query: (a => a)((inp: t_variables).query)}:
t_variables => Raw.t_variables
);
let makeVariables = (~query, ()): t_variables => {query: query};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down Expand Up @@ -120,8 +122,10 @@ function back to the original JSON compatible data */
{argNamedQuery: argNamedQuery};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
inp => {query: (a => a)((inp: t_variables).query)};
let serializeVariables: t_variables => Raw.t_variables = (
inp => {query: (a => a)((inp: t_variables).query)}:
t_variables => Raw.t_variables
);
let makeVariables = (~query, ()): t_variables => {query: query};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down Expand Up @@ -175,8 +179,10 @@ function back to the original JSON compatible data */
{argNamedQuery: argNamedQuery};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
inp => {query: (a => a)((inp: t_variables).query)};
let serializeVariables: t_variables => Raw.t_variables = (
inp => {query: (a => a)((inp: t_variables).query)}:
t_variables => Raw.t_variables
);
let makeVariables = (~query, ()): t_variables => {query: query};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down
18 changes: 12 additions & 6 deletions snapshot_tests/operations/expected/apollo/generate/comment.re.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,17 @@ function back to the original JSON compatible data */
{nonrecursiveInput: nonrecursiveInput};
}: Raw.t
);
let rec serializeVariables: t_variables => Raw.t_variables =
let rec serializeVariables: t_variables => Raw.t_variables = (
inp => {
arg:
(a => serializeInputObjectNonrecursiveInput(a))(
(inp: t_variables).arg,
),
}
}:
t_variables => Raw.t_variables
)
and serializeInputObjectNonrecursiveInput:
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput =
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput = (
inp => {
nonNullableField:
(a => a)((inp: t_variables_NonrecursiveInput).nonNullableField),
Expand Down Expand Up @@ -233,9 +235,11 @@ function back to the original JSON compatible data */
)(
(inp: t_variables_NonrecursiveInput).custom,
),
}
}:
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput
)
and serializeInputObjectEmbeddedInput:
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput =
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput = (
inp => {
field:
(
Expand All @@ -247,7 +251,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables_EmbeddedInput).field,
),
};
}:
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput
);
let makeVariables = (~arg, ()): t_variables => {arg: arg}
and makeInputObjectNonrecursiveInput =
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function back to the original JSON compatible data */
{customScalarField: customScalarField};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
opt:
(
Expand All @@ -146,7 +146,9 @@ function back to the original JSON compatible data */
(inp: t_variables).opt,
),
req: (a => a)((inp: t_variables).req),
};
}:
t_variables => Raw.t_variables
);
let makeVariables = (~opt=?, ~req, ()): t_variables => {opt, req};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function back to the original JSON compatible data */
{enumInput: enumInput};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
arg:
(
Expand All @@ -78,7 +78,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables).arg,
),
};
}:
t_variables => Raw.t_variables
);
let makeVariables = (~arg, ()): t_variables => {arg: arg};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ function back to the original JSON compatible data */
{l1, l2, l3, l4, l5};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
arg1:
(
Expand All @@ -897,7 +897,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables).arg1,
),
};
}:
t_variables => Raw.t_variables
);
let makeVariables = (~arg1=?, ()): t_variables => {arg1: arg1};
let makeDefaultVariables = () => makeVariables();
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function back to the original JSON compatible data */
{hasuraRepro: hasuraRepro};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
blockNumber:
(
Expand All @@ -182,7 +182,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables).type_,
),
};
}:
t_variables => Raw.t_variables
);
let makeVariables = (~blockNumber=?, ~type_=?, ()): t_variables => {
blockNumber,
type_,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function back to the original JSON compatible data */
{listsInput: listsInput};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
nullableOfNullable:
(
Expand Down Expand Up @@ -156,7 +156,9 @@ function back to the original JSON compatible data */
(a => Js.Array2.map(a, b => (a => a)(b)))(
(inp: t_variables).nonNullableOfNonNullable,
),
};
}:
t_variables => Raw.t_variables
);
let makeVariables =
(
~nullableOfNullable=?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,14 @@ function back to the original JSON compatible data */
{listsInput: listsInput};
}: Raw.t
);
let rec serializeVariables: t_variables => Raw.t_variables =
let rec serializeVariables: t_variables => Raw.t_variables = (
inp => {
arg: (a => serializeInputObjectListsInput(a))((inp: t_variables).arg),
}
}:
t_variables => Raw.t_variables
)
and serializeInputObjectListsInput:
t_variables_ListsInput => Raw.t_variables_ListsInput =
t_variables_ListsInput => Raw.t_variables_ListsInput = (
inp => {
nullableOfNullable:
(
Expand Down Expand Up @@ -168,7 +170,9 @@ function back to the original JSON compatible data */
(a => Js.Array2.map(a, b => (a => a)(b)))(
(inp: t_variables_ListsInput).nonNullableOfNonNullable,
),
};
}:
t_variables_ListsInput => Raw.t_variables_ListsInput
);
let makeVariables = (~arg, ()): t_variables => {arg: arg}
and makeInputObjectListsInput =
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ function back to the original JSON compatible data */
{optionalInputArgs: optionalInputArgs};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
inp => {required: (a => a)((inp: t_variables).required)};
let serializeVariables: t_variables => Raw.t_variables = (
inp => {required: (a => a)((inp: t_variables).required)}:
t_variables => Raw.t_variables
);
let makeVariables = (~required, ()): t_variables => {required: required};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ function back to the original JSON compatible data */
{optionalInputArgs: optionalInputArgs};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
inp => {required: (a => a)((inp: t_variables).required)};
let serializeVariables: t_variables => Raw.t_variables = (
inp => {required: (a => a)((inp: t_variables).required)}:
t_variables => Raw.t_variables
);
let makeVariables = (~required, ()): t_variables => {required: required};
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
external toJson: Raw.t => Js.Json.t = "%identity";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,17 @@ function back to the original JSON compatible data */
{nonrecursiveInput: nonrecursiveInput};
}: Raw.t
);
let rec serializeVariables: t_variables => Raw.t_variables =
let rec serializeVariables: t_variables => Raw.t_variables = (
inp => {
arg:
(a => serializeInputObjectNonrecursiveInput(a))(
(inp: t_variables).arg,
),
}
}:
t_variables => Raw.t_variables
)
and serializeInputObjectNonrecursiveInput:
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput =
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput = (
inp => {
nonNullableField:
(a => a)((inp: t_variables_NonrecursiveInput).nonNullableField),
Expand Down Expand Up @@ -233,9 +235,11 @@ function back to the original JSON compatible data */
)(
(inp: t_variables_NonrecursiveInput).custom,
),
}
}:
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput
)
and serializeInputObjectEmbeddedInput:
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput =
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput = (
inp => {
field:
(
Expand All @@ -247,7 +251,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables_EmbeddedInput).field,
),
};
}:
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput
);
let makeVariables = (~arg, ()): t_variables => {arg: arg}
and makeInputObjectNonrecursiveInput =
(
Expand Down Expand Up @@ -415,7 +421,7 @@ function back to the original JSON compatible data */
{scalarsInput, more};
}: Raw.t
);
let rec serializeVariables: t_variables => Raw.t_variables =
let rec serializeVariables: t_variables => Raw.t_variables = (
inp => {
arg:
(a => serializeInputObjectNonrecursiveInput(a))(
Expand All @@ -425,9 +431,11 @@ function back to the original JSON compatible data */
(a => serializeInputObjectNonrecursiveInput(a))(
(inp: t_variables).arg2,
),
}
}:
t_variables => Raw.t_variables
)
and serializeInputObjectNonrecursiveInput:
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput =
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput = (
inp => {
nonNullableField:
(a => a)((inp: t_variables_NonrecursiveInput).nonNullableField),
Expand Down Expand Up @@ -532,9 +540,11 @@ function back to the original JSON compatible data */
)(
(inp: t_variables_NonrecursiveInput).custom,
),
}
}:
t_variables_NonrecursiveInput => Raw.t_variables_NonrecursiveInput
)
and serializeInputObjectEmbeddedInput:
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput =
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput = (
inp => {
field:
(
Expand All @@ -546,7 +556,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables_EmbeddedInput).field,
),
};
}:
t_variables_EmbeddedInput => Raw.t_variables_EmbeddedInput
);
let makeVariables = (~arg, ~arg2, ()): t_variables => {arg, arg2}
and makeInputObjectNonrecursiveInput =
(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function back to the original JSON compatible data */
{pokemon: pokemon};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
id:
(
Expand All @@ -164,7 +164,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables).name,
),
};
}:
t_variables => Raw.t_variables
);
let makeVariables = (~id=?, ~name=?, ()): t_variables => {id, name};
let makeDefaultVariables = () => makeVariables();
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
Expand Down Expand Up @@ -297,7 +299,7 @@ function back to the original JSON compatible data */
{pokemon: pokemon};
}: Raw.t
);
let serializeVariables: t_variables => Raw.t_variables =
let serializeVariables: t_variables => Raw.t_variables = (
inp => {
id:
(
Expand All @@ -319,7 +321,9 @@ function back to the original JSON compatible data */
)(
(inp: t_variables).name,
),
};
}:
t_variables => Raw.t_variables
);
let makeVariables = (~id=?, ~name=?, ()): t_variables => {id, name};
let makeDefaultVariables = () => makeVariables();
external unsafe_fromJson: Js.Json.t => Raw.t = "%identity";
Expand Down
Loading

0 comments on commit dd21527

Please sign in to comment.