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

GraphQL勉強会 2017.6.7

GraphQL勉強会 2017.6.7

2017.6.7に開催した社内勉強会で使用した発表資料です。

Nobutaka OSHIRO

June 07, 2017
Tweet

More Decks by Nobutaka OSHIRO

Other Decks in Technology

Transcript

  1. GraphQLͷσϝϦοτ • αʔόʔαΠυͷ࣮૷͕େม • RFCʹैͬͯҰ͔ΒGraphQLϨΠϠʔͷαʔόʔϓϩάϥϜΛࣗ࡞͢Δͷ͸༰қͰ͸ͳ͍ • ϓϩδΣΫτͰ࢖༻͢Δ৔߹͸ɺ͢Ͱʹز͔ͭαʔυύʔςΟ੡ͷ࣮૷͕͋ΔͷͰɺͦΕ Λ࢖༻͢Δͷ͕Α͍ • 1ճͷϦΫΤετͰͷίʔυྔ͸૿Ճ͢Δ

    • ΫϥΠΞϯτଆͰɺԿͷσʔλ͕ඞཁͳͷΛʮ͢΂ͯʯ໌ࣔ͢Δඞཁ͕͋Δ • จݙ͕গͳ͍ • ӳޠͷυΩϡϝϯτ͕΄΅ • ύϑΥʔϚϯε࠷దԽͷϕετϓϥΫςΟε͕ͳ͍ • ϦΫΤετͷܗ͕ຖճมΘΔՄೳੑ͕͋ΔͷͰΩϟογϡ͕(REST APIʹൺ΂ͯ)೉͍͠
  2. GraphQLΛͨΊ͢ʹ͸ • GitHub GraphQL API • https://developer.github.com/v4/ • SWAPI GraphQL

    • http://graphql.org/swapi-graphql/ • Idobata GraphQL API • https://idobata.io/ja/api
  3. GraphQLཧղͷϙΠϯτ • ͢΂ͯͷϦΫΤετ͸POSTʹͳΔ • ʮΫΤϦʔ(Query)ʯͱʮϛϡʔςʔγϣϯ(Mutation)ʯͷ2छྨ͕͋Δ • CQRS( Command Query Responsibility

    Segregation ίϚϯυΫΤϦ ʔ੹຿෼཭) • ΫΤϦʔ͸෭࡞༻Λى͜͞ͳ͍΋ͷ • ϛϡʔςʔγϣϯ͸෭࡞༻Λى͜͢΋ͷ • GraphQLͷϨεϙϯεεϐʔυ͸ΫΤϦʔͷதͰղܾ͕Ұ൪஗͍΋ͷʹ ҾͬுΒΕΔ
  4. ࢀߟจݙ • GraphQLެࣜαΠτ - http://graphql.org/ • GraphQL RFC (Working Draft)

    - http:// facebook.github.io/graphql/ • Apollo - https://www.apollodata.com/ • GraphQL San Francisco (San Francisco, CA) | Meetup - https://www.meetup.com/ja-JP/GraphQL-SF/ • GitHub GraphQL API - https://developer.github.com/v4/