Tag: asp.net-web-api
-
In graphQL, the first query always takes longer than the next query for the same query
0 I use GraphQL in my Net core application. I discovered that for the same query, the first query took quite a long time (about 1400ms). But when I query again, the time is only 20ms, the next time too. Why? This is my code [UseDbContext(typeof(StudentManagerContext))] public async Task<List<CourseType>> GetAllCourseUsingDataLoader([ScopedService] StudentManagerContext context) { var stopwatch…
-
How I can pass GraphQL header in ASP.NET Core 6?
0 I use ASP.NET Core to consume GraphQL API and everything working fine, just I need pass the header because I need to use Arabica language and I don’t know how I can pass it. So I need to change language to "ar" when header is passing. [HttpPost] public async Task<IActionResult> Tracking(string code) { var…