resolveBundleMembers
resolveBundleMembers(
entry,products):ResolvedBundleMember[] |null
Defined in: .pnpm/@[email protected]_graphql@[email protected]_typescript@6.0.3/node_modules/@storesynk/core/dist/product/bundles.d.ts:141
Match a bundle’s members (by productId) against the products resolved from
its metaobject’s member_products reference list. Returns null when ANY
member is missing - deleted/unpublished products drop out of references,
and an incomplete bundle must hide rather than advertise a merge that can’t
complete.
The default variant uses selectInitialVariant semantics (first available,
else first) - the same default the member card’s selection machinery picks -
so a member whose first variant is sold out still resolves purchasable, and a
fully sold-out member still resolves (available: false; the bundle renders
with a blocked add button rather than hiding).
Parameters
Section titled “Parameters”products
Section titled “products”readonly object[]
Returns
Section titled “Returns”ResolvedBundleMember[] | null