You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application set up to use FSharp.Data.GraphQL - a pretty simple graphql API with the one endpoint, and a simple query. The key bit here is that the handler handleGraphQL gets a response back from the GraphQL executor, and then tries to serialize it into Json. However, the result is empty.
I've been able to break into the debugger to prove to myself that data (in the case for Direct (data, _)) is an IDictionary populated with the results of the query, and serializes to something reasonable by simply calling System.Text.Json.JsonSerializer.Serialize(data, jsonOptions):
However, where I complete the handler I call Response.ofJsonOptions jsonOptions data, and the resulting response is ....nothing at all.
I have an application set up to use
FSharp.Data.GraphQL
- a pretty simple graphql API with the one endpoint, and a simple query. The key bit here is that the handlerhandleGraphQL
gets a response back from the GraphQL executor, and then tries to serialize it into Json. However, the result is empty.I've been able to break into the debugger to prove to myself that
data
(in the case forDirect (data, _)
) is anIDictionary
populated with the results of the query, and serializes to something reasonable by simply callingSystem.Text.Json.JsonSerializer.Serialize(data, jsonOptions)
:However, where I complete the handler I call
Response.ofJsonOptions jsonOptions data
, and the resulting response is ....nothing at all.Any hints as to what might be going on there?
The text was updated successfully, but these errors were encountered: