const shopify = libs.shopify.get();
const query = `{
order(id: "gid://shopify/Order/${orderID}") {
id
tags
lineItems (first: 100) {
edges {
node {
id
product {
id
tags
}
}
}
}
}
}`;
const { order } = await shopify.graphql(query);
// if you have added multiple shopify integration to the same app,
// you can access them like this:
const shopOne = libs.shopify.get('shopOne.myshopify.com');
const shopTwo = libs.shopify.get('shopTwo.myshopify.com');
...