<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Hankpkj on Medium]]></title>
        <description><![CDATA[Stories by Hankpkj on Medium]]></description>
        <link>https://medium.com/@hankpkj?source=rss-db26efc130b6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*g7BH-8Y_BhW6OxoVcKmV6w.jpeg</url>
            <title>Stories by Hankpkj on Medium</title>
            <link>https://medium.com/@hankpkj?source=rss-db26efc130b6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:10:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hankpkj/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[좌충우돌 React-Native App 도전기 3]]></title>
            <link>https://medium.com/@hankpkj/%EC%A2%8C%EC%B6%A9%EC%9A%B0%EB%8F%8C-react-native-app-%EB%8F%84%EC%A0%84%EA%B8%B0-3-f7026b3bd3d2?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7026b3bd3d2</guid>
            <category><![CDATA[reactnative-app]]></category>
            <category><![CDATA[aws-cognito]]></category>
            <category><![CDATA[리액트네이티브]]></category>
            <category><![CDATA[aws-amplify]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Mon, 23 May 2022 19:02:17 GMT</pubDate>
            <atom:updated>2022-05-23T19:02:57.621Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zzx45KPo03YZ-3nn" /><figcaption>Photo by <a href="https://unsplash.com/@craftedbygc?utm_source=medium&amp;utm_medium=referral">Green Chameleon</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>오늘은 AWS Cognito + Amplify로 로그인 서비스를 구현해보도록 하겠습니다.</p><p>앱에서 회원관리만 할 수 있어도 반은 먹고들어가기 때문에 최우선적으로 해보겠습니다.</p><p>준비물: AWS 계정</p><ol><li>사용자 풀 생성하기 <br>로그인한 다음 <a href="https://ap-northeast-2.console.aws.amazon.com/cognito/home?region=ap-northeast-2">Cognito</a> 메인화면으로 이동 후</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*X8ue2YbRrrROJRwBRxZ9HA.png" /></figure><p>‘Manage User Pools’ 클릭</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iFRxEpHna9lVKGWUTMSV-A.png" /></figure><p>우측 상단에 ‘Create a user pool’ 클릭</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-tQgYc-TcOeWoKQ8EPYuA.png" /></figure><p>‘Name’ 탭에서 Pool name 입력 후 ‘Review defaults’ 클릭 ‘Step through settings’를 클릭해도 상관없습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*86fSZ_lS74K1zgMIcsSGhg.png" /></figure><p>‘Attributes’ 탭에서 ‘Username’ 에 원하는 옵션을 선택 <br>(저는 email만 추가해 주었습니다.)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WHKTnUbjGKH7tOQSOW7zNA.png" /></figure><p>‘App clients’ 탭에서 ‘Add an app client’ 클릭</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uxf8GgghWMdegfQtTu-kCA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*5TRqaANhcqwmku1LfI-2qw.png" /></figure><p>‘App client name’ 입력 ‘Generate client secret’ 체크박스 해제 후 하단에 ‘Create app client 클릭’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u0e1luUz8ls4xhCyqyCIjw.png" /></figure><p>‘Review’ 탭에서 ‘Create poll’ 클릭 후 풀 생성</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TFKKErs-id5MTlPSx_VIBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G63qZF7hp-2sUTtkJQIRpg.png" /></figure><p>위 사진의 ‘Pool Id’와 ‘App clients’탭의 ‘App client id’는 좀 있을 연동에 필요하니 메모장에 적어주거나 다시와서 확인해야한다.</p><p>이제 드디어 코드로 돌아가볼 시간 입니다.</p><pre>$ npm install aws-amplify <br>$ npm install aws-amplify-react-native</pre><p>aws-amplify 및 aws-amplify-react-native 라이브러리를 설치해줍니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/979a5ec4b001f31bfa3ffb455af7869a/href">https://medium.com/media/979a5ec4b001f31bfa3ffb455af7869a/href</a></iframe><p>잘 동작하는지 확인하려 간단한 페이지를 만들었습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2OLwF5JzSbeNPu-ZVOcvpg.png" /></figure><p>짠! 커스터마이징을 해야하지만 우선 떴으니 만족합니다. 회원가입을 진행해 볼까요?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RFRGfkVLQq5PsAXPVemVIw.png" /></figure><p>SIGN UP!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*VpTiYVi4uKKXmgLyTN7i0Q.png" /></figure><p>메일로 잘 왔습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uisW8WhehQfevLiklzXdng.png" /></figure><p>Confirm!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ru1HfUULcP_CG5UdIAkqtA.png" /></figure><p>유저에 잘 들어왔네요 굿굿!</p><p>로그인 해보겠습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B60Ru9yVALLmolwEiyA-5Q.png" /></figure><p>SignIn!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*22w_eiEGP0m-i-bzevgFIQ.png" /></figure><p>잘 로그인 되었네요!</p><p>커스터마이징과 백엔드 연동을 해야하는 단계가 남았지만 추후에 하는 것으로 하고(회원가입 로그인 되는걸 확인했으니…) 다음 장에서는 DB 스키마 설계에 대해 다뤄보겠습니다! 감사합니다</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7026b3bd3d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[좌충우돌 React-Native App 도전기 2]]></title>
            <link>https://medium.com/@hankpkj/%EC%A2%8C%EC%B6%A9%EC%9A%B0%EB%8F%8C-react-native-app-%EB%8F%84%EC%A0%84%EA%B8%B0-2-1d248ab20fc1?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d248ab20fc1</guid>
            <category><![CDATA[리액트네이티브]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Mon, 23 May 2022 00:12:20 GMT</pubDate>
            <atom:updated>2022-05-23T00:12:20.367Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MFrJs3EH3NKq75uC" /><figcaption>Photo by <a href="https://unsplash.com/@goumbik?utm_source=medium&amp;utm_medium=referral">Lukas Blazek</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>가벼운 마음으로 공식문서의 Guide-Introduction 파트를 시작해 보았습니다.<br>(출처: <a href="https://reactnative.dev/docs/getting-started">https://reactnative.dev/docs/getting-started</a>)</p><p><strong>Function Components</strong> vs <strong>Class Components</strong></p><p>잘 정리되어 있는 글이 있어서 꼭 한번 씩 읽어보시면 좋겠습니다.<br><a href="https://www.twilio.com/blog/react-choose-functional-components">https://www.twilio.com/blog/react-choose-functional-components</a></p><p>저는 함수형 프로그래밍을 선호하기도 하고 더 익숙한 Function Components 스타일로 코드를 작성하겠습니다.</p><p><strong>View</strong></p><p>Android 및 iOS 개발에서 View는 UI의 기본 빌딩 블록입니다. 텍스트, 이미지를 표시하거나 사용자 입력에 응답하는 데 사용할 수 있는 화면의 작은 직사각형 요소입니다. 한 줄의 텍스트나 버튼과 같은 앱의 가장 작은 시각적 요소도 일종의 View입니다. 일부 보기 유형에는 다른 보기가 포함될 수 있습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTMhLK4NWeYLuSMZlm8kQQ.png" /><figcaption>출처: <a href="https://reactnative.dev/docs/intro-react-native-components">https://reactnative.dev/docs/intro-react-native-components</a></figcaption></figure><p>Pouncival 이라는 탭을 기준으로 보았을 때, Android에서는 ViewGroup 안에 ImageView, TextView와 같은 컴포넌트를 가지고 있고, iOS에서는 UIView UIImageView, UITextView에 대응하는 것을 볼 수 있습니다. 대체적으로 비슷합니다. 같은 개념과 역할들을 RN가 한꺼풀 더 감싸놓은 것이고, 각 OS에서 실행될 때 실제로 해당 클레스나 컴포넌트로 대응이 되어 실행이 될 것 같습니다.</p><p>Android 개발에서는 Kotlin 또는 Java로 View를 작성합니다. iOS 개발에서는 Swift 또는 Objective-C를 사용합니다. React Native를 사용하면 React 컴포넌트를 사용하여 JavaScript로 이러한 View를 호출할 수 있습니다. 런타임 시 React Native는 해당 구성 요소에 해당하는 Android 및 iOS View를 생성합니다. React Native 컴포넌트는 Android 및 iOS와 동일한 View로 지원되기 때문에 React Native 앱은 다른 앱과 같은 모양, 느낌 및 성능을 제공합니다.</p><p>React Native는 바로 앱 빌드를 시작하는 데 사용할 수 있는 필수 기본 컴포넌트 세트와 함께 제공됩니다. 이것은 React Native의 Core Component입니다.</p><p><strong>Core Component</strong></p><p>코어 컴포넌트는 아래 표와 같은 것들이 있고, 더 많은 사항은 <a href="https://reactnative.dev/docs/components-and-apis">별도의 문서</a>를 확인해주세요.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-4W-fzYJ1Amwx_r--Q08g.png" /></figure><p>각 컴럼들이 각 OS에 대응하는 컴포넌트 입니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lihW3o4BfciRrN3QjLXK2A.png" /></figure><p>RN의 컴포넌트는 많은 부분 React에 있는 것을 그대로 가져와 쓸 수 있기 때문에, React 컴포넌트에 대한 사전지식이 있으면 편하다고 하네요. <br>저는 사전 지식이 조금 있는 관계로 <a href="https://reactnative.dev/docs/intro-react">해당 섹션</a>은 건너 뛰도록 하겠습니다.</p><p>회원가입 (with AWS Cognito)</p><p>코그니토 세팅부터 해서 이번장에 포스팅하려 했는데, 내용이 너무 긴 관계로 다음장으로 넘기도록 하겠습니다.</p><p>순서는</p><ol><li>회원가입</li><li>DB 스키마 설계</li><li>graphql 연동(relay)</li><li>데이터 주고 받기</li><li>나머지 이것저것</li></ol><p>순으로 진행 될 것 같습니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d248ab20fc1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[좌충우돌 React-Native App 도전기 1]]></title>
            <link>https://medium.com/@hankpkj/%EC%A2%8C%EC%B6%A9%EC%9A%B0%EB%8F%8C-react-native-app-%EB%8F%84%EC%A0%84%EA%B8%B0-1-7efbeb8212d7?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/7efbeb8212d7</guid>
            <category><![CDATA[react-native-tutorial]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[리액트네이티브]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Sun, 22 May 2022 09:24:21 GMT</pubDate>
            <atom:updated>2022-05-22T09:24:21.956Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HjUJpovv6uOGct3Z" /><figcaption>Photo by <a href="https://unsplash.com/@sapegin?utm_source=medium&amp;utm_medium=referral">Artem Sapegin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>어느날 와이프가 사주어플을 사용하는데 안드로이드폰에서는 제대로 동작하지만 아이폰에서는 동작하지 않는다는 한탄을 듣고, 웹개발자인 나는 뭣도 모르고 ‘그럼 내가 하나 만들어 줄게!(stay…)’라는 말을 뱉으며 앱개발에 착수하게 된다.</p><p>처음인지라 철저하게 공식문서를 기반으로 만들기 시작하였습니다. <br>(출처: <a href="https://reactnative.dev/">https://reactnative.dev/</a>)</p><p><strong><em>환경 세팅</em></strong></p><p>개발자들에겐 가장 힘든 코스라 할 수 있는 환경 세팅 부분입니다. ‘이게 왜 되지 왜 안될까’라는 생각은 잠시 접어두고 무지성(?)으로 튜토리얼을 따라했습니다.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q0gJmYgfiX6i6tmAgju9Tw.png" /></figure><p><strong>Expo CLI</strong> vs <strong>React Native CLI</strong></p><p>쌩초보라면 expo로 좀 다뤄봤다라면 RN로 선택하라길래 고민도 없이 Expo로 설치했습니다. 추후에 바뀔수도 있지만 이 글은 Expo를 베이스로 앱개발에 들어갑니다~</p><pre>$ node -v<br>// Node가 12버전 이상으로 설치 되어 있어야합니다.</pre><pre>$ npm install -g expo-cli<br>// expo 설치, 저는 global로 무엇을 설치하는 것을 병적으로 꺼려하기에 -g 를 지우고 진행 하였습니다</pre><p>expo init 하기</p><pre>$ expo init {프로젝트 이름}<br>// 저는 3번 템플릿을 사용했습니다. (typescript + 맛보기 tab이 있는 템플릿)</pre><p>설치가 완료되었으면 실행해 봅시다.</p><pre>$ cd {프로젝트 이름}<br>$ npm start </pre><p>그리고 w를 눌러서 웹뷰를 확인해 보면~</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nb2nIm-hkNFcWXSacuZnyw.png" /></figure><p>짜잔! (후욱후욱) 첫 발을 내 디뎠습니다!! 짝짝짝</p><p>그리고 아이폰 화면 확인을 하기위해 ‘w’키를 눌렀습니다.<br>(아.. XCode 설치.. 사용하지는 않지만 설치는 꼭 해주셔야합니다. 무려 12Gb!)</p><p>우여곡절 끝에 설치하고 나서 돌려보았습니다.(안녕 내 핫스팟 데이터..)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*Z0dRqSnpkWmal7P3.png" /></figure><p>네 저는 아이폰8을 공짜로 얻었습니다</p><p>이제 본격적인 개발을 시작해 볼까요?</p><p>공식문서의 Guide — Introduction 부터 시작하겠습니다.</p><p>다음장에서 계속…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7efbeb8212d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[그래프큐엘 Apollo vs Relay (3/3)]]></title>
            <link>https://medium.com/@hankpkj/%EA%B7%B8%EB%9E%98%ED%94%84%ED%81%90%EC%97%98-apollo-vs-relay-3-3-da707e2dbe?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/da707e2dbe</guid>
            <category><![CDATA[graphql-mutations]]></category>
            <category><![CDATA[그래프큐엘]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[apollo-vs-relay]]></category>
            <category><![CDATA[graphql-subscriptions]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Sat, 14 May 2022 08:50:49 GMT</pubDate>
            <atom:updated>2022-05-14T08:50:49.998Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jPN5H7JXj1JXdgW-" /><figcaption>Photo by <a href="https://unsplash.com/@s_tsuchiya?utm_source=medium&amp;utm_medium=referral">S. Tsuchiya</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>저번 장에서는 릴레이와 아폴로 Query의 차이점에 대해 알아 보았습니다. 이번 장에서는 Mutation과 Subscription에 대해 알아보겠습니다.</p><h4>Mutation</h4><p>Mutation 은 GraphQL 백엔드에서 데이터를 생성, 수정 또는 삭제할 수 있는 모든 GraphQL 클라이언트의 핵심 기능입니다.</p><p>릴레이와 아폴로 모두에서 뮤테이션을 호출하는 것은 GraphQL 변수가 주입되는 뮤테이션 문자열로 수행되지만 두 클라이언트는 완전히 다른 방식으로 뮤테이션과 함께 캐시 일관성(consistency)을 처리합니다. 릴레이의 뮤테이션은 매우 강력하며 로컬 저장소가 항상 서버와 일관된 상태를 유지하도록 보장합니다(필자가 릴레이를 사용하는 이유 중 하나). 반면에 아폴로를 사용하면 캐시 일관성을 유지하려면 더 많은 수동 작업이 필요하며 잠재적으로 개발자가 실수를 저지를 수 있어 클라이언트 측에서 불일치로 이어질 수 있습니다.</p><p>이제 릴레이 및 아폴로를 사용하여 다음 GraphQL 뮤테이션을 보내는 방법을 알아보겠습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e71a753d6d98c8ab302935516966bd0/href">https://medium.com/media/7e71a753d6d98c8ab302935516966bd0/href</a></iframe><h4><strong><em>Relay에서의 Mutation</em></strong></h4><p>릴레이의 뮤테이션은 매우 장황하고 복잡하지만 이 복잡성은 많은 이점을 제공하고 개발자의 작업을 절약합니다. 뮤테이션을 생성할 때, 우리 앱에서 뮤테이션 데이터가 사용되는 모든 위치가 올바르게 업데이트되도록 Relay가 배후에서 사용하는 <em>특정 정보 </em>를 제공해야 합니다.</p><p>또한 Relay에서 로컬 저장소의 상태를 변경하는 <strong>유일한 방법</strong>은 뮤테이션을 통한 것이며 저장소의 데이터를 업데이트하는 방법에 수동으로 영향을 줄 수 있는 방법이 없다는 점도 중요합니다. 뮤테이션이 전송된 후 개발자는 낙관적인 UI 업데이트가 어떻게 보일지 지정할 수 있지만 실제로 로컬 저장소에서 끝나는 모든 변경 사항은 서버에서 확인해야 합니다! 서버와의 상호 작용이 실패하면 위에서 낙관적으로 지정한 UI 업데이트가 롤백됩니다.</p><p>일반적으로 뮤테이션은 Relay.Mutation 클래스의 하위 클래스로 정의해야 합니다. 해당 클래스의 인스턴스가 생성된 후 Relay 개체에는 실제로 해당 뮤테이션을 서버로 보내는 데 사용할 수 있는 두 가지 메서드가 있습니다.</p><ol><li>commitUpdate(mutation) 즉시 뮤테이션을 보냅니다.</li><li>applyUpdate(mutation)는 commit()을 호출하여 나중에 보낼 수 있는 트랜잭션을 반환합니다.</li></ol><p>Relay.Mutation을 subclassing 할 때 다음 메서드를 구현해야 합니다.</p><ul><li>getMutation(): 뮤테이션의 이름을 지정합니다(GraphQL 스키마에서).</li><li>getFatQuery(): 뮤테이션 직후에 변경될 수 있는 데이터 그래프의 모든 node, edge 및 connection을 지정합니다.</li><li>getConfigs(): 이 뮤테이션으로 정확히 어떤 일이 발생하는지 Relay에 알립니다. RANGE_ADD 구성에는 parentName, parentID(Fragment에서 viewer가 필요한 이유!), connectionName 및 edgeName이 필요합니다. <br>또한 rangeBehaviors 목록이 필요하지만 일반적으로 &#39;&#39; : ‘append’로 충분합니다. <a href="https://relay.dev/docs/v10.1.3/mutations/">Relay 설명서</a>에는 각 구성에 필요한 인수(args)가 나열되어 있습니다.</li><li>getVariables(): 이 뮤테이션에 필요한 변수를 지정합니다.</li><li>getOptimisticResponse()(선택 사항): 쿼리 응답에 대한 optimistic한 데이터를 지정합니다. 쿼리 및 viewer에 지정된 데이터만 반환할 수 있습니다.</li></ul><p>또한 정적인 Fragment를 제공해야 합니다.</p><ul><li>Fragment: 이미 데이터 그래프의 일부인 이 뮤테이션에 필요한 데이터를 지정합니다. 이는 Relay.Container에서 데이터 요구 사항을 지정하는 것과 유사합니다. 우리의 경우 포켓몬 node를 allPokemons connection에 추가할 수 있도록 viewer id가 필요합니다(getConfigs 참조).</li></ul><p>뮤테이션 subclass는 아래와 같습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/939a8662b703cd113d6393dd17bc9b97/href">https://medium.com/media/939a8662b703cd113d6393dd17bc9b97/href</a></iframe><p>이 뮤테이션에서 우리는 먼저 뮤테이션을 실행한 다음 클라이언트 측 저장소를 업데이트할 때 Relay가 createPokemonMutation에 대해 알아야 할 사항을 설명합니다.<br>(데이터 일관성을 유지하기 위해)</p><p>그런 다음 위에서 언급한 commitUpdate() 메서드를 사용하여 실제로 뮤테이션을 서버에 보낼 수 있습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a13f430dfa6ea5da77e81bd9f3840a0f/href">https://medium.com/media/a13f430dfa6ea5da77e81bd9f3840a0f/href</a></iframe><p>자세한 내용은 <a href="https://relay.dev/docs/v10.1.3/mutations/">공식 뮤테이션 문서</a>를 참조해주세요.</p><h4><strong><em>Apollo에서의 Mutation</em></strong></h4><p>Apollo 클라이언트로 뮤테이션을 호출하는 것은 쿼리를 보내는 것과 동일한 접근 방식을 따릅니다. 이 경우 두 가지 옵션이 있습니다.</p><ol><li>뮤테이션을 보내야 하는 React 구성 요소를 graphql 고차 컴포넌트로 래핑</li><li>ApolloClient를 사용하여 직접 변형을 보내고 Promise에서 반환 데이터를 처리</li></ol><p>그러나 Relay와 달리 Apollo는 전송되는 모든 뮤테이션에 대해 캐시 일관성을 관리하지 않으므로 뮤테이션이 수행된 후 Apollo가 캐시를 업데이트하는 방법을 수동으로 지정해야 합니다.</p><p><strong><em>graphql 컴포넌트로 래핑</em></strong></p><p>우선, gql 를 사용하여 변수로 뮤테이션을 정의하고 나중에 뮤테이션을 호출하기 위해 Graphql로 React 컴포넌트를 래핑합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d73f090ec3362930716ad297e48f472f/href">https://medium.com/media/d73f090ec3362930716ad297e48f472f/href</a></iframe><p>데이터를 가져오기 위해 동일한 접근 방식을 사용했을 때 쿼리가 뒷단에서 전송되었고 반환된 데이터는 props의 데이터로 컴포넌트에서 사용할 수 있게 되었습니다. 이번에는 뮤테이션이 발생했을 때 제어를 유지하려는 뮤테이션을 다루고 있기 때문에 Apollo는 실제로 mutate라는 새로운 함수를 컴포넌트의 props에 주입합니다. 이 함수는 명시적으로 서버에 뮤테이션을 보내는 데 사용할 수 있습니다.</p><blockquote><a href="https://www.apollographql.com/docs/react/caching/cache-configuration/">Apollo 문서</a>: 대부분의 경우 결과의 객체 ID가 store에 이미 있는 ID와 일치하는 한 UI는 뮤테이션의 결과에 따라 자동으로 업데이트됩니다. 이 기능을 활용하는 방법에 대한 자세한 내용은 위의 dataIdFromObject 설명서를 참조하십시오. 그러나 뮤테이션이 있는 목록에 항목을 제거하거나 추가하거나 일부 개체에 개체 식별자를 할당할 수 없는 경우에는 updateQueries를 사용하여 UI가 변경 사항을 올바르게 반영하는지 확인해야 합니다.</blockquote><p>본질적으로 updateQueries 객체는 (일부 데이터를 가져오기 위해 이전에 사용한) 쿼리 이름에서 뮤테이션에 의해 반환된 새 데이터를 쿼리의 이전 결과에 통합하는 방법을 지정하는 함수에 대한 map입니다. 따라서 쿼리에 대한 데이터를 다시 가져올 필요가 없지만 대신 뮤테이션 후 캐시를 변경하는 방법을 지정합니다. 우리가 지정하는 함수는 이전 쿼리 결과와 뮤테이션 데이터를 받아 새로운 쿼리 결과에 병합한다는 점에서 <a href="https://redux.js.org/tutorials/fundamentals/part-3-state-actions-reducers">Redux 리듀서</a>와 동일한 원리를 따릅니다.</p><p>위의 예를 사용하여 다음과 같이 updateQueries 구성을 추가할 수 있습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/83eeb63bf574f1905e5b24cb35589192/href">https://medium.com/media/83eeb63bf574f1905e5b24cb35589192/href</a></iframe><p>여기서 updateQueries로 인해 발생하는 일은 allPokemonsQuery를 사용하여 새 포켓몬도 포함하도록 사용한 모든 위치를 업데이트하도록 Apollo Client에 지시하는 것입니다. 뮤테이션이 전송되고 서버에서 데이터가 반환되면 allPokemonsQuery에 대해 지정한 함수가 호출되고 캐시가 지정한 대로 업데이트됩니다. 변경 사항은 해당 쿼리의 데이터를 사용하는 모든 컴포넌트의 props를 통해 제공되며 UI가 다시 렌더링됩니다.</p><p>뮤테이션의 영향을 받는 쿼리가 여러 개 있는 경우 모든 쿼리를 updateQueries에 개별적으로 포함해야 합니다. 다음 쿼리를 예로 들겠습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/20bbcd97e9f4ddbda26a319175598ed0/href">https://medium.com/media/20bbcd97e9f4ddbda26a319175598ed0/href</a></iframe><p>이전 어느 시점에서 이 쿼리를 사용하고 반환된 데이터가 캐시된 경우 캐시가 제대로 업데이트되었는지 확인하기 위해 updateQueries에 반환된 개체의 일부로 TrainerQuery도 포함해야 합니다.</p><p>자세한 내용은 <a href="https://www.learnrelay.org/mutations/mutation-types">advanced mutations</a>, <a href="https://www.learnapollo.com/excursions/excursion-02">managing Apollo Store</a> 및 <a href="http://dev.apollodata.com/react/cache-updates.html">official mutation documentation</a>을 참조해주세요.</p><p><strong><em>ApolloCient를 사용하여 직접 뮤테이션 보내기</em></strong></p><p>컴포넌트의 props를 통해 뮤테이션을 사용 가능하게 만드는 대신 ApolloClient의 인스턴스를 사용하여 뮤테이션을 직접 보낼 수도 있습니다. 아래의 코드는 쿼리를 보내는 것과 유사하지만 클라이언트의 <a href="https://www.apollographql.com/docs/react/reference/index.html#ApolloClient.mutate">mutate</a> 메서드를 사용합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7e1520f0fd920bf5381e1829e3fc6bd/href">https://medium.com/media/c7e1520f0fd920bf5381e1829e3fc6bd/href</a></iframe><p>updateQueries를 사용하기 전과 같은 방식으로 뮤테이션 후 Apollo가 로컬 캐시를 업데이트하는 방법을 지정할 수 있습니다.</p><h3>Subscriptions(구독)</h3><p>GraphQL은 클라이언트가 GraphQL 백엔드의 뮤테이션으로 인한 변경 사항을 <a href="https://graphql.org/blog/subscriptions-in-graphql-and-relay/">구독</a>할 수 있는 기능을 제공합니다. 이를 통해 클라이언트는 애플리케이션에서 실시간 기능을 구현하고 항상 현재 서버 측 상태로 UI를 최신 상태로 유지할 수 있습니다.</p><p>Relay를 사용하면 클라이언트에서 구독 처리에 대한 지원이 많지 않습니다. 이 <a href="https://github.com/taion/graphql-relay-subscription">헬퍼 패키지</a>를 사용하여 Relay에서 구독을 쉽게 통합할 수 있습니다. 그 외에는 Relay와 함께 제공되는 지원이 많지 않습니다.</p><p>반면에 Apollo는 <a href="https://github.com/apollographql/subscriptions-transport-ws">subscriptions-transport-ws</a>라는 추가 패키지를 통해 구독에 대한 비교적 정교한 지원을 제공합니다. 구독이 Apollo Client와 작동하는 방식에 대해 자세히 알고 싶다면 자습서에서 해당 내용을 읽고 <a href="https://github.com/graphcool-examples/react-graphql/tree/master/subscriptions-with-apollo-worldchat">예제 프로젝트</a>를 확인해주세요.<br>(구독은 저도 아직 안써봐서 자세히 알지 못합니다…)</p><h3>결론</h3><p>Relay와 Apollo는 GraphQL 서버와 상호 작용하고 React 컴포넌트에서 데이터를 사용할 수 있도록 하는 접근 방식이 크게 다릅니다.</p><p>Apollo는 사용 편의성과 유연성을 최적화하므로 개발자가 애플리케이션을 빠르게 시작할 수 있습니다. 그러나 로컬 캐시가 Apollo와 일관성을 유지하도록 하려면 많은 수작업이 필요하며 특히 대규모 애플리케이션에서는 상당히 복잡해질 수 있습니다.(대규모 어플리케이션에서는 릴레이를 추천합니다)</p><p>반면 릴레이는 처음부터 서버와의 통신 효율성을 극대화하도록 설계된 매우 정교한 시스템입니다. React 컴포넌트는 각 컴포넌트에 같은 위치에 있는 GraphQL Fragment를 사용하여 데이터 요구 사항을 표현합니다. 이렇게 하면 계층 구조의 다른 컴포넌트에 대한 데이터 요구 사항이 변경되는 경우에도 각 구성 요소가 필요한 데이터를 가져오도록 하기가 더 쉽습니다. Relay는 로컬 저장소를 서버의 상태와 일관되게 유지하기 위해 뒷단에서 많은 작업을 수행하고 있습니다. (Relay는 강력한 기능을 제공하는 대신 러닝커브가 조금..)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da707e2dbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[그래프큐엘 Apollo vs Relay (2/3)]]></title>
            <link>https://medium.com/@hankpkj/%EA%B7%B8%EB%9E%98%ED%94%84%ED%81%90%EC%97%98-apollo-vs-relay-2-3-105fab03a68a?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/105fab03a68a</guid>
            <category><![CDATA[apollo-client]]></category>
            <category><![CDATA[relayjs]]></category>
            <category><![CDATA[그래프큐엘]]></category>
            <category><![CDATA[graphql]]></category>
            <category><![CDATA[apollo-vs-relay]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Sat, 14 May 2022 05:53:56 GMT</pubDate>
            <atom:updated>2022-05-14T05:53:56.128Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ruz3FNqr0-eVEU8m" /><figcaption>Photo by <a href="https://unsplash.com/@hharritt?utm_source=medium&amp;utm_medium=referral">Hunter Harritt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>저번 장에서는 아폴로, 릴레이의 요구사항과 주의점에 대해 알아보았습니다. 이번 장에는 Query, Mutation, Subscription에 관해서 알아보도록 하겠습니다.</p><h3>Queries</h3><p>릴레이와 아폴로의 graphql client의 주요 기능은 데이터를 가져와 앱의 view layer에서 사용할 수 있도록 하는 기능입니다. 릴레이에서 React 컴포넌트 내부의 데이터에 액세스하는 주요 방법은 Relay.Container라는 고차컴포넌트를 사용하는 것입니다.</p><p>아폴로를 사용하면 graphql 고차 컴포넌트와 유사한 접근 방식을 사용할 수 있습니다. 서버에서 데이터를 얻는 또 다른 방법은 ApolloClient 클래스를 사용하여 쿼리를 직접 보내고 반환된 데이터를 약속(미리 정의된)으로 처리하는 것입니다. 다음에서는 릴레이와 아폴로를 사용하여 데이터를 가져오는 방법에 대해 자세히 알아보겠습니다.</p><p>다음 두 섹션에서는 다음 쿼리와 각 릴레이 및 아폴로를 사용하여 통합하는 방법을 분석할 것입니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7ac7905b03355d7c926d7ff1afffa240/href">https://medium.com/media/7ac7905b03355d7c926d7ff1afffa240/href</a></iframe><h4>릴레이에서의 데이터 패칭</h4><p><strong><em>Co-located Query</em></strong></p><p>릴레이는 React 컴포넌트에 대한 데이터 요구 사항을 표현하기 위해 GraphQL Fragment에 크게 의존합니다. 사실, Relay로 작업할 때 작성자는 실제로 완전한 GraphQL 쿼리를 작성하는 것이 아니라 각 컴포넌트에 필요한 데이터만 Fragment로 지정합니다. 그런 다음 Relay는 Fragment을 구성하고 서버로 전송되는 실제 GraphQL 쿼리를 작성합니다. 개발자가 네트워크 연결 및 HTTP 요청의 핵심을 다룰 필요가 없도록 이 프로세스의 모든 세부 정보를 숨깁니다(이전 장:추상화 되어 숨겨짐).<br>( 여러개의 Frament를 작성하면 Relay가 Graphql 쿼리를 구성하여 서버에 날려줌 )</p><p>위에서 언급했듯이 서버의 데이터가 필요한 React 컴포넌트는 Relay.Container로 감싸져야(Wrapping) 합니다. 이 고차 컴포넌트는 데이터 가져오기를 직접 처리하지 않고 감싸진 컴포넌트에 데이터 요구 사항을 정의한 다음 구성 요소가 렌더링되기 전에 이 데이터를 사용할 수 있도록 보장합니다.</p><p>Pokedex 라는 컴포넌트에서 “Ash Ketchum”이라는 트레이너의 모든 포켓몬을 표시하려는 Relay.Container를 만들고 내보내는 몇 가지 예제 코드를 살펴보겠습니다.</p><p>Pokedex 컴포넌트는 각 PokemonPreview가 하나의 특정 포켓몬에 대한 정보를 표시하는 PokemonPreview 컴포넌트 리스트를 렌더링합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3618b473058a3b0a6ae83deb21f1a21b/href">https://medium.com/media/3618b473058a3b0a6ae83deb21f1a21b/href</a></iframe><p>래핑된 React 컴포넌트에서 릴레이컨테이너에 정의된 Fragment에 따라 props를 지정해야 합니다. 위의 경우 allPokemons 객체를 포함하는 viewer를 지정해야 합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cb419857958e3933669d1628dbd6d945/href">https://medium.com/media/cb419857958e3933669d1628dbd6d945/href</a></iframe><p>이 접근 방식에서는 viewerprop이 컴포넌트 layer를 통해 Pokedex 컴포넌트에 전달되어야 한다는것을 유의해야 합니다. 우리가 viewer를 Fragment의 데이터 요구 사항으로 선언했다는 사실만으로는 ‘<strong><em>사용가능함’</em></strong>이 보장되지 않습니다. 특정 컴포넌트에서 viewer의 어떤 부분이 필요한지 표현하는 역할만 합니다.</p><p>React 및 릴레이로 작업할 때 이러한 프레임워크에서 관리하는 두 개의 트리가 있습니다. React에서 관리하는 컴포넌트 트리는 애플리케이션의 1.UI와 2.GraphQL 쿼리로 구성되는 Fragment 트리입니다.</p><p>릴레이는 규칙을 기반으로 합니다. 이 접근 방식의 주요 이점은 이러한 규칙을 따르면 매우 깨끗한 아키텍처를 적용하고 다른 부분과 상호 종속성을 가진 시스템의 특정 부분을 변경할 때 나타나는 잔 버그를 줄일 수 있다는 것입니다.</p><p>릴레이는 또한 성능을 최적화하고 클라이언트에서 아직 사용할 수 없는 데이터만 가져옴으로써 데이터 전송을 최소화하려고 합니다. Facebook은 연결성이 매우 낮은 지역에서 응용 프로그램의 사용자 경험을 개선하려는 맥락에서 GraphQL과 Relay를 만들었습니다. 네트워크를 통해 가능한 한 적은 데이터를 보내는 것이 주요 목표 중 하나였으며 여전히 전체 프레임워크의 주요 부분입니다.</p><p><strong>Data normalization with nodes</strong></p><p>릴레이는 GraphQL 백엔드의 모든 노드에 고유한 id 필드가 필요합니다. 이 ID는 릴레이가 데이터를 정규화하고 특정 노드에 대한 새 데이터가 있을 때 모든 구성 요소가 다시 렌더링되도록 하는 데 사용됩니다. 클라이언트 측에서 캐시를 일관성 있게 만들기 위해 더 이상 설계는 필요하지 않고, 이 동작을 변경하지도 않습니다.</p><p>예를 들어 유형별로 고유한 ID만 있는 GraphQL 백엔드의 경우 릴레이의 캐시 메커니즘이 중단됩니다. Graphcool은 <a href="https://github.com/prisma-archive/cuid-java">cuid</a>를 사용하여 프로젝트의 모든 노드에서 고유한 ID를 생성하므로 문제가 되지 않습니다.</p><h4>아폴로에서의 데이터 패칭</h4><p>Apollo를 사용하면 두 가지 방법으로 데이터를 가져올 수 있습니다.</p><ol><li>React 컴포넌트를 graphql 고차 컴포넌트로 래핑하고 props를 통해 데이터를 사용할 수 있도록 합니다.</li><li>ApolloClient 클래스를 사용하여 직접 쿼리를 보내고 Promise에서 반환 데이터를 처리합니다.</li></ol><p><strong><em>graphql을 사용하여 React 컴포넌트 래핑하기</em></strong></p><p>React 컴포넌트에 일부 데이터가 필요한 경우 이러한 데이터 요구 사항을 표현하는 쿼리로 래핑할 수 있으며 그 결과는 컴포넌트의 props를 통해 사용할 수 있습니다. 아폴로는 래핑된 구성 요소에 loading 및 error 속성을 추가로 주입합니다. 이렇게 하면 데이터가 클라이언트에 아직 도착하지 않았거나(loading이 true인 경우) 네트워크 요청이 실패한 상황에서 구성 요소가 렌더링할 수 있습니다(오류에는 무엇이 잘못되었는지에 대한 정보가 포함됨).</p><p>Pokedex 컴포넌트가 “Ash Ketchum”이라는 트레이너가 소유한 모든 포켓몬을 표시하는 위와 동일한 시나리오에서 Pokedex 컴포넌트를 래핑하는 코드는 다음과 같습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5c6b7199428899da6d74df7c5db691b/href">https://medium.com/media/e5c6b7199428899da6d74df7c5db691b/href</a></iframe><p>쿼리에 대한 응답과 loading및 error 속성은 모두 래핑된 컴포넌트의 props에 있는 data라는 개체의 일부입니다. 이 개체의 이름을 바꿀 수 있지만 초기값은 data 입니다.</p><p>우리 시나리오에서 Pokedex 컴포넌트의 구현은 다음과 같습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/083e8ddd85c3c00bb672d3779262f173/href">https://medium.com/media/083e8ddd85c3c00bb672d3779262f173/href</a></iframe><p><strong><em>ApolloClient 클래스를 사용하여 직접 쿼리를 보내기</em></strong></p><p>두 번째 옵션은 ApolloClient를 사용하여 쿼리를 보내고 그 결과를 Promise로 처리하는 것입니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a5fffd95d74524d23726fa62acde0b52/href">https://medium.com/media/a5fffd95d74524d23726fa62acde0b52/href</a></iframe><p>이 접근 방식을 사용하면 UI에 표시하는 것 외에 특정 데이터가 필요한 경우 더 유연하게 데이터를 가져올 수 있습니다.</p><h4>아폴로 Store 제어</h4><p>아폴로는 로컬 캐시에 대해 <a href="https://dev-blog.apollodata.com/building-a-graphql-store-from-first-principles-413e19ea65b4">정규화된 저장소</a>를 사용합니다. 즉, 서버에서 반환되는 데이터(잠재적)가 nested한 모양을 가지며 저장소에 저장되기 전에 평면화(flatten)됩니다. 모든 개체는 해당 ID로 고유하게 식별되는 캐시의 첫 번째 level에 저장됩니다.</p><p>다음 예제 쿼리를 보겠습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/01de3de17f72d41b507acba5913a5c98/href">https://medium.com/media/01de3de17f72d41b507acba5913a5c98/href</a></iframe><p>그리고 다음 JSON 데이터를 반환한다고 가정합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdd2367cd9c80ffd121c21d7ca1ddc61/href">https://medium.com/media/bdd2367cd9c80ffd121c21d7ca1ddc61/href</a></iframe><p>아폴로는 이제 nested된 포켓몬을<em> 평면화</em>하여 store의 첫 번째 level에 배치하므로 store의 내용은 다음과 비슷합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/21b9c5b8c17f4726b997476e1794002c/href">https://medium.com/media/21b9c5b8c17f4726b997476e1794002c/href</a></iframe><p>이 접근 방식이 작동하려면 아폴로 store가 object를 고유하게 식별할 수 있어야 합니다. 실제로 ApolloClient를 초기화할 때 제공할 수 있는 dataIdFromObject 함수를 가지고 있습니다. Graphcool에서는 id 속성을 사용하여 이 작업을 수행합니다. 구현은 아래와 같습니다</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/33e3ddbe70f4e2d8247e99ecf5492afb/href">https://medium.com/media/33e3ddbe70f4e2d8247e99ecf5492afb/href</a></iframe><p>id가 type별로만 고유할 경우 다음 설정을 사용할 수 있습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1390171a0b75946e5cf8f242f992600e/href">https://medium.com/media/1390171a0b75946e5cf8f242f992600e/href</a></iframe><p>두 경우 모두 결과를 정규화해야 하는 모든 쿼리 및 뮤테이션에 id를 포함해야 합니다. Apollo Client의 GraphQL 쿼리에 대한 자세한 내용은 <a href="https://www.learnapollo.com/tutorial-react/react-02/">Learn Apollo</a>를 참조하십시오. <a href="https://www.howtographql.com/">실행 연습</a>을 하는것도 좋습니다.</p><p>뮤테이션은 다음장에 이어 가겠습니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=105fab03a68a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[그래프큐엘 Apollo vs Relay (1/3)]]></title>
            <link>https://medium.com/@hankpkj/%EA%B7%B8%EB%9E%98%ED%94%84%ED%81%90%EC%97%98-apollo-vs-relay-1-2-2462d26aac1e?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2462d26aac1e</guid>
            <category><![CDATA[apollo-graphql]]></category>
            <category><![CDATA[relay]]></category>
            <category><![CDATA[graphql-relay]]></category>
            <category><![CDATA[그래프큐엘]]></category>
            <category><![CDATA[apollo]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Sun, 08 May 2022 07:55:09 GMT</pubDate>
            <atom:updated>2022-05-14T05:55:53.962Z</atom:updated>
            <content:encoded><![CDATA[<h3>그래프큐엘 Apollo vs Relay (1/3)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*49f6ePNh2BF53bsL" /><figcaption>Photo by <a href="https://unsplash.com/@mcgroom?utm_source=medium&amp;utm_medium=referral">Chase McBride</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>최근에 Restful API 에서 그래프큐엘-릴레이 조합으로 API 스택을 변경함에 따라 그래프큐엘을 학습할 기회가 있었습니다. 배운 것을 정리함 겸 공유하고자 글을 씁니다.</p><p>프론트엔드에서 그래프큐엘을 사용하면 아폴로(<a href="https://clelab.io/course/graphql/graphql-apollo">Apollo</a>)와 릴레이(Relay)를 사용하게 될 텐데(가장 많이 쓰는 두가지만 우선..) 왜 릴레이를 선택하게 됐는지 부터 풀어쓰려고 합니다.</p><p>아폴로와 릴레이에 대한 아티클 중 흥미로운 글이 있어서 번역 겸 요약을 해보려합니다.<br>(출처: <a href="https://www.prisma.io/blog/relay-vs-apollo-comparing-graphql-clients-for-react-apps-b40af58c1534">https://www.prisma.io/blog/relay-vs-apollo-comparing-graphql-clients-for-react-apps-b40af58c1534</a>)</p><h3>Apollo vs Relay</h3><p>Relay는 복잡한 데이터 요구 사항과 종속성을 갖는 대규모 응용 프로그램에 적합합니다. 반면 Apollo는 모든 환경에서 작동하는 훨씬 더 가볍고 유연한 접근 방식을 제공합니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a352817d7e3fa39ac49410f9edd71fe9/href">https://medium.com/media/a352817d7e3fa39ac49410f9edd71fe9/href</a></iframe><p>모든 GraphQL 스키마와 함께 작동하는 Apollo Client와 달리 Relay는 실제로 서버에서 구현되는 GraphQL 스키마의 구조와 관련하여 몇 가지 요구 사항이 있습니다.</p><ul><li>릴레이는 ID로 하나의 특정 노드를 쿼리하는 기능 즉, ID를 인수로 취하는 Node라는 GraphQL 스키마의 루트 쿼리 필드로 수행됩니다. Relay에서 모든 객체는 고유한 ID를 가져야 하므로 모든 유형이 Node 인터페이스를 구현해야 합니다.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0d553f8cb947406ff6b7c5c362957ac8/href">https://medium.com/media/0d553f8cb947406ff6b7c5c362957ac8/href</a></iframe><p>그 이유는 Relay가 노드가 변경된 후 ID로 노드를 효율적으로 가져올 수 있고 일반적으로 데이터 그래프로 작업할 때 더 많은 성능 이점을 가져오기 때문입니다.</p><ul><li><em>다른 모든 필드를 자식으로 포함하는 </em><em>viewer라는 루트 필드를 사용하여 데이터 그래프를 쿼리하는 기능</em><br>viewer 는 다른 모든 노드가 어떤식으로든 연결된 루트 필드입니다. 이 필드는 실제로 Relay가 작동하기 위한 필수사항은 아니지만, 일반적으로 Relay와 함께 작동하는 거의 모든 GraphQL API에서 찾을 수 있습니다. <a href="https://github.com/facebook/relay/issues/112">링크</a>에서 뷰어 필드의 근거에 대해 자세히 알아볼 수 있습니다.</li><li><em>뮤테이션(Mutation)의 인자는 input type object에 래핑되어야 합니다 </em><br>Relay는 모든 뮤테이션이 하나의 단일 객체 형태로 입력 인자를 받아야 합니다. 따라서 name과 url이 필요한 createPokemon의 경우 이 정보는 이 두 값을 래핑하는 하나의 객체로 제공되어야 합니다.</li><li><em>뮤테이션 페이로드(payload)에 대한 요구 사항 </em><br>Relay에는 뮤테이션이 작동하는 방식과 로컬 Relay 저장소에 대한 업데이트가 수행되는 방식에 대한 강력한 규칙이 있습니다. 이를 위해서는 특정 필드가 뮤테이션의 페이로드에 포함되어야 합니다(포함되어야 하는 필드는 뮤테이션의 종류에 따라 다릅니다)</li><li><em>relationship 모델링을 위한 connections 사용 </em><br>릴레이에서 두 타입간의 관계를 모델링하는 데 사용되는 개념을 <a href="https://relay.dev/docs/v10.1.3/graphql-server-specification/#connections">Connection</a>이라고 합니다. 데이터 모델의 관계는 각각 노드를 포함하는 간선(edge)을 사용하여 표현되어야 합니다. 데이터베이스의 처음 100개의 Pokemon에 액세스하려는 경우 릴레이에서 아래과 같이 표시됩니다.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6c62469275e869f0289ff45646b80611/href">https://medium.com/media/6c62469275e869f0289ff45646b80611/href</a></iframe><p>이 경우 viewer는 allPokemons 필드에 연결됩니다. 또한 connection에는 가져와야 하는 수에 대한 표시가 필요합니다. 여기서는 first라는 매개변수를 사용하지만 last, after, before 과 같은 추가 옵션도 사용할 수 있습니다. 이를 통해 목록을 쉽게 슬라이싱하고 페이지네이션을 쉽게 구현할 수 있습니다(connection과 페이지네이션에 많은 인사이트를 얻을 수 있는 <a href="https://dev-blog.apollodata.com/explaining-graphql-connections-c48b7c3d6976#.fd4h8iuj5">아티클</a>)</p><h4>React Integration</h4><p>아폴로는 React, Angular, Vue 등과 같은 거의 모든 환경에서 사용할 수 있지만, 릴레이는 React와 React Native에서 밖에 사용하지 못합니다. 하지만 둘 다 React 애플리케이션에서 사용될 때는 거의 동일한 접근 방식을 따릅니다. 두 클라이언트 모두 React 컴포넌트가 데이터를 가져오고 props를 통해 컴포넌트에서 사용할 수 있도록 하는 고차 컴포넌트(<a href="https://facebook.github.io/react/docs/higher-order-components.html">higher-order component</a>) 사용하여 래핑된다는 것입니다. 컴포넌트에 대한 데이터 요구 사항은 <strong><em>선언적 방식</em></strong>으로 지정되며, 모든 실제 네트워킹 로직은 추상화되어 개발자에게 숨겨집니다. 이 접근 방식의 주요한 이점은 컨테이너가 컴포넌트의 상태(state)를 방해하지 않고 데이터 팻칭(fetching) 및 resolution 로직을 관리할 수 있다는 것입니다.</p><p>Query, Mutation, Subscription에 관해서는 다음 글에서 이어가겠습니다.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2462d26aac1e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[쿠키 vs 로컬스토리지 : 특징]]></title>
            <link>https://medium.com/@hankpkj/%EC%BF%A0%ED%82%A4-vs-%EB%A1%9C%EC%BB%AC%EC%8A%A4%ED%86%A0%EB%A6%AC%EC%A7%80-%ED%8A%B9%EC%A7%95-74d0d04636af?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/74d0d04636af</guid>
            <category><![CDATA[cookies]]></category>
            <category><![CDATA[localstorage]]></category>
            <category><![CDATA[쿠키]]></category>
            <category><![CDATA[로컬스토리지]]></category>
            <category><![CDATA[sessionstorage]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 15:27:21 GMT</pubDate>
            <atom:updated>2022-01-19T15:27:21.401Z</atom:updated>
            <content:encoded><![CDATA[<h3>쿠키 vs 로컬스토리지 : 특징 비교</h3><p>언젠가 개발 도중 쿠키와 로컬스토리지를 둘 중 하나를 선택해야 할 기로에 놓였다. 많은 자료들을 비교해 가면서 쿠키와 로컬스토리지의 장단점을 분석해 보았는데, 이를 공유하면 좋겠다는 생각이 들어 글을 써봅니다.</p><h3>쿠키 (Cookie)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*J-SDHAi3TBYae8Jf" /><figcaption>Photo by <a href="https://unsplash.com/@vyshnavibisani?utm_source=medium&amp;utm_medium=referral">Vyshnavi Bisani</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li>웹사이트에 의해 유저의 컴퓨터에 놓여지는 작은 텍스트 파일</li><li>4KB</li><li>대부분의 브라우저가 지원</li><li>HTTP 요청으로 데이터를 주고 받음</li><li>API가 한번 더 호출되므로 서버에 부담 증가</li><li>문자열만 저장 가능</li><li>Persistent Cookie<br>- 만료일o, 통상적으로 흔히 ‘쿠키&#39;라고 불림</li><li>Session Cookie<br>- 만료일x, 브라우저가 닫히면 사라짐, 은행에서 자격 증명 용도로 자주 사용</li></ul><h3>로컬스토리지 (LocalStorage)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oKRevUFQj4Q6-WgP" /><figcaption>Photo by <a href="https://unsplash.com/@shubhambombarde?utm_source=medium&amp;utm_medium=referral">Shubham Bombarde</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><ul><li>HTTP 요청을 할 필요 없음, 인터넷 연결에 구애 받지 않음</li><li>5MB 이상 (모바일 2.5MB)</li><li>HTML5 지원하지 않는 브라우저에서 사용 불가</li><li>데이터가 임의로 삭제되지 않음</li><li>SessionStorage<br>- 세션 종료 시(브라우저를 닫을 경우) 클라이언트에 대한 정보가 삭제<br>- 현재 페이지가 브라우징 되고 있는 브라우저 컨텍스트 내에서만 데이터가 유지</li></ul><p><strong><em>쿠키와 로컬스토리지 모두 비밀번호와 같은 중요 정보는 절대 저장하면 안된다.</em></strong></p><h3>통상적인 사용처</h3><ul><li>팝업 창 : Cookie</li><li>자동 로그인 : LocalStorage</li><li>입력 폼 정보 : SessionStorage</li><li>비로그인 장바구니 : SessionStorage</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74d0d04636af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[함수형 프로그래밍 [Coursera] — Week 2]]></title>
            <link>https://medium.com/@hankpkj/%ED%95%A8%EC%88%98%ED%98%95-%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D-coursera-week-2-3102fecb4695?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3102fecb4695</guid>
            <category><![CDATA[고차함수]]></category>
            <category><![CDATA[커링]]></category>
            <category><![CDATA[함수형-프로그래밍]]></category>
            <category><![CDATA[코세라]]></category>
            <category><![CDATA[익명함수]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Mon, 17 Jan 2022 08:40:18 GMT</pubDate>
            <atom:updated>2022-01-17T08:40:18.953Z</atom:updated>
            <content:encoded><![CDATA[<h3>함수형 프로그래밍 [Coursera] — Week 2</h3><p><strong>고차함수 (Higher-order function)</strong></p><p>Functional Langunage 에서는 함수를 first-class value로 취급합니다.<br>즉, 다른 값들 처럼 parameter 로써 넘겨지거나 result로 리턴되기도 합니다.<br>이 개념은 프로그램을 유연하게 compose 할 수 있게 합니다.<br>다른 함수를 매개변수로 취하거나 결과로 변환하는 함수를 <strong>고차 함수</strong>라고 합니다.</p><ul><li>example</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/16962505e41cf084bbbd87dc5a46fae6/href">https://medium.com/media/16962505e41cf084bbbd87dc5a46fae6/href</a></iframe><p>( f: Int =&gt; Int 은 function type 이다 )</p><p><strong>익명함수 (Anonymous Fuctions)</strong></p><p>일반적으로 매개변수로 함수를 전달하면 많은 작은 함수가 생성됩니다. 그리고 때때로 def를 사용하여 이러한 모든 함수의 이름을 정의하고 하는 것은 힘들죠. <br>우리는def str = “abc&quot;; println(str) 대신 println(&quot;abc&quot;) 를 사용하곤 합니다.문자열이 리터럴로 존재하기 때문에 printIn(abc)을 직접 사용할 수 있습니다. 이와같이 우리는 이름을 부여하지 않고 함수를 작성할 수 있도록 하는 함수에 대한 리터럴을 원합니다. 이것을 익명 함수라고 합니다.</p><p>실제로 우리는 (x:Int) =&gt; x * x * x 같은 구문을 인자로 넘기거나 받을 때, 따로 def를 써서 정의하지 않고 위와 같이 사용합니다. 이 때문에 익명함수를 <strong><em>syntax sugar</em></strong>라고 생각합니다.</p><ul><li>example</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1dddf35aa30115f0b02a1d647c84386c/href">https://medium.com/media/1dddf35aa30115f0b02a1d647c84386c/href</a></iframe><p><strong>커링 (Curring)</strong></p><p>이건 배우고 적용할 때 조금 갸우뚱하면서 적용했던 기억이 있습니다. 패턴만 보고 ‘흔히 사용하는 거잖아’ 라고 생각했지만 막상 맘먹고 사용하려 하니 조금 막막했네요. 하지만 익숙해지면 코드를 짧고 가독성있게 만들수있는 무기인 것임은 분명합니다.</p><ul><li>example</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c7d86eac2a7d01b085b376832a84f0bd/href">https://medium.com/media/c7d86eac2a7d01b085b376832a84f0bd/href</a></iframe><p>우리가 흔히 쓰는 a[i][j] 같은 표현도 일종의 커링이라고 볼 수 있겠네요!</p><p>그리고 위의 sum 함수의 타입도 아래와 같이 볼 수 있습니다.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ffda3929707a9a7b86e0d735944eaa5/href">https://medium.com/media/8ffda3929707a9a7b86e0d735944eaa5/href</a></iframe><p>스칼라의 Class, Method, this, extension 에 대한 내용도 있지만 조금 지엽적인 내용이라 제외 하였습니다.</p><p><strong><em>Assignment (10/10 score)</em></strong></p><p><a href="https://github.com/Hankpkj/scala-playground/blob/main/funsets/src/main/scala/funsets/FunSets.scala">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3102fecb4695" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Tail Recursion]]></title>
            <link>https://medium.com/@hankpkj/what-is-tail-recursion-6226ce4fe6e?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6226ce4fe6e</guid>
            <category><![CDATA[scala-recursion]]></category>
            <category><![CDATA[scala]]></category>
            <category><![CDATA[tail-recursion]]></category>
            <category><![CDATA[recursion-in-scala]]></category>
            <category><![CDATA[tail-recursion-in-scala]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Sun, 16 Jan 2022 09:35:16 GMT</pubDate>
            <atom:updated>2022-01-16T09:35:16.321Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Recursion<br>recursion is a fundamental tool for functional programming. Whereas in an imperative language, you would probably rather use a loop like a while loop or a for loop.</blockquote><p>Now, through the substitution process, let’s see what is normal recursion and what is tail recursion.</p><ol><li>gcd</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4fa829ebc83d4fa29ceec49fe85246d0/href">https://medium.com/media/4fa829ebc83d4fa29ceec49fe85246d0/href</a></iframe><p>2. factorial</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bf7304bebb0f294831f2cf8b351dc73/href">https://medium.com/media/0bf7304bebb0f294831f2cf8b351dc73/href</a></iframe><p>Well, if we look at GCD, then we see that GCD calls itself recursively as its last action. There’s nothing after the recursive call. Recursive call is at the same time the result of GCD.</p><p>Whereas if we look at factorial, then we noticed that after the call, there’s still work to do. We still have to multiply with n. Here the call is not the last action of the body of the function. That leads to the different reduction traces. If the call is the last action, then essentially the intermediate expression in the reduction has always about the same size, whereas if the call is not the last thing then we essentially goes deeper and deeper. That observation which we have done on a very high level and on a very abstract level on the reduction traces, translates directly to an observation on the actual implementation hardware, because for function calls we have things called stack frames in a call stack. If a function calls itself as the last action, that stack frame can be reused, we can immediately use the same stack frame for the recursive call, and that is called tail recursion.</p><p>Tail-recursive functions are in essence iterative processes. There’s nothing different between a while loop and a tail-recursive function. In general, if the last action of a function consists of calling another function or maybe the same one, then we only need one stack frame for both functions. Such calls are called tail calls. In Scala, because it runs on the JVM, we can only optimize directly recursive calls to the current function. Such an optimization can help runtime speed of the function, and it also can avoid stack overflows. Turns out that in a normal stack on the JVM, you have maybe 2,000, 3,000 recursive calls until you get a <strong><em>stack overflow</em></strong>. If your programs are large enough and your data structures are large enough that isn’t sufficient. It’s very important that your calls are in fact tail calls.</p><p>An exercise for you, open-ended, you’ve seen factorial, and we’ve seen that it’s not tail-recursive. Can you design a tail-recursive version of factorial?</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bee6147a778f57de5723518366642fae/href">https://medium.com/media/bee6147a778f57de5723518366642fae/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6226ce4fe6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Best way to customize input type=”file”]]></title>
            <link>https://medium.com/@hankpkj/input-type-file-%EC%BB%A4%EC%8A%A4%ED%84%B0%EB%A7%88%EC%9D%B4%EC%A7%95-%ED%95%98%EA%B8%B0-custom-file-input-element-d0aa7ef8d635?source=rss-db26efc130b6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0aa7ef8d635</guid>
            <category><![CDATA[file-input-type]]></category>
            <category><![CDATA[customize-input]]></category>
            <category><![CDATA[hide-input]]></category>
            <category><![CDATA[custom-input]]></category>
            <category><![CDATA[sr-only]]></category>
            <dc:creator><![CDATA[Hankpkj]]></dc:creator>
            <pubDate>Sat, 15 Jan 2022 00:32:51 GMT</pubDate>
            <atom:updated>2022-01-16T04:21:04.471Z</atom:updated>
            <content:encoded><![CDATA[<ul><li>Default input[type=file]</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*5GsqWof9jEvop5EXRHbUng.png" /><figcaption>default forms: input type=”file”</figcaption></figure><p>First of all, the basic type of the Input element is super ugly. And customizing it yourself is very tricky, so many people use tricks to customize it.</p><p>When developing services, I have come across this situation often, and I am writing to share what I think is the best way to customize.</p><p>Let’s list a few possible ways.</p><ol><li>Customize using Refs</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60d2e0f416e82bda9de7d248c935fbae/href">https://medium.com/media/60d2e0f416e82bda9de7d248c935fbae/href</a></iframe><p>This is a method that hides the input by applying the display: ‘none&#39; option and creates a button that I want to show, and when the button is clicked, a click event is generated with the hidden input using ref.</p><p><strong><em>I personally do</em></strong> <strong><em>not recommend using refs</em></strong> because reckless use of refs can harm business logic and you do not know what side effects will occur! In addition, the display: ‘none’ option also hinders <a href="https://www.w3.org/WAI/fundamentals/accessibility-intro/">web accessibility</a> because keyboard access is not possible.</p><p>2. Customize Using ‘for’ attribute of label element</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dec7711b20608494aa4ba1cadfdfe8dd/href">https://medium.com/media/dec7711b20608494aa4ba1cadfdfe8dd/href</a></iframe><p>Connect with the id of the input using the for attribute of the label.<br>(Both names must be the same)</p><p>Also in this case, since the label is not accessible with the keyboard, web accessibility is hindered.</p><p>3. Put input inside label</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e5e8376643f1159ffb449a3bd483cab9/href">https://medium.com/media/e5e8376643f1159ffb449a3bd483cab9/href</a></iframe><p>The label has been improved to not use the for attribute, but the web accessibility problem has not been solved…</p><p>4. [<strong>Recommended</strong>] Using <strong>sr-only</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/287b8cdd485e9c89b5e0f73db18b335e/href">https://medium.com/media/287b8cdd485e9c89b5e0f73db18b335e/href</a></iframe><p>This method hides the input from the screen, but makes it keyboard-accessible and also exposed to search engines.</p><p>Bootstrap and Tailwind provide the css property as a specific class, so those who use the framework can easily use it as a keyword.</p><ul><li>opacity: 0 vs sr-only</li></ul><p>You might think that opacity: 0 also provides the same function, but opacity works well in screen readers, but it may not work in ChromeVox.<br>Opacity was mentioned once in <a href="https://medium.com/r?url=https%3A%2F%2Fgithub.com%2Fh5bp%2Fmain.css%2Fissues%2F12">the issue</a>, but when testing in a pen, the bug persists. This is a 2018 comment and an open issue, but I don’t know if it has been resolved.</p><p>I will reflect it when it is updated!</p><p>Please feel free to comment on any mistakes and complements</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0aa7ef8d635" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>