gaetan
10/31/2023, 7:31 AMannsofi
10/31/2023, 7:49 AMgaetan
10/31/2023, 7:51 AMannsofi
10/31/2023, 7:53 AMwasyl
10/31/2023, 8:17 AMtype Bar { foo, bar, baz }
and in two queries you fetch bar { foo, bar }
. What would happen if Apollo generated common type and then you decided to also fetch baz
but only in one of those queries? Or no longer fetch foo
also in just one of those two queries?
And fragments are exactly the mechanism that indicates to Apollo that you're always fetching exactly the same fields, so generating a common type is possible. Because when you modify a fragment, it applies to all queries that use itbod
10/31/2023, 8:27 AMgaetan
10/31/2023, 8:28 AM