![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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
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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.