From 0d92b249ea2349e732c85bd0822c4c4f5985213c Mon Sep 17 00:00:00 2001 From: Kamil Kisiela Date: Tue, 22 Oct 2024 14:34:54 +0200 Subject: [PATCH] Update src/test-suites/null-keys/b.subgraph.ts --- src/test-suites/null-keys/b.subgraph.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test-suites/null-keys/b.subgraph.ts b/src/test-suites/null-keys/b.subgraph.ts index 00ef450..8bda525 100644 --- a/src/test-suites/null-keys/b.subgraph.ts +++ b/src/test-suites/null-keys/b.subgraph.ts @@ -26,7 +26,8 @@ export default createSubgraph("b", { book = books.find((book) => book.upc === reference.upc); } if (book != null) { - // Return this null on purpose + // `a` has `Book` entities with upc: `b1, b2, b3`, but `b` has `Book` entities with only `b1` and `b2`. + // `b3` is not available and this subgraph is the only possible step to get to the other subgraph (need of `id` field) to resolve the author. if (book.id === '3') { return null; }