Build Typed GraphQL Queries in TypeScript without the code generation
MIT License
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
Breaking changes
query
, mutation
, subscription
are now top-level export by @acro5piano__params
with params
helper by @luviesquery
, 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 }, {
// ...
}),
})
Published by acro5piano almost 6 years ago
Published by acro5piano almost 6 years ago
Published by acro5piano almost 6 years ago
Published by acro5piano almost 6 years ago
Merge Pull Request https://github.com/acro5piano/typed-graphqlify/pull/31 by @mlegenhausen
Published by acro5piano almost 6 years ago
Published by acro5piano almost 6 years ago
Published by acro5piano almost 6 years ago
Published by acro5piano almost 6 years ago
Operation name becomes optional