Releases: Thinkmill/graphql-ts
@graphql-ts/[email protected]
Minor Changes
012d84e
Thanks @mitchellhamilton! - Addedexports
field
@graphql-ts/[email protected]
Minor Changes
012d84e
Thanks @mitchellhamilton! - Addedexports
field
Patch Changes
- Updated dependencies [
012d84e
]:- @graphql-ts/[email protected]
@graphql-ts/[email protected]
Patch Changes
-
3663690
Thanks @mitchellhamilton! - Fixed having a union ofArg
s where at least one is nullable without a default value not resulting in an inferred input type that includesundefined
in the union.graphql.field({ type: graphql.String, args: { something: graphql.arg({ type: Math.random() > 0.5 ? graphql.nonNull(graphql.String) : graphql.String }) }, resolve(source, { something }) { const previouslyIncorrectlyAllowedNowError: string | null = something; const correct: string | null | undefined = something; return ""; } });
@graphql-ts/[email protected]
Patch Changes
3e4909f
Thanks @mitchellhamilton! - FixedField<_, _, _, string, _>
not being assignable toField<_, _, _, "literal", _>
@graphql-ts/[email protected]
Patch Changes
-
ef18bba
Thanks @mitchellhamilton! - Added declaration maps -
65391d3
Thanks @mitchellhamilton! -graphql@16
is now allowed inpeerDependencies
@graphql-ts/[email protected]
Patch Changes
-
ef18bba
Thanks @mitchellhamilton! - Added declaration maps -
65391d3
Thanks @mitchellhamilton! -graphql@16
is now allowed inpeerDependencies
@graphql-ts/[email protected]
Minor Changes
5d1c299
Thanks @mitchellhamilton! - Type parameters namedRootVal
have been renamed toSource
and properties named__rootVal
have been renamed to__source
. This won't require code changes unless you've relied on the__rootVal
properties(which you shouldn't).
@graphql-ts/[email protected]
Minor Changes
-
5d1c299
Thanks @mitchellhamilton! - Type parameters namedRootVal
have been renamed toSource
and properties named__rootVal
have been renamed to__source
. This won't require code changes unless you've relied on the__rootVal
properties(which you shouldn't). -
232cec8
Thanks @mitchellhamilton! -BaseSchemaInfo
has been renamed toBaseSchemaMeta
@graphql-ts/[email protected]
Minor Changes
c92bf61
Thanks @mitchellhamilton! - An array of extensions can now be passed toextend
@graphql-ts/[email protected]
Minor Changes
910d1ed
Thanks @mitchellhamilton! - Replacedfields
property onInterfaceType
with__fields
that does not exist at runtime to align with other types
Patch Changes
6c85396
Thanks @mitchellhamilton! - Updated the definition ofgraphql.union
so that theContext
of theUnionType
returned and theContext
passed toresolveType
are determined by theContext
of thegraphql
object rather than a union of theContext
s of the union's member types.