A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://graphql-dotnet.github.io/docs/migrations/migration2 below:

Migrating from v0.17.x to v2

Migrating from v0.17.x to v2 New Features Breaking Changes Dependency Injection

The 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)
{
  ...
}
DocumentWriter

The JsonSerializerSettings now use all default values. This was altered to support the changes to dates.

Dates

The DateGraphType has been split into multiple types. See the GitHub issue for more details.

Names

Fields, 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

SchemaPrinter now only ignores core GraphQL scalars by default. Those are String, Boolean, Int, Float, and ID. See the GitHub issue for more details.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4