import apollo from "../../../lib/apollo.js"; async function GetDetailProduct(id, token = "") { var res = await apollo.query( ` query($input: ID!){ products(where:{id:$input}) { name price description img{ url } overview specification film stock } } `, token, { "input": id } ); return res; } async function GetProductSuzuki(token = "") { var res = await apollo.query( ` query { products(where: { business_partner: "2" }) { id name price img { url } } }`, token ); return res; } module.exports = { GetProductSuzuki: GetProductSuzuki, GetDetailProduct:GetDetailProduct, };