精进之路  
08 2022 档案
  • Apollo 的 Plugin 学习
    摘要:apollo 的 plugin 是在 apollo server 启动时候注册的,其形态是一个 js object. 在其中,可以通过 key 指定针对不同事件阶段的自定义处理函数。 events 其实是 apollo 处理请求的 life cycle 中的一系列时间点上触发的。这里既有 pre h 阅读全文
    posted @ 2022-08-29 02:20 Optimus_Prime 阅读(86) 评论(0) 推荐(0)
  • 学习 GraphQL Directives
    摘要:GraphQL 的 directive 有点类似 typescript 的 decorator. 可以被附加在 schema 中的各个地方(通过 location 来定义可以用在哪里),如 type, field, fragment, mutation, input 等等。 其实现的基本方式,是继承 阅读全文
    posted @ 2022-08-29 01:08 Optimus_Prime 阅读(148) 评论(0) 推荐(0)
  • 摘要:Netflix 使用 GraphQL Federation 的相关分享
    摘要:How Netflix Scales its API with GraphQL Federation (Part 1) https://netflixtechblog.com/how-netflix-scales-its-api-with-graphql-federation-part-1-ae35 阅读全文
    posted @ 2022-08-08 02:11 Optimus_Prime 阅读(128) 评论(0) 推荐(0)