File tree Expand file tree Collapse file tree
docs/source/development-testing Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -636,9 +636,12 @@ const GET_ROCKET_INVENTORY: TypedDocumentNode<
636636` ;
637637
638638function MyComponent() {
639- const { data } = useQuery (GET_ROCKET_INVENTORY );
639+ const { data } = useQuery (GET_ROCKET_INVENTORY , {
640+ // ^? GetRocketInventoryQuery | undefined;
641+ variables: { year: 2025 },
642+ });
640643
641- // `data` is properly typed!
644+ // ...
642645}
643646```
644647
@@ -717,8 +720,11 @@ import { useQuery } from "@apollo/client/react";
717720import { getRocketInventoryQuery } from " ./my-component.generated" ;
718721
719722function MyComponent() {
720- const { data } = useQuery (getRocketInventoryQuery );
723+ const { data } = useQuery (getRocketInventoryQuery , {
724+ // ^? GetRocketInventoryQuery | undefined;
725+ variables: { year: 2025 },
726+ });
721727
722- // `data` is properly typed!
728+ // ...
723729}
724730```
You can’t perform that action at this time.
0 commit comments