본문 바로가기

Simple is IT, 누구나 보고 누구나 깨닫는 IT

검색하기
Simple is IT, 누구나 보고 누구나 깨닫는 IT
프로필사진 currenjin

  • 전체 (202)
    • Simple is IT (165)
      • Network (35)
      • Security (15)
      • Server (35)
      • GraphQL (1)
      • Cloud & Container (27)
      • Database (16)
      • Programming (35)
      • Project (0)
    • Life is Good (36)
      • Certificate (6)
      • Project (4)
      • Book (23)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • Github
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Tags
  • Cosmos
  • TDD
  • 리눅스
  • snort
  • 도커
  • Linux
  • 라우터
  • Routing
  • 코딩 테스트
  • MySQL
  • 스노트 룰
  • Router
  • 데이터베이스
  • Container
  • Snort Rule
  • osi7layer
  • programmers
  • Python
  • 스노트
  • database
  • 트레바리
  • 프로그래머스
  • 라우팅
  • 라우팅프로토콜
  • 컨테이너
  • db
  • docker
  • 코딩테스트
  • OSI7계층
  • coding test
more
Archives
Today
Total
관리 메뉴
  • Github
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록n+1 (1)

Simple is IT, 누구나 보고 누구나 깨닫는 IT

N+1 (w/GraphQL)

N+1 Settings TypeDefs const typeDefs = `#graphql type User { id: Int!, name: String!, } type Post { id: Int!, boardId: Int!, user: User!, } type Board { id: Int!, posts: [Post], } type Query { board(id: Int!): Board } `; Resolvers const resolvers = { Query: { board: (_, { id }) => Board.findOne({ where: id }), }, Board: { posts: board => Post.findAll({ where: { boardId: board.id }}), }, Post: { ..

Simple is IT/Programming 2023. 12. 8. 10:32
Prev 1 Next


Blog is powered by kakao / Designed by Tistory

티스토리툴바