Skip to content

Commit d678568

Browse files
committed
add default value changes
1 parent 7e54331 commit d678568

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

website/docs/tutorials/whats-new-in-graphql-js-v17.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@
4242
- Changes to the `subscribe()` function:
4343
- `subscribe()` may now return a non-promise.
4444
- When a subscription root field errors, `subscribe()` now returns a well-formatted `GraphQLError` rather than throwing.
45-
- Properly type `IntrospectionType` using `TypeKind` Enum.
45+
- Changes to default values:
46+
- The `defaultValue` property of `GraphQLArgument` and `GraphQLInputField` is now of new type `GraphQLDefaultValueUsage`. A `GraphQLDefaultValueUsage` object contains either a `literal` property, which is as AST node representing the parsed default value included within the SDL, or a `value` property, the default value as specified programmatically.
47+
- Introspection now returns the exact original default value included within the SDL rather than attempting to "serialize" input values, avoiding some rare cases in which default values within an introspected schema could differ slightly from the original SDL (e.g. [#3501](https://github.com/graphql/graphql-js/issues/3051)).
48+
- Other Changes:
49+
- `IntrospectionType` is now properly typed using `TypeKind` Enum.
4650

4751
## Deprecations
4852

0 commit comments

Comments
 (0)