New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@madsci/graphql-codegen-nestjs

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@madsci/graphql-codegen-nestjs

GraphQL Code Generator plugin for @nestjs/graphql

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-41.67%
Maintainers
2
Weekly downloads
 
Created
Source

graphql-codegen-nestjs

A plugin for GraphQL Code Generator that produces classes suitable for use with @nestjs/graphql in "code first" mode.

This is based on the official TypeGraphQL plugin but it uses decorators from @nestjs/graphql instead of type-graphql.

Usage

Installation:

npm i -D @madsci/graphql-codegen-nestjs

Add the plugin to a Codegen output as @madsci/graphql-codegen-nestjs. Example:

generates:
  './src/schema.ts':
    plugins:
      - '@madsci/graphql-codegen-nestjs'
      - 'typescript-operations'

Configuration

Extends the typescript plugin so it supports all of the config parameters of that plugin, plus:

decoratorName

type: Partial

Allows the decorators for each type to be customised. Example:

config:
  decoratorName:
    type: 'ObjectType'
    interface: 'InterfaceType'
    arguments: 'ArgsType'
    field: 'Field'
    input: 'InputType'

FAQs

Package last updated on 11 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc