Skip to content

resolveLiveBundles

resolveLiveBundles(metafield, now?): LiveBundle[]

Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/product/bundles.d.ts:186

THE shared read-path pipeline: the bundles metafield’s metaobject references → parse (tolerant) → date-window filter → member resolution (null ⇒ hide) → display pricing. Both the client widget (live fetch AND SSR adoption) and the server transform call this, so the two renderers can never disagree about which bundles are live or what they cost. The input is structural (nodes may carry non-Metaobject references - they’re skipped), so any query that embeds the BundleMetaobject fragment feeds it.

{ references?: { nodes: readonly unknown[]; } | null; } | null | undefined

Date

LiveBundle[]