dataloader-dotnet
dataloader-dotnet copied to clipboard
Code sample not working with Sql Server
I've changed this to optionsBuilder.UseSqlServer("<connection string>")
(and installed the appropriate nuget packages).
This works:
{
"query": "query { episodes { name } }"
}
This doesn't:
{
"query": "query { episodes { name characters { name } } }"
}
All queries that use dataloader do not work. The request just hangs there, seemingly stuck in an infinite loop... could it be something related to async/await?
Debugging the code, it seems the task returned by LoadAsync never gets completed.
P.s. As an aside, InitTestData()
fails because it tries to insert ids with identity insert off.
I don't think this has anything to do with SQL Server. Any queries that use more than one call to LoadAsync just hang.