
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
@zbanx/graphql-gen
Advanced tools
Generate TypeScript types from GraphQL schema.
Note: This tool only convert
OBJECT,INPUT_OBJECTandENUM.
Install:
pnpm i @zbanx/graphql-gen
Create a config file ./graphql-gen.yaml:
# shared type mapping for all endpoints
typeMapping:
ID: 'number'
Int: 'number'
String: 'string'
Boolean: 'boolean'
Cursor: 'string'
# array of endpoints
# endpoint: where to fetch schema
# output: where to save generated file (relative to the config file)
# namesOutput: (optional) where to save the query and mutation names (relative to the config file)
# comment: (optional) comment to be added at the top of the file (string or array of string)
# headers: (optional) the http request headers to set on fetching schema
# headersYaml: (optional) external header config file (will override the headers)
# printHeaders: (optional) print headers in the console
# typeMapping: (optional) extra type mapping (override the shared one)
endpoints:
- endpoint: https://www.exmaple.com/graphql
output: ./types/graphql.ts
comment: 'This file was automatically generated and should not be edited.'
headers: {}
headersYaml: ./headers.yaml
printHeaders: false
typeMapping:`
Time: 'string'
Run the command:
npx graphql-gen --config graphql-gen.yaml
FAQs
Unknown package
The npm package @zbanx/graphql-gen receives a total of 0 weekly downloads. As such, @zbanx/graphql-gen popularity was classified as not popular.
We found that @zbanx/graphql-gen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.