Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
graphql-codegen-typescript-operation-types
Advanced tools
Readme
This graphql-codegen plugin generates the base TypeScript types used in the graphql operations.
Intended as a drop in replacement for the typescript plugin but only generates the input, enums, and object types
utilized in the graphql operations. Use one of @graphql-codegen/typescript
or graphql-codegen-typescript-operation-types
, not both. This plugin uses the underlying typescript plugin but only outputs used types.
The types generated by this plugin are simple, and refers to the exact structure of your schema.
This plugin is best used in conjunction with the typescript-operations plugin with preResolveTypes: true
and setting
omitObjectTypes: true
. In this configuration this plugin will emit only the enum and input types used in the graphql
mutations or queries.
All scalar types are always emitted.
Types only
overwrite: true
schema: 'path/to/schema.gql'
generates:
path/to/file.ts:
documents: 'path/to/gql/**/*.graphql'
plugins:
- graphql-codegen-typescript-operation-types
config:
omitObjectTypes: true
Types and fragments
overwrite: true
schema: 'path/to/schema.gql'
generates:
path/to/file.ts:
documents: 'path/to/gql/**/*.graphql'
config:
omitObjectTypes: true
preResolveTypes: true
plugins:
- graphql-codegen-typescript-operation-types
- typescript-operations
FAQs
GraphQL codegen plugin that generates only the types used in the operations
The npm package graphql-codegen-typescript-operation-types receives a total of 13,547 weekly downloads. As such, graphql-codegen-typescript-operation-types popularity was classified as popular.
We found that graphql-codegen-typescript-operation-types demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.