You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dillon Redding edited this page Dec 31, 2023
·
3 revisions
When working with sub-entities, we often need a way to ensure we're dealing with an embedded entity and not an embedded link. The resolve function does just this.
import{resolve}from'@siren-js/client';constorderedItemsEntity=awaitresolve(embeddedOrderedItemsLink);awaitresolve<EmeddedCustomerProperties>(embeddedCustomerEntity);//=> returns embeddedCustomerEntity as is