docs2/site/docs/migrations/migration2.md
SchemaBuilder that supports GraphQL schema language. detailsnull keywordIDependencyResolver for dependency injection - detailsThrowOnUnhandledException to ExecutionOptions. detailsGraphQLTypeReference from ResolveType detailsThe func that was previously used for dependency injection has been replaced by the IDependencyResolver interface. Use FuncDependencyResolver to help integrate with containers. See the Dependency Injection documentation for more details.
[Obsolete]
public Schema(Func<Type, IGraphType> resolveType)
: this(new FuncDependencyResolver(resolveType))
{
}
public Schema(IDependencyResolver dependencyResolver)
{
...
}
The JsonSerializerSettings now use all default values. This was altered to support the changes to dates.
The DateGraphType has been split into multiple types. See the GitHub issue for more details.
DateGraphType - A date with no time.
Date2018-05-17 (ISO8601 compliant).System.DateTimeGraphTypeRegistry as the default representation of System.DateTime.DateTimeGraphType - A date and time.
DateTime2018-05-17T12:11:06.3684072Z (ISO8601 compliant).System.DateTimeDateTimeOffsetGraphType - A date and time with an offset.
DateTimeOffset2018-05-17T13:11:06.368408+01:00 (ISO8601 compliant).System.DateTimeOffsetGraphTypeRegistry as the default representation of System.DateTimeOffset.TimeSpanSecondsGraphType - A period of time as seconds.
Seconds10System.TimeSpanGraphTypeRegistry as the default representation of System.TimeSpan.TimeSpanMillisecondsGraphType - A period of time as milliseconds.
Milliseconds100System.TimeSpanFields, enumerations, and arguments all now have their names validated according to the GraphQL spec, which is /[_A-Za-z][_0-9A-Za-z]*/.
QueryArgument names are now run through the IFieldNameConverter set on the Schema.
SchemaPrinter now only ignores core GraphQL scalars by default. Those are String, Boolean, Int, Float, and ID. See the GitHub issue for more details.