Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
[ExtendObjectType("Query")]
public class SharedQueries
{
[Parallel] //not working
[UseProjection]
[GraphQLDescription("бүх академик түвшний жагсаалт")]
[GraphQLName("academicLevels")]
public IQueryable<TbTpAcademiclevel> GetAcademiclevels(
[Service] SisiDBContext dbContext) =>
dbContext.TbTpAcademiclevels;
[UseFirstOrDefault] //not working
[UseProjection]
[GraphQLDescription("академик түвшин")]
[GraphQLName("academicLevelByID")]
public IQueryable<TbTpAcademiclevel> GetAcademiclevelByIdAsync(
byte id,
[Service] SisiDBContext dbContext) =>
dbContext.TbTpAcademiclevels.Where(a => a.RecNr == id);
[UseProjection]
[GraphQLDescription("Хичээлийн жил")]
[GraphQLName("academicYears")]
public IQueryable<TbAcademicYear> GetAcademicYears([Service] SharedRepository sharedRepository)
{
return sharedRepository.GetAcademicYears();
}
}
ExtendObjectType:
[ExtendObjectType(typeof(TbTpAcademiclevel))]
public class TbTpAcademiclevelDetails
{
[Serial] //not working
[GraphQLName("test1")]
public string GetTest1(
[Parent] TbTpAcademiclevel academiclevel)
{
return academiclevel.Alevelm + " test1";
}
[Serial] //not working
[GraphQLName("test2")]
public string GetTest2(
[Parent] TbTpAcademiclevel academiclevel)
{
return academiclevel.Alevel + " test2";
}
}
[ExtendObjectType(typeof(TbTpAcademiclevel))][Serial] is not working
When i use .ModifyOptions(o => o.DefaultResolverStrategy = ExecutionStrategy.Serial)SharedQueries's all queries strategy is Serial. But [Parallel] strategy is not working.
[UseFirstOrDefault] isn't work v12-preview.16 when I use Mssql in Parallel strategy
[x] [ExtendObjectType(typeof(TbTpAcademiclevel))] [Serial] is not working
[x] When i use .ModifyOptions(o => o.DefaultResolverStrategy = ExecutionStrategy.Serial) SharedQueries's all queries strategy is Serial. But [Parallel] strategy is not working.
Startup:
Query:
ExtendObjectType:
[ExtendObjectType(typeof(TbTpAcademiclevel))]
[Serial] is not working.ModifyOptions(o => o.DefaultResolverStrategy = ExecutionStrategy.Serial)
SharedQueries's all queries strategy is Serial. But [Parallel] strategy is not working.[UseFirstOrDefault]
isn't work v12-preview.16 when I use Mssql in Parallel strategy