Socket
Socket
Sign inDemoInstall

asa-graphql-ts-typed-document

Package Overview
Dependencies
194
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    asa-graphql-ts-typed-document

POC graphql-code-generator plugin for typed documents. Forked from https://github.com/dotansimha/graphql-code-generator


Version published
Weekly downloads
2
increased by100%
Maintainers
5
Created
Weekly downloads
 

Changelog

Source

4.0.0

  • downstream consumers can't pick which to pick, removing type: module.

Readme

Source

asa-graphql-ts-typed-document

CI

POC graphql-code-generator plugin for typed documents

This repo was forked from: https://github.com/dotansimha/graphql-code-generator/tree/master/packages/plugins/typescript/typed-document-node From commit 295382a150b73b58ccba754d03f2d1cfa11fae1c

The point of this fork is to add the ability to specify a fragmentImportsSourceMap config object, which provides a map of fragment name to filepath, thereby informing where to import types for each external fragment. For example:

{
  fragmentImportsSourceMap: {
    UserFragment: './fragments/_user-fragment.graphql'
  }
}

See the tests for behavior: https://github.com/asa-graphql-codegen/asa-graphql-ts-typed-document/blob/069cac5881fafa7f043d4e9a558344e887ac49ee/tests/typed-document-node.spec.ts#L149

FAQs

Last updated on 06 Jun 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc