MCPcopy Create free account
hub / github.com/apollographql/fullstack-tutorial / merge

Function merge

final/client/src/cache.ts:19–31  ·  view source on GitHub ↗
(existing, incoming)

Source from the content-addressed store, hash-verified

17 launches: {
18 keyArgs: false,
19 merge(existing, incoming) {
20 let launches: Reference[] = [];
21 if (existing && existing.launches) {
22 launches = launches.concat(existing.launches);
23 }
24 if (incoming && incoming.launches) {
25 launches = launches.concat(incoming.launches);
26 }
27 return {
28 ...incoming,
29 launches,
30 };
31 }
32 }
33 }
34 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected