Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Nuxt で GraphQL のクエリを送信する方法

SAW
February 29, 2024

Nuxt で GraphQL のクエリを送信する方法

v-kansai Meetup #15 の発表資料です。

SAW

February 29, 2024
Tweet

More Decks by SAW

Other Decks in Programming

Transcript

  1. /VYU(SBQI2-$MJFOUͷجຊతͳ࢖͍ํ  (SBQI2-ͷΫΤϦΛهड़ ϑΝΠϧͷ֦ுࢠ͸.gql·ͨ͸.graphql  useAsyncGql()Λݺͼग़͠ ΫΤϦ͸operation͔Βࢦఆ 6 query getCountries

    { countries { code name } } const { data } = await useAsyncGql({ operation: 'getCountries', }); (SBQI2-ͷΫΤϦ໊Λ VTF"TZOD(RM ͷ PQFSBUJPOʹࢦఆ