typed-graphqlify

Build Typed GraphQL Queries in TypeScript without the code generation

MIT License

Downloads
36.9K
Stars
648
Committers
14
typed-graphqlify -

Published by acro5piano over 5 years ago

  • Fix function export by @acro5piano
typed-graphqlify - The first stable version of typed-graphqlify

Published by acro5piano over 5 years ago

I am really excited to release version 2.1.0, the first stable version of typed-graphqlify!

Thank you @luvies and all contributors! Your help have been greatly accelerating the development of this library!

Features

  • Fragment support by @luvies

Breaking changes

  • query, mutation, subscription are now top-level export by @acro5piano
  • Replace __params with params helper by @luvies

query, mutation, subscription are now top-level export

Before:

import { graphqlify } from 'typed-graphqlify'

graphqlify.query( //...

After:

import { query } from 'typed-graphqlify'

query( //...

params helper

Before:

import { graphqlify, query } from 'typed-graphqlify'

graphqlify.query({
  __params: { $input: 'UpdateUserInput' },
  updateUser: {
    __params: { input: $input },
   // ...
})

After:

import { params, query } from 'typed-graphqlify'

query(params({ $input: 'UpdateUserInput' }, {
  updateUser: params({ input: $input }, {
   // ...
  }),
})
typed-graphqlify -

Published by acro5piano over 5 years ago

typed-graphqlify -

Published by acro5piano over 5 years ago

typed-graphqlify -

Published by acro5piano over 5 years ago

typed-graphqlify -

Published by acro5piano over 5 years ago

typed-graphqlify - add npmignore

Published by acro5piano almost 6 years ago

typed-graphqlify - support custom scalar

Published by acro5piano almost 6 years ago

typed-graphqlify - support inline fragment

Published by acro5piano almost 6 years ago

typed-graphqlify - Support for nested params

Published by acro5piano almost 6 years ago

Merge Pull Request https://github.com/acro5piano/typed-graphqlify/pull/31 by @mlegenhausen

typed-graphqlify - Add type inference to query alias

Published by acro5piano almost 6 years ago

typed-graphqlify - add alias feature

Published by acro5piano almost 6 years ago

typed-graphqlify - delete type helper and fix readme

Published by acro5piano almost 6 years ago

typed-graphqlify - First launch of 2.0.x-alpha - Improvement of the API

Published by acro5piano almost 6 years ago

Operation name becomes optional

typed-graphqlify -

Published by acro5piano almost 6 years ago

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