25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

24 lines
367 B

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