书栈网 · BookStack 本次搜索耗时 0.038 秒,为您找到 361 个相关结果.
  • Authorization

    Authorization Basic RBAC implementation Claims-based authorization Integrating CASL Advanced: Implementing a PoliciesGuard Authorization Authorization refers to the proces...
  • 提供者

    提供者 服务 依赖注入 范围 定制提供者 可选的提供者 基于属性的注入 注册提供者 译者署名 提供者 提供程序是 Nest 的一个基本概念。许多基本的 Nest 类可能被视为提供者 - service ,repository , factory , helper 等等。 他们都可以通过 constructor 注入 依赖关系。 这...
  • Complexity

    Complexity Installation Getting started Field-level complexity Complexity Warning This chapter applies only to the code first approach. Query complexity allows you to d...
  • Redis

    Redis Installation Overview Options Client Context Redis The Redis transporter implements the publish/subscribe messaging paradigm and leverages the Pub/Sub feature of Re...
  • 基础

    依赖注入 使用 Value 使用工厂(Factory) 使用类(class) 注入 异步组件 循环依赖 正向引用 模块参考 单元测试 隔离测试 测试工具 E2E 测试 依赖注入 有很多情况下, 当你想绑定的东西直接到 Nest 容器。您应该知道的是, Nest 是通过 tokens 来注入依赖关系的。通常, token 只是一...
  • 六、用 15 行代码实现 RBAC 0

    Nest.js 从零到壹系列(六):用 15 行代码实现 RBAC 0 RBAC 1. 什么是 RBAC ? 2. RBAC 模型的分类 2.1 RBAC 0 2.2 RBAC 1 2.3 RBAC 2 2.4 RBAC 3 具体实现 1. 拦截器逻辑编写 2. 测试准备 3. 编写业务逻辑 4. 验证 5. 优化 2020-3-...
  • CRUD generator

    CRUD generator Introduction Generating a new resource CRUD generator Throughout the life span of a project, when we build new features, we often need to add new resources to o...
  • Pipes

    Pipes Built-in pipes Binding pipes Custom pipes Schema based validation Learn the right way! Object schema validation Binding validation pipes Class validator Global scoped...
  • Guards

    Guards Binding guards Guards There is no fundamental difference between microservices guards and regular HTTP application guards . The only difference is that instead of throw...
  • Pipes

    Pipes Binding pipes Pipes There is no difference between microservices pipes and the regular pipes . The only thing you should be aware of is that instead of throwing HttpExc...