Closed AleksanderBondar closed 4 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
.