Hot Chocolate v12.0.0 Release Notes
-
Hot Chocolate
๐ ###### Fixes
- Custom type inspectors can now again add custom ignores. #3399
- ๐ Fixed issue where descriptor attributes on resolvers were ignored. (#3892)
- ๐ Fixed that the socket interceptor
OnCloseAsync
method was not invoked. (#3951) - ๐ Fixed MongoDB
totalCount
handling (#3880). - ๐ Fixed handling of enums that contain underscore. (#4056)
- ๐ Fixed ignoring fields with
ObjectTypeExtensions.Ignore
. (#4034) - ๐ Fixed issue with socket session interceptor dependency injection. (#4055)
- ๐ Fixed issue to allow ignoring enum values. (#4020)
- ๐ Fixed override of resolver pipeline in operation optimizers. (#4128)
- ๐ Fixed enum default values. (#4129)
- ๐ Fixed initialization of default values. (#4156)
- ๐ Fixed the variable coercion when variable values are omitted. #4103
- ๐ Fixed spatial MultiLine, MultiPolygon, MultiPoint parsing
- โ Added various catches to prevent unobserved task exceptions on Subscriptions. #4052
- ๐ Allow upcast when extending types and injecting the parent (#4159)
โจ Enhancements
- ๐ Allow Resolver Inlining (#3700)
- Introduced Query Plans (#3674)
- Introduced Serial Resolvers (#3674, #3837, #3882)
- Neo4J Data Integration (#2849)
- ๐ Allow control over type attribute inheritance (#3886).
- โ Added support for abstract projections. (#3650)
- Introduced non-cachable document validation rules. (#3884)
- โ Added type converter for relay global ID to HotChocolate.Data. (#3917)
- ๐ง Introduced new low-level type configuration API for dynamic schemas.
- โ Added better descriptions to cursor paging fields and arguments. (#4000)
- โ Added better descriptions to node fields and arguments. (#4000)
- Introduced nodes field. (#4000)
- Introduced field middleware order validation for HotChocolate.Data and paging middleware (#4012).
- Introduced
AggregateError
to allow rewriting a single error into multiple errors. (#4014) - โจ Enhanced error handling for variables to better pinpoint the actual error. (#4037)
- โ Added
RequestContext
pooling. (#4141) - Reworked schema-first APIs to align with code-first APIs.
- โ Added support for
HotChocolate.Data
and paging attributes to schema-first. - โ Added more
ResolveWith
overloads. (#4136). - โ Added queryable extension methods for
HotChocolate.Data
. (#4156) - โ Added the ability to compile resolver argument injections for the resolver compiler.
- โ Added a new runtime-type validation to debug errors better when types are leaked by accident into the type initialization.
- Opened up MongoDB API for external use. (#4119)
- โ Added
ObjectID
scalar type for MongoDB. - โ Added more endpoint configuration methods to more fine-grained configure into what transport spec the server supports.
- โ Added support for named type references.
- โ Added support for type modules.
- โ Added support for injecting types in type interceptor.
- โ Added more options to build types that depend on not yet existing types for extensions like
HotChocolate.Data
andHotChocolate.Stitching
. - ๐ Improved schema initialization.
- Introduced option to require paging boundaries #4074
- โ Add more capabilities to control how the connection name is created #4081
- โ Added support for attributes to schema-first #4102
- โ Added the ability to control the XML documentation file name when inferring documentation from the runtime types. (#4149)
- โ Added a unified cache to DataLoader.
Changed
- 0๏ธโฃ Reworked scalar defaults for URL and UUID. (#3822)
- Reworked dependency injection of Hot Chocolate extensions to automatically inject application dependencies. (#3833)
- ๐ Deprecated
Schema.Create
. (#3885) - ๐ Deprecated ObjectFieldDescriptor.Resolver() overloads.
- ๐ง Split the
EnableRelaySupport
configuration method into two separate APIs that allow to opt-into specific relay schema features. (#3972) - ๐ Moved DataLoader code out of
HotChocolate.Types
intoGreenDonut
. (#4015) - โก๏ธ Optimized subscription message receive handler. (#4143)
- ๐ Improved execution of batches during processing.
- ๐ Improved async work processing (#4006)
Strawberry Shake
๐ Fixed
- Made GUID serialization more robust. (#3843)
- ๐ Fix UrlSerializer for absolute URLs #3875
Banana Cake Pop
โจ Enhancements
- โ Added the capability to filter types in the schema reference.
- โ Added IntelliSense for variables.
- We now add
https
as a scheme when you type the url without schema in the endpoint field. - โก๏ธ Optimized component code splitting for better load times
- ๐ Fixed shortcut label texts for Windows and Linux