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

iOS × GraphQLの嬉しみとツラミ / Pros and cons of iOS an...

mogaming
September 01, 2018

iOS × GraphQLの嬉しみとツラミ / Pros and cons of iOS and GraphQL

iOSDC2018の発表資料です。誤っていた部分を修正して再UPしました。

mogaming

September 01, 2018
Tweet

More Decks by mogaming

Other Decks in Technology

Transcript

  1.   "QPMMPJ04Λ࢖͏Լ४උ schema.json of Github GraphQL ͢΂ͯͷܕ2VFSZ.VUBUJPOT ৘ใ͕ॻ͔Ε͍ͯΔ findUser.gql

    (SBQIJ2-Ͱॻ͍ͨ 2VFSZΛϑΝΠϧͱͯ͠༻ҙ Apollo CLI Swift Code (FOFSBUF$PEF
  2. w ⭕ΫϥΠΞϯτຖʹ"1*࡞ΓΘ͚ͳͯ͘ྑָͯ͘ w ❌ը૾౳ͷϑΝΠϧΛσϑΥϧτͰ͸ѻ͑ͳ͍  ϑΝΠϧΛѻ͏Օॴ͚ͩ͸3&45GVMʹͯ͠ରॲ͍ͯ͠Δ  ʢϥΠϒϥϦΛೖΕΕ͹ѻ͑ͳ͘͸ͳ͍ʣ w ❌/

    ໰୊͕ൃੜ͠΍ͯ͘͢େม w ❌ΤϯυϙΠϯτ͕୯ҰʢBQJHSBQIRMʣͷͨΊ$BDIF೉͍͠  ͍··Ͱͷ஌ݟ͕͋·Γ࢖͑ͳ͍   αʔόʔαΠυࢹ఺Ͱ͸
  3.   #BDLFOET'PS'SPOUFOET Payment Image/Movie Notification Core Domain (SBQI2- BFF

    iOS App ฐαʔϏε͸.JDSPTFSWJDFTߏ੒ 3&45GVM 3&45GVM 3&45GVM ͦ΋ͦ΋3&45GVM"1*΋ୟ͔ͳ͍ͱ͍͚ͳ͍͜ͱ͕͋Δ
  4.   GraphQL API BFF iOS App ᶄ (SBQI2-ͷ .VUBUJPOʹ

    Ϛοϐϯά ᶆ “errors”: [{ “statusCode”: 400 }] ᶇ FSSPSTpSTUTUBUVT$PEFΛ )5514UBUVT$PEFͱ͢Δ ᶈ )5514UBUVT$PEF ͰϋϯυϦϯά ᶃ 63-4FTTJPO౳Ͱ 1045BQJDSFBUF/PWFM #''Λ༻͍ͨࠇຐज़ ᶅ Mutation createNovel()
  5. w BQPMMPΛOQNJOTUBMM  OQNJHBQPMMP w BQPMMPΛ࢖ͬͯ(JUIVC(SBQI2-"1*ͷTDIFNBΛऔಘ  BQPMMPTDIFNBEPXOMPBEFOEQPJOUIUUQTBQJHJUIVCDPNHSBQIRIFBEFS"VUIPSJ[BUJPO#FBSFSUPLFO TDIFNBKTPO w

    (SBQIJ2-Ͱॻ͍ͨRVFSZʹ໊લ͚ͭͯHRMϑΝΠϧͱͯ͠อଘ w TDIFNBͱHRM͔ΒBQPMMPΛ࢖ͬͯίʔυੜ੒  BQPMMPDPEFHFOHFOFSBUFRVFSJFTpOE6TFSHRMTDIFNBTDIFNBKTPO"1*TXJGU   "QPMMPJ04Λ࢖͏Լ४උʢৄࡉʣ