
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
graphql-codegen-sqlmancer
Advanced tools
GraphQL Code Generator plugin for generating TypeScript types for Sqlmancer
This is a Graphql Code Generator plugin for generating types for Sqlmancer.
npm install --save-dev @graphql-codegen/cli typescript-sqlmancer
Add a codegen.yml
configuration file and point it to your type definitions:
schema: src/**/*.graphql
generates:
path/to/file.ts:
plugins:
- graphql-codegen-sqlmancer
Then run the CLI command:
npx graphql-codegen
The plugin generates both a SqlmancerClient
type to be used with Sqlmancer, as well as type definitions to be used in your resolvers. This plugin uses the @graphql-codegen/typescript
and @graphql-codegen/typescript-resolvers
under the hood to generate the resolver types. You can skip generating these types by setting withResolvers
to false.
schema: src/**/*.graphql
generates:
path/to/file.ts:
plugins:
- graphql-codegen-sqlmancer
config:
withResolvers: false
NOTE: The plugin will compile your schema, including all transformations applied by Sqlmancer directives, before passing it to the
typescript
andtypescript-resolvers
plugins. These other plugins should not be used in addition to the Sqlmancer plugin -- doing so may result in the generator output not reflecting the final schema.
FAQs
GraphQL Code Generator plugin for generating TypeScript types for Sqlmancer
The npm package graphql-codegen-sqlmancer receives a total of 1 weekly downloads. As such, graphql-codegen-sqlmancer popularity was classified as not popular.
We found that graphql-codegen-sqlmancer 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.