Releases: acro5piano/typed-graphqlify
Releases · acro5piano/typed-graphqlify
v3.0.0: Merge pull request #172 from acro5piano/feature/v3
⚠ 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
v2.4.5
- Support ESNext module export
- Update dependencies
v2.4.4
- library deps updates
v2.4.3
Dependency updates
v2.4.2: Merge pull request #116 from acro5piano/feature/auto-release
v2.4.1
- [Security] Bump lodash from 4.17.15 to 4.17.19 82be13e
v2.4.0
Allow render a single fragment by @kevinsimper
v2.3.0: Merge pull request #79 from acro5piano/2.3.0
- Array enum support by @acro5piano
- Make enum to accept both
ValueOf<T>
andkeyof T
by @acro5piano
v2.2.1: Fix rollup config: exluding 'tslib'
Merge pull request #63 from acro5piano/fix-tslib Fix rollup config: exluding 'tslib'
v2.2.0: Merge pull request #61 from acro5piano/2.2.0
union fragment support by @luvies