Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
prisma-nestjs-graphql-resource-generator
Advanced tools
Generates crud resources (resolver,service,module,test-files) for a prisma, nestjs, graphql setup
Generates crud resources (resolver,service,module,test-files) for a prisma, nestjs, graphql setup
npm i -D prisma-nestjs-graphql-resource-generator
...
generator jsonSchema {
provider = "prisma-json-schema-generator"
output = "./generated/"
}
...
npx prisma generate
you should decide on a folder you want to place the resource-files in, i will call mine models
models.module.ts
file has to be created including somewhat like:import { Module } from '@nestjs/common';
@Module({
imports: [],
exports: [],
})
export class ModelsModule {}
npx gm models/person
to generate only one resource, here the person resourcenpx gmall
to generate all prisma models that haven't been generated yet. Here the folder must be named models
and the folder must be a direct subfolder of src
.src
|
|-models <== creation of this one is in your responsibility
|
|- models.module.ts <== creation of this one is in your responsibility, it's name must be "models.module.ts"
|
|- person <== first generated crud resource folder
|
|- person.module.ts
|- person.resolver.spec.ts
|- person.resolver.ts
|- person.service.spec.ts
|- person.service.ts
|
|- address <== second generated crud resource folder
|
|- address.module.ts
|- address.resolver.spec.ts
|- address.resolver.ts
|- address.service.spec.ts
|- address.service.ts
|
...
FAQs
Generates crud resources (resolver,service,module,test-files) for a prisma, nestjs, graphql setup
The npm package prisma-nestjs-graphql-resource-generator receives a total of 2 weekly downloads. As such, prisma-nestjs-graphql-resource-generator popularity was classified as not popular.
We found that prisma-nestjs-graphql-resource-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.