Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
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 0 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.