TypeORM에서 N+1 문제가 발생하는 현상과 NestJS + GraphQL에서 발생하는 N+1을 어떻게 해결하는지 살펴보자.
Nuxt와 apollo 모듈을 이용해 GraphQL 데이터를 가져오는 예제입니다. 서버 측은 Laravel 6.x + Lighthouse로 GrpahQL 구성이 되어 있습니다.
apollo는 GraphQL을 위한 플랫폼이며 Vue-apollo는 Vue에서 Apollo를 사용하여 GraphQL과 통신할 수 있도록 지원하는 패키지입니다. 본 포스팅에서는 Laravel과…
본 포스팅에서는 Laravel에서 LightHouse를 사용하여 CRUD 하는 내용을 다뤄 보겠습니다.
선제 조건
정말 오랫만에 포스팅입니다. 이번 글에서는 PHP의 Laravel 프레임워크 에서 LightHouse를 사용하여 GraphQL을 사용할 수 있도록 전반적으로 소개 및 설치하는 포스팅입니다.
처음에 GraphQL을 접한 뒤, 음.. facebook에서 만들었고,, REST와는 다른 방법론이고 음.. 그래.. Schema를 정의하고, Query와…
GraphQL은 facebook에서 만든 쿼리 언어로, 서버의 API를 기존 REST 개발 하다가 한계를 느껴 탄생하게 됩니다.