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

GraphQLクライアントの技術選定 2023冬

KazukiHayase
November 17, 2023

GraphQLクライアントの技術選定 2023冬

KazukiHayase

November 17, 2023
Tweet

More Decks by KazukiHayase

Other Decks in Technology

Transcript

  1. • The Guild΋Fragment Colocationਪ͍ͯ͠Δ ◦ Unleash the power of Fragments

    with GraphQL Codegen • GraphQL Code Generatorͷclient preset ◦ Fragment Masking͕σϑΥϧτͰ༗ޮ ◦ Fragment ColocationΛڧ੍͞ΕΔ ΤίγεςϜͷํ޲ੑ
  2. GraphQLΫϥΠΞϯτͷൺֱ Relay Apollo Client urql graphql-request Fragment Colocation 🟢 🟡

    🟡 🟡 ܕͷࣗಈੜ੒ 🟢 🟢 🟢 🟢 Ωϟογϡػߏ 🟢 🟡 🟡 🔴 ֶशίετ 🔴 🟡 🟢 🟢
  3. • Apollo Client୯ମͰ͸೉͍͠ ◦ v3.8͔ΒuseFragment͕Stableʹͳ͕ͬͨɺॾʑͷػೳ͕଍Γͳ͍ҹ৅ • GraphQL Code GeneratorΛซ༻͢Δ͜ͱͰ࣮ݱՄೳ ◦

    client presetͷFragment MaskingʹΑΔσʔλ΁ͷΞΫηε੍ޚ ◦ ≒ RelayͷDataMasking 📍 Fragment Colocation - Apollo Client
  4. GraphQLΫϥΠΞϯτͷൺֱ Relay Apollo Client urql graphql-request Fragment Colocation 🟢 🟡

    🟡 🟡 ܕͷࣗಈੜ੒ 🟢 🟢 🟢 🟢 Ωϟογϡػߏ 🟢 🟡 🟡 🔴 ֶशίετ 🔴 🟡 🟢 🟢
  5. • Apollo ClientͰ࢖͍͍ͨػೳ͕ͳ͍ͳΒurql ◦ ࣮ݱ͍ͨ͜͠ͱʹରͯ͠Apollo Client͸Φʔόʔͳέʔε͕ଟ͍ ◦ େମͷϢʔεέʔε͸urqlΧόʔͰ͖Δ • Apollo

    Clientͷෳࡶ͞ނͷ໰୊΋͋Δ ◦ όʔδϣϯΞοϓʹ൐͏ΩϟογϡपΓσάϨ ◦ React΁ͷ௥ैͷ஗Ε Apollo Client ͱ urql