
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
@coex/graphql-vercajk
Advanced tools
Collection of graphql tools
npm install @coexcz/graphql-vercajk
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
Create graphql-vercajk.config.mjs
based on graphql-vercajk.config.sample.mjs
And run demo:
yarn demo
FAQs
Collection of graphql tools
We found that @coex/graphql-vercajk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.