typed-graphqlify

Build Typed GraphQL Queries in TypeScript without the code generation

MIT License

Downloads
36.9K
Stars
648
Committers
14
typed-graphqlify - v3.1.6 Latest Release

Published by acro5piano over 2 years ago

typed-graphqlify - v3.1.5

Published by acro5piano over 2 years ago

New Features

New Contributors

Full Changelog: https://github.com/acro5piano/typed-graphqlify/compare/v3.1.4...v3.1.5

typed-graphqlify -

Published by acro5piano about 3 years ago

  • Update deps by @acro5piano
typed-graphqlify -

Published by acro5piano over 3 years ago

  • Reduce package installation size
typed-graphqlify -

Published by acro5piano over 3 years ago

  • Update deps by @acro5piano
typed-graphqlify -

Published by acro5piano over 3 years ago

  • Keep comments in compiled code by @acro5piano
typed-graphqlify -

Published by acro5piano almost 4 years ago

  • Parameter Arrays #209 by @alewgbl
typed-graphqlify -

Published by acro5piano almost 4 years ago

  • Bump deps by @acro5piano
typed-graphqlify -

Published by acro5piano almost 4 years ago

  • Add QueryObject and CompiledResult to index.ts by @GSA05
  • Bump deps by @acro5piano
typed-graphqlify -

Published by acro5piano almost 4 years ago

typed-graphqlify -

Published by acro5piano almost 4 years ago

⚠ Breaking: query, mutation, subscription now returns CompiledResult (not returns GraphQL string).

interface CompiledResult<D, V> {
  toString: () => string
  data: D
  variable: V
  result: { data: D }
}

Migration Guide

2.x

const queryObject = {
  user: {
    id: types.number,
    name: types.string,
    bankAccount: {
      id: types.number,
      branch: types.string,
    },
  },
}

const queryString = query('GetUser', queryObject)

type Result = typeof queryObject

3.x

const q = query('GetUser', {
  user: {
    id: types.number,
    name: types.string,
    bankAccount: {
      id: types.number,
      branch: types.string,
    },
  },
})

const queryString = q.toString()

type Result = typeof q.data
typed-graphqlify -

Published by acro5piano about 4 years ago

  • Support ESNext module export
  • Update dependencies
typed-graphqlify -

Published by acro5piano about 4 years ago

  • library deps updates
typed-graphqlify -

Published by acro5piano about 4 years ago

Dependency updates

typed-graphqlify -

Published by acro5piano about 4 years ago

  • Bump deps by @acro5piano
typed-graphqlify -

Published by acro5piano over 4 years ago

  • [Security] Bump lodash from 4.17.15 to 4.17.19 82be13e

https://github.com/acro5piano/typed-graphqlify/compare/v2.4.0...v2.4.1

typed-graphqlify -

Published by acro5piano over 4 years ago

Allow render a single fragment by @kevinsimper

typed-graphqlify -

Published by acro5piano over 4 years ago

  • Array enum support by @acro5piano
  • Make enum to accept both ValueOf<T> and keyof T by @acro5piano
typed-graphqlify - v2.2.1: Fix rollup config: exluding 'tslib'

Published by acro5piano over 5 years ago

typed-graphqlify -

Published by acro5piano over 5 years ago

union fragment support by @luvies

Package Rankings
Top 2.3% on Npmjs.org
Badges
Extracted from project README
npm version codecov