Compared with 16.8.1: `GraphQLScalarSerializer`, `GraphQLScalarValueParser`, `GraphQLScalarLiteralParser`, `valueFromAST`, `astFromValue`, and 26 more. 31 newly deprecated.
graphql 16.8.1 → 17.0.2: deprecates 31 API(s): from its source to your code
GraphQLScalarSerializer: Deprecated function type that serializes a runtime value as a scalar output value. Use `GraphQLScalarOutputValueCoercer` instead. Use GraphQLScalarOutputValueCoercer instead. Will be removed in v18.
GraphQLScalarValueParser: Deprecated function type that parses a runtime input value as a scalar input value. Use `GraphQLScalarInputValueCoercer` instead. Use GraphQLScalarInputValueCoercer instead. Will be removed in v18.
GraphQLScalarLiteralParser: Deprecated function type that parses a GraphQL value literal as a scalar input value. Use `GraphQLScalarInputLiteralCoercer` instead. Use GraphQLScalarInputLiteralCoercer instead. Will be removed in v18.
valueFromAST: Produces a JavaScript value given a GraphQL Value AST. A GraphQL type must be provided, which will be used to interpret different GraphQL Value literals. Returns `undefined` when the value could not be validly coerced according to the provided type. This deprecated function will be removed in v18. Use `coerceInputLiteral()` instead. | GraphQL Value | JSON Value | | -------------------- | ------------- | | Input Object | Object | | List | Array | | Boolean | Boolean | | String | String | | Int / Float | Number | | Enum Value | Unknown | | NullValue | null | use `coerceInputLiteral()` instead -
astFromValue: Produces a GraphQL Value AST given a JavaScript object. Function will match JavaScript/JSON values to GraphQL AST schema format by using suggested GraphQLInputType. A GraphQL type must be provided, which will be used to interpret different JavaScript values. This deprecated function will be removed in v18. Use `valueToLiteral()` instead, and take care to operate on external values. | JSON Value | GraphQL Value | | ------------- | -------------------- | | Object | Input Object | | Array | List | | Boolean | Boolean | | String | String / Enum Value | | Number | Int / Float | | BigInt | Int | | U
findBreakingChanges: Given two schemas, returns an Array containing descriptions of all the types of breaking changes covered by the other functions down below. This deprecated wrapper will be removed in v18; use `findSchemaChanges()` instead and filter for breaking changes. Please use `findSchemaChanges` instead. Will be removed in v18.
findDangerousChanges: Given two schemas, returns an Array containing descriptions of all the types of potentially dangerous changes covered by the other functions down below. This deprecated wrapper will be removed in v18; use `findSchemaChanges()` instead and filter for dangerous changes. Please use `findSchemaChanges` instead. Will be removed in v18.
GraphQLScalarType.serialize: Deprecated legacy serializer used to convert internal values for response output. Use `coerceOutputValue()` instead. use `coerceOutputValue()` instead, `serialize()` will be removed in v18
GraphQLScalarType.parseValue: Deprecated legacy parser used to convert externally provided input values. Use `coerceInputValue()` instead. use `coerceInputValue()` instead, `parseValue()` will be removed in v18
GraphQLScalarType.parseLiteral: Deprecated legacy parser used to convert externally provided input literals. Use `replaceVariables()` and `coerceInputLiteral()` instead. use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18
GraphQLEnumType.serialize: Serializes a runtime enum value as a GraphQL enum name. use `coerceOutputValue()` instead, `serialize()` will be removed in v18
GraphQLEnumType.parseValue: Deprecated legacy enum parser for externally provided input values. Use `coerceInputValue()` instead. use `coerceInputValue()` instead, `parseValue()` will be removed in v18
GraphQLEnumType.parseLiteral: Deprecated legacy enum parser for externally provided input literals. Use `coerceInputLiteral()` instead. use `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18
GraphQLInt.serialize: Deprecated legacy serializer used to convert internal values for response output. Use `coerceOutputValue()` instead. use `coerceOutputValue()` instead, `serialize()` will be removed in v18
GraphQLInt.parseValue: Deprecated legacy parser used to convert externally provided input values. Use `coerceInputValue()` instead. use `coerceInputValue()` instead, `parseValue()` will be removed in v18
GraphQLInt.parseLiteral: Deprecated legacy parser used to convert externally provided input literals. Use `replaceVariables()` and `coerceInputLiteral()` instead. use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18
GraphQLString.serialize: Deprecated legacy serializer used to convert internal values for response output. Use `coerceOutputValue()` instead. use `coerceOutputValue()` instead, `serialize()` will be removed in v18
GraphQLString.parseValue: Deprecated legacy parser used to convert externally provided input values. Use `coerceInputValue()` instead. use `coerceInputValue()` instead, `parseValue()` will be removed in v18
GraphQLString.parseLiteral: Deprecated legacy parser used to convert externally provided input literals. Use `replaceVariables()` and `coerceInputLiteral()` instead. use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18
GraphQLBoolean.serialize: Deprecated legacy serializer used to convert internal values for response output. Use `coerceOutputValue()` instead. use `coerceOutputValue()` instead, `serialize()` will be removed in v18
GraphQLBoolean.parseValue: Deprecated legacy parser used to convert externally provided input values. Use `coerceInputValue()` instead. use `coerceInputValue()` instead, `parseValue()` will be removed in v18
GraphQLBoolean.parseLiteral: Deprecated legacy parser used to convert externally provided input literals. Use `replaceVariables()` and `coerceInputLiteral()` instead. use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18
GraphQLArgument.defaultValue: Deprecated legacy default value used when no explicit value is supplied. Use `default` instead. use `default` instead, `defaultValue` will be removed in v18
GraphQLArgumentConfig.defaultValue: Deprecated legacy default value for this argument. Use `default` instead. use `default` instead, `defaultValue` will be removed in v18
GraphQLInputField.defaultValue: Deprecated legacy default value used when no explicit value is supplied. Use `default` instead. use `default` instead, `defaultValue` will be removed in v18
GraphQLInputFieldConfig.defaultValue: Deprecated legacy default value for this input field. Use `default` instead. use `default` instead, `defaultValue` will be removed in v18
GraphQLScalarTypeConfig.serialize: Deprecated legacy serializer used to convert internal values for response output. Use `coerceOutputValue()` instead. use `coerceOutputValue()` instead, `serialize()` will be removed in v18
GraphQLScalarTypeConfig.parseValue: Deprecated legacy parser used to convert externally provided input values. Use `coerceInputValue()` instead. use `coerceInputValue()` instead, `parseValue()` will be removed in v18
GraphQLScalarTypeConfig.parseLiteral: Deprecated legacy parser used to convert externally provided input literals. Use `replaceVariables()` and `coerceInputLiteral()` instead. use `replaceVariables()` and `coerceInputLiteral()` instead, `parseLiteral()` will be removed in v18
GraphQLError.originalError: Original error that caused this GraphQLError, if one exists. Deprecated in favor of `cause` to better align with JavaScript standards. Use `cause` instead.
GraphQLErrorOptions.originalError: Original error that caused this GraphQLError, if one exists. Deprecated in favor of `cause` to better align with JavaScript standards. Prefer `cause` instead.