
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
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 3 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.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.