Closed AleksanderBondar closed 5 months ago
Resolved by using generic
parameter for Chain
const chain = <T extends 'query' | 'mutation'>(option: T) =>
Chain(`${process.env.SHOP_HOST || 'http://localhost:3001'}/admin-api`, {
headers: {
'Content-type': 'application/json',
Authorization: `Bearer `,
// ...(channel ? { 'vendure-token': channel } : {}),
},
})(option, { scalars });
Possible solution on
Thunder
.