当前位置: 首页 > 软件库 > 大数据 > 数据查询 >

nestjs-query

Easy CRUD for GraphQL.
授权协议 MIT License
开发语言 Java
所属分类 大数据、 数据查询
软件类型 开源软件
地区 不详
投 递 者 司空昊阳
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Nestjs-query Logo

Test

nestjs-query

Nestjs-Query is collection of packages to make crud for graphql easier.

Why?

While working on projects in nestjs it was very easy to get up and running with graphql however, there were many patterns that were common between the resolvers. In particular querying, sorting and paging.

Installation

Install Guide.

Docs

Packages

Nestjs-query is composed of multiple packages

  • @nestjs-query/core - Defines all interfaces and utility types implemented by the other packages.
  • @nestjs-query/query-graphql - Package that provides the graphql resolver and decorators for crud endpoints.
  • @nestjs-query/query-typeorm - Package that implements a Typeorm service that can be used by itself or with the graphql resolver provided by @nestjs-query/query-graphql.
  • @nestjs-query/query-sequelize - Package that implements a Sequelize service that can be used by itself or with the graphql resolver provided by @nestjs-query/query-graphql.
  • NestJS TypeORM Pagination - Demo When working on an API, sometimes, we have to paginate our data in order to provide a good user experience. In this tutorial, we will be doing a NestJS TypeORM Paginat

  • nest.js 中间件的使用 log 场景 文档 logger middleware 新建 logger 中间件 nest g middleware logger middleware logger 中间件内容 middleware/logger.middleware.ts import { Injectable, NestMiddleware } from "@nestjs/common";

  • 接上一篇 posts.controller.ts findByIdAndUpdate、find、create、findByIdAndDelete都是mongoose的方法,与nest.js无关 import { Body, Controller, Delete, Get, Param, Post, Put, Query } from '@nestjs/common'; import { ApiOp

  • 来了来了他来了 我们学了这么久的第一个CURD 前端Vue3 ts Element ui  axios <template> <div class="wraps"> <div> <el-input v-model="search.keyWord" style="width:300px;"></el-input> <el-but

  • 1. 准备工作:使用 InjectRepository 注入Repository,然后创建一个 queryBuilder @Injectable() export class TicketDao { constructor( @InjectRepository(TicketEntity) private readonly ticketRepo: Repository<Tick

  • 从零开始搭建搭建nestJs Nest 概念 Nest的核心概念是提供一种体系结构,它帮助开发人员实现层的最大分离,并在应用程序中增加抽象。 主要有三个核心概念:模块Module, 控制器Controller, 服务与依赖注入 Provider Dependency injection 模块Module: 用于将代码拆分为独立的和可重用的模块,例如用户信息模块,然后将该用户模块的控制器和服务集合进

  • 身份验证是任何应用程序最重要的方面之一。它通过在授予用户访问应用程序不同部分的访问权限之前验证用户来提高应用程序的安全性。身份验证还使公司能够跟踪有多少人在使用他们的产品。 正确配置身份验证至关重要。事实上,开放 Web 应用程序安全项目 (OWASP) 在其十大 Web 应用程序安全风险列表中确定了识别和身份验证失败。 本教程将演示在 NestJS 中实现 JWT 用户身份验证的分步过程。 跳跃

  • 最近用NestJS作为Web主力框架,积极拥抱TypeScript。奈何找不到一款类似MyBatis那样可以直接写SQL的数据库工具,而NestJS通常用的数据库工具都是一些很自定义语法的ORM框架,用着蛮别扭。不得已自己通过TS的装饰器写了一个类似MyBatis的注解工具——SpeedSQL,现分享给大家。 开源许可:MIT NPM地址:https://www.npmjs.com/package

  • Nodejs之NestJS之TypeORM使用 node下的TypeORM比上不足,比下有余,这里分享一些使用经验 一、入口 TypeORM提供的入口很多,connection,entityManager,repo,使用的时候难免纠结用什么,这里建议统一使用entityManager: getManager() 二、事务 建议封装事务,动态传入entityManager,方便复用和测试: imp

  • 安装 $ npm i -g @nestjs/cli $ nest info _ _ _ ___ _____ _____ _ _____ | \ | | | | |_ |/ ___|/ __ \| | |_ _| | \| | ___ ___ | |_ | |\ `--. | / \/|

  • 方法1: buildMenuTree (menuList: Menu[], pid: string): MenuTree[] { let result: MenuTree[] = []; menuList.forEach(menu => { const menuTree = new MenuTree(); menuTree.id = menu.id;

 相关资料
  • A collection of Badass modules and utilities to help you level up your NestJS application. Package Description Version Changelog @golevelup/nestjs-common Common types, mixins changelog @golevelup/nest

  • Description The rbac module for Nest. Installation npm i --save nestjs-rbac Quick Start For using RBAC there is need to implement IStorageRbac export interface IStorageRbac { roles: string[]; permis

  • Nestjs-BFF OVERVIEW Overview     Frontend     Backend     CLI     DevOps Status This library is currently 'on ice' and is no longer being activley maintained at this time. However, it may still server

  • rucken-core-nestjs A simple application demonstrating the basic usage of permissions with NestJS (JWT, Passport, Facebook, Google+, User, Group, Permission) based on Rucken template Screenshots Featur

  • Nest.js 教程 如果喜欢本教程请点击右上角的 star �� ,想订阅本教程请点击右上角 watch �� 如有不解之惑,或是想要更多的详细教程,可以在 New Issues 中写下你的问题或需求。 框架介绍 Nest 是构建高效,可扩展的 Node.js Web 应用程序的框架。它使用现代的 JavaScript 或 TypeScript(保留与纯 JavaScript 的兼容性),并结合

  • testing-nestjs Status A repository to show off to the community methods of testing NestJS including Unit Tests, Integration Tests, E2E Tests, pipes, filters, interceptors, GraphQL, Mongo, TypeORM, and