@nestjs/schematics
Advanced tools
Comparing version 7.1.0 to 7.1.1
@@ -1,4 +0,7 @@ | ||
<% if (type === 'graphql-code-first') { %>import { InputType } from '@nestjs/graphql'; | ||
<% if (type === 'graphql-code-first') { %>import { InputType, Int, Field } from '@nestjs/graphql'; | ||
@InputType() | ||
export class Create<%= singular(classify(name)) %>Input {}<% } else { %>export class Create<%= singular(classify(name)) %>Input {}<% } %> | ||
export class Create<%= singular(classify(name)) %>Input { | ||
@Field(() => Int, { description: 'Example field (placeholder)' }) | ||
exampleField: number; | ||
}<% } else { %>export class Create<%= singular(classify(name)) %>Input {}<% } %> |
@@ -1,4 +0,7 @@ | ||
<% if (type === 'graphql-code-first') { %>import { ObjectType } from '@nestjs/graphql'; | ||
<% if (type === 'graphql-code-first') { %>import { ObjectType, Field, Int } from '@nestjs/graphql'; | ||
@ObjectType() | ||
export class <%= singular(classify(name)) %> {}<% } else { %>export class <%= singular(classify(name)) %> {}<% } %> | ||
export class <%= singular(classify(name)) %> { | ||
@Field(() => Int, { description: 'Example field (placeholder)' }) | ||
exampleField: number; | ||
}<% } else { %>export class <%= singular(classify(name)) %> {}<% } %> |
{ | ||
"name": "@nestjs/schematics", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "Nest - modern, fast, powerful node.js web framework (@schematics)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176991
4098