You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
370 B

  1. import apollo from "../../lib/apollo.js";
  2. async function GetProduct(token="") {
  3. var res = await apollo.query(
  4. `
  5. query{
  6. products
  7. {
  8. name
  9. description
  10. img{
  11. id
  12. }
  13. }
  14. } `,
  15. token
  16. );
  17. return res;
  18. }
  19. module.exports = {
  20. GetProduct: GetProduct,
  21. };