1.0.1-0 • Published 3 years ago

codegen-graphql-scalar-locations v1.0.1-0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Code gen scalar locations

This is a plugin for Codegen which finds custom scalars in your schema and outputs a spanning tree of their positions in 1. argument types and 2. query and mutation results

This information can be used for instance to serialize/deserialize the custom scalars with urql-serialize-scalars-exchange

Usage

Add as dev dependency, and configure in your codegen.yml:

overwrite: true
schema: "schema/schema.graphql"
generates:
  ./src/queries/scalarLocations.ts:
    plugins:
      - graphql-scalar-locations
    config:
      scalars: 
        - Json
        - NaiveDateTime
        - Date

See doc for urql-serialize-scalars-exchange on how to use it in this exchange.

1.0.1-0

3 years ago

1.0.0-0

3 years ago

0.1.2-alpha.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago