Socket
Book a DemoInstallSign in
Socket

@coex/graphql-vercajk

Package Overview
Dependencies
Maintainers
2
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coex/graphql-vercajk

Collection of graphql tools

latest
Source
npmnpm
Version
3.4.0
Version published
Maintainers
2
Created
Source

Graphql Vercajk

Collection of graphql tools

Installation

npm install @coexcz/graphql-vercajk

Usage

Create config file in your root directory:

graphql-vercajk.config.mjs

export default {
  apiUrl: 'https://api.example.com/graphql',
  headers: {
    'X-My-Header': 'my-header-value', // Can be use for specific headers if needed
  },
  operations: {
    outDir: 'src/generated/operations',
    constraintsDirectiveName: 'permissionsConstraints',
    // mutationPrefix: 'mutation',
    // queryPrefix: 'query',
  },
  inputs: {
    outDir: 'src/generated/inputs',
    fileNamePrefix: 'input',
    constraintsDirectiveName: 'fieldConstraints',
  },
  enums: {
    outDir: 'src/generated/enums',
    fileNamePrefix: 'enum',
    typesPath: '../types',
    // postfix: '',
    // isTranslatable: true,
  },
};

Add script to your package.json:

{
  "scripts": {
    "generate": "graphql-vercajk"
  }
}

Run script:

npm run generate

Development (this repository)

Create graphql-vercajk.config.mjs based on graphql-vercajk.config.sample.mjs

And run demo:

yarn demo

Keywords

graphql

FAQs

Package last updated on 14 Aug 2025

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