Skip to content

Commit 79a442c

Browse files
committed
Set FSharp.SystemtextJson default settings as default for SchemaConfig
1 parent d2a5ba5 commit 79a442c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/FSharp.Data.GraphQL.Server/Schema.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ open System.Collections.Generic
1313
open System.Reactive.Linq
1414
open System.Reactive.Subjects
1515
open System.Text.Json
16+
open System.Text.Json.Serialization
1617

1718
type private Channel = ISubject<obj>
1819

@@ -135,7 +136,7 @@ type SchemaConfig =
135136
| ex -> [{ new IGQLError with member _.Message = ex.Message }]
136137
SubscriptionProvider = SchemaConfig.DefaultSubscriptionProvider()
137138
LiveFieldSubscriptionProvider = SchemaConfig.DefaultLiveFieldSubscriptionProvider()
138-
JsonOptions = JsonSerializerOptions.Default }
139+
JsonOptions = JsonFSharpOptions.Default().ToJsonSerializerOptions() }
139140
/// <summary>
140141
/// Default SchemaConfig with buffered stream support.
141142
/// This config modifies the stream directive to have two optional arguments: 'interval' and 'preferredBatchSize'.

0 commit comments

Comments
 (0)