Connection flattening utility
★ 0.0 (0 ratings)20 min0 engineers solved this
Your assignment
This is a utility library for building server-rendered storefront routes and components that read paginated GraphQL API data. GraphQL connections wrap lists as objects with an edges array, where each edge holds a node. The utilities folder contains small pure helpers that unwrap these connections, inject tracking into query data, and format values. Route handlers and components call these helpers on query results before passing the items to rendering code, so the helpers sit between the data layer and the UI. Each helper lives in its own folder with its own tests under a tests directory and is exported from the package entry point.
What the team is seeing
On some pages, a section that should show an empty list of items makes the whole page fail to load and show an error screen. Pages where the section has items load normally.
Acceptance checks 1
- Check 1
Discussion is locked — log in and complete this problem to join the discussion and rate your experience.
