Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-codegen-sqlmancer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-codegen-sqlmancer

GraphQL Code Generator plugin for generating TypeScript types for Sqlmancer

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Sqlmancer

Conjure SQL from your GraphQL queries 🧙🔮✨

This is a Graphql Code Generator plugin for generating types for Sqlmancer.

Installation

npm install --save-dev @graphql-codegen/cli typescript-sqlmancer

Usage

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

Configuration

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 and typescript-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

Package last updated on 18 May 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc