NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #635 most downloaded on NuGet
GraphQL for .NET
Latest stable
8.8.5
Last release 3 months ago
18 Aug 2026
Release timing varies
gaps range from 2 weeks to 5 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
175 releases · first in 2015
Drag across the ruler to compare, or tap a release to open it.
Add DelegateFieldModelBinderResolver and associated FieldDelegate #380 via @Giorgi
DelegateFieldModelBinderResolver and associated FieldDelegate<TGraphType> #380 via @GiorgiResolveFieldContext.GetArgument which takes a Type #380 via @GiorgiToInputs(this JObject obj) via @joemcbrideFixes a bug introduced in 0.17.0 where error locations were not being properly serialized #371 via @bittercoder
Print "data" in result even if there are errors #366 via @drobertson123
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
- Add NoUndefinedVariables rule
Add VariablesInAllowedPosition validation rule
Fix issues when trying to cast between int/long in Argument
Change how types are registered - only register the root type, not every permutation
Fixes a bug with EnumerationGraphType and input variables
Fixes an issue with IdGraphType.
Fixes an issue with IdGraphType.
See the v0.8.0 upgrade guide for more information.
See the v0.8.0 upgrade guide for more information.
These language updates should allow the Validation feature to be completed.
The core language has been revamed to provide additional metadata such as line numbers and AST types.
These language updates should allow the Validation feature to be completed.
Add RegisterType and AdditionalTypes to ISchema
Add RegisterType and AdditionalTypes to ISchema
Updated FloatGraphType to use double instead of float to meet the GraphQL spec.
FloatGraphType to use double instead of float to meet the GraphQL spec.public class MySchema : Schema
{
public MySchema()
{
RegisterType<MyOtherType>();
RegisterTypes(typeof(MyOtherType), typeof(AnotherType));
}
}
Fix a regression with ofType in Introspection.
ofType in Introspection.Fix an issue where ofType on __Type in Introspection was not behaving properly.
ofType on __Type in Introspection was not behaving properly.Fix a threading issue with GraphTypesLookup.
Fix a threading issue with GraphTypesLookup.
type __EnumValue { name: String! description: String isDeprecated: String! deprecationReason: String }
Adds SchemaPrinter which prints the shorthand schema syntax for a given schema.
var printer = new SchemaPrinter(new StarWarsSchema(...));
Console.WriteLine(printer.Print());
enum Episode {
NEWHOPE
EMPIRE
JEDI
}
interface Character {
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
}
type Droid implements Character {
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
primaryFunction: String
}
type Human implements Character {
id: String!
name: String
friends: [Character]
appearsIn: [Episode]
homePlanet: String
}
type Query {
hero: Character
human(id: String!): Human
droid(id: String!): Droid
}
You can also print the shorthand for introspection.
var schema = new Schema
{
Query = new ObjectGraphType
{
Name = "Root"
}
};
var printer = new SchemaPrinter(schema);
Console.WriteLine(printer.PrintIntrospectionSchema());
enum __TypeKind {
SCALAR
OBJECT
INTERFACE
UNION
ENUM
INPUT_OBJECT
LIST
NON_NULL
}
type __Directive {
name: String!
description: String
args: [__InputValue!]!
onOperation: Boolean!
onFragment: Boolean!
onField: Boolean!
}
type __EnumValue {
name: String!
description: String
isDeprecated: String!
deprecationReason: String
}
type __Field {
name: String!
description: String
args: [__InputValue!]!
type: __Type!
isDeprecated: Boolean!
deprecationReason: String
}
type __InputValue {
name: String!
description: String
type: __Type!
defaultValue: String
}
type __Schema {
types: [__Type!]!
queryType: __Type!
mutationType: __Type
directives: [__Directive!]!
}
type __Type {
kind: __TypeKind!
name: String
description: String
fields(includeDeprecated: Boolean = false): [__Field!]
interfaces: [__Type!]
possibleTypes: [__Type!]
enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
inputFields: [__InputValue!]
ofType: __Type
}
Internalizes Newtonsoft types on DocumentWriter
Added support for deprecation of EnumerationGraphType members
GetArgument() wasn't using the FieldDefinition's default value for an argument correctly. Added method signature for using the FieldDefinition default, and one for overriding the valueConnectionType<T>, EdgeType<T> and PageInfoType implementations have been separated from their backing data objects. Improved and more consistent Relay-specific helper functions for these will be transitioned over to graphql-dotnet/conventionsGraphQL.Types.Relay namespacenew() constraint on connections and edgesResolveFieldContext in FieldBuilder and ConnectionBuilder (and consequently also the CancellationToken, etc.)DecimalGraphTypeEnumerationGraphType membersIdGraphType.Coerce()IntGraphType.Coerce() can now also deal with long integersGraphQLAbstractType now has a PossibleTypes property which is a list of graph types of all possible types that abstract type could be.
IsTypeOfGraphQLAbstractType now has a PossibleTypes property which is a list of graph types of all possible types that abstract type could be.PossibleTypes collection is populated on bootstrap of the Schema.IsTypeOf allows you to replace usages of ResolveType. It allows you to place the type check within the specific object graph type. This makes it so each interface or union type does not need to have a specific check for each of their possible types.
// old way with ResolveType
public class NamedType : InterfaceGraphType
{
public NamedType(DogType dogType, CatType catType, PersonType personType)
{
Name = "Named";
Field<StringGraphType>("name");
ResolveType = obj =>
{
if (obj is Dog)
{
return dogType;
}
if (obj is Cat)
{
return catType;
}
if (obj is Person)
{
return personType;
}
return null;
};
}
}
public class DogType : ObjectGraphType
{
public DogType()
{
Name = "Dog";
Field<StringGraphType>("name");
Field<BooleanGraphType>("barks");
Interface<NamedType>();
}
}
public class CatType : ObjectGraphType
{
public CatType()
{
Name = "Cat";
Field<StringGraphType>("name");
Field<BooleanGraphType>("meows");
Interface<NamedType>();
}
}
public class PetType : UnionGraphType
{
public PetType(DogType dogType, CatType catType)
{
Name = "Pet";
Type<DogType>();
Type<CatType>();
ResolveType = obj =>
{
if (obj is Dog)
{
return dogType;
}
if (obj is Cat)
{
return catType;
}
return null;
};
}
}
public class PersonType : ObjectGraphType
{
public PersonType()
{
Name = "Person";
Field<StringGraphType>("name");
Field<ListGraphType<PetType>>("pets");
Field<ListGraphType<NamedType>>("friends");
Interface<NamedType>();
}
}
// new way with IsTypeOf
public class NamedType : InterfaceGraphType
{
public NamedType()
{
Name = "Named";
Field<StringGraphType>("name");
}
}
public class DogType : ObjectGraphType
{
public DogType()
{
Name = "Dog";
Field<StringGraphType>("name");
Field<BooleanGraphType>("barks");
Interface<NamedType>();
IsTypeOf = value => value is Dog;
}
}
public class CatType : ObjectGraphType
{
public CatType()
{
Name = "Cat";
Field<StringGraphType>("name");
Field<BooleanGraphType>("meows");
Interface<NamedType>();
IsTypeOf = value => value is Cat;
}
}
public class PetType : UnionGraphType
{
public PetType()
{
Name = "Pet";
Type<DogType>();
Type<CatType>();
}
}
public class PersonType : ObjectGraphType
{
public PersonType()
{
Name = "Person";
Field<StringGraphType>("name");
Field<ListGraphType<PetType>>("pets");
Field<ListGraphType<NamedType>>("friends");
Interface<NamedType>();
IsTypeOf = value => value is Person;
}
}
Add GraphQLAbstractType which both interface and union types inherit from
Add additional fields to FieldResolveContext
- Lots of bug fixes. - Async - Mutations - Input objects - Skeleton of Relay connections - DateGraphType - ISchema interface
BREAKING CHANGE: The way field registration works has changed. Only Field registration is now supported. This was to support introspection.
Field<T> registration is now supported. This was to support introspection.Added @include/@skip directives
Updated to latest directives format
Nothing published for this version
Nothing published for this version
This release fixes a regression with Dates when used in inputs. #289 - thanks to @Ingr for reporting and @mamasselin @cstlaurent for fixing!
This release fixes a regression with Dates when used in inputs. #289 - thanks to @Ingr for reporting and @mamasselin @cstlaurent for fixing!
Add the ability to change how field names are converted (if at all). By default it should convert them as it is currently, with camelCase field names
CamelCaseFieldNameConverter. This can be changed by setting the FieldNameConverter property in the execution configuration.DocumentWriter no longer uses CamelCasePropertyNamesContractResolver.CamelCasePropertyNamesContractResolver, Aliases would get converted to camelCase. Aliases now do not get converted and will be returned exactly as they are requested.IFieldNameConverter - keep in mind that some field names, such as those used by introspection, need to remain camelCase for tools like GraphiQL to work.var result = await Executer.ExecuteAsync(_ =>
{
_.Schema = Schema;
_.Query = query;
_.FieldNameConverter = new PascalCaseFieldNameConverter();
});
Fix #252 - reuse of schema could cause stackoverflow with field middleware - @mxhammons
GetValue and ToDictionary public - @joemcbrideAdd DecimalValue to the AST and DecimalGraphType - @ManuelDeLeon
DecimalValue to the AST and DecimalGraphType - @ManuelDeLeonUpdate error messages for validating input variables - @jquense
Fix issue where a nullable enum type would return a default value instead of null
Nothing published for this version
Fixes an issue with array inference #243
The old ExecuteAsync with a ton of optional parameters will be deprecated in a future release.
Major release with lots of features and updates! Thanks to @tlil87 @jquense @dNetGuru @dlukez for their contributions.
ExecutionParameters overloads for ExecuteAsync. The old ExecuteAsync with a ton of optional parameters will be deprecated in a future release.var schema = new Schema { Query = new StarWarsQuery() };
var result = await new DocumentExecuter().ExecuteAsync( _ =>
{
_.Schema = schema;
_.Query = @"
query {
hero {
id
name
}
}
";
}).ConfigureAwait(false);
var json = new DocumentWriter(indent: true).Write(result);
InstrumentFieldsMiddleware field middlewarevar result = await _executer.ExecuteAsync(_ =>
{
_.FieldMiddleware.Use<InstrumentFieldsMiddleware>();
}).ConfigureAwait(false);
GraphTypesLookup more thread safeEnumerationGraphType<TEnum>ObjectGraphType<T>Add UserContext to DocumentExecutor
UserContext to DocumentExecutorDocument to ResolveFieldContextDateTime input valuesfloat and decimal for property expressionsField(x => x.AFloat);
Field(x => x.ADecimal);
This release upgrades GraphQL-Parser to 2.0 and downgrades the project to Net Standard 1.1.
This release upgrades GraphQL-Parser to 2.0 and downgrades the project to Net Standard 1.1.
Many thanks to @jquense, @kamil-mrzyglod, @holm0563, @cdroulers, @randyridge
Official 0.12 release!
Many thanks to @jquense, @kamil-mrzyglod, @holm0563, @cdroulers, @randyridge
This release adds a new lexer and parser for the GraphQL language. The AntlrDocumentBuilder is now deprecated in favor of the GraphQLDocumentBuilder.…
GraphQL.Language to GraphQL.Language.AST.Add provided non-null arguments validation rule
Add known argument names validation rule
Fix validation check for non-null input types
Nuget package structure has changed - the DLLs now reside in a net45 folder
You can download a nuget for new builds via AppVeyor Artifacts tab: https://ci.appveyor.com/project/graphql-dotnet-ci/graphql-dotnet/history
Or the AppVeyor nuget feed: https://ci.appveyor.com/nuget/graphql-dotnet
Nothing published for this version
One column per quarter.