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
Copy file name to clipboardExpand all lines: src/FSharp.Data.GraphQL.Server.Relay/Connections.fs
+7-11Lines changed: 7 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -114,8 +114,6 @@ type SliceInfo<'Cursor> =
114
114
115
115
[<AutoOpen>]
116
116
moduleDefinitions =
117
-
let inlineprivatenullableOutput(innerDef :#OutputDef<'Val>):OutputDef<'Valoption>=
118
-
Nullable (innerDef :> OutputDef<'Val>)
119
117
120
118
/// <summary>
121
119
/// Active pattern that extracts Relay pagination arguments from a GraphQL field context.
@@ -161,13 +159,13 @@ module Definitions =
161
159
)
162
160
Define.AsyncField (
163
161
"startCursor",
164
-
nullableOutput StringType,
162
+
Nullable StringType,
165
163
"When paginating backwards, the cursor to continue.",
166
164
fun _ pageInfo -> pageInfo.StartCursor
167
165
)
168
166
Define.AsyncField (
169
167
"endCursor",
170
-
nullableOutput StringType,
168
+
Nullable StringType,
171
169
"When paginating forwards, the cursor to continue.",
172
170
fun _ pageInfo -> pageInfo.EndCursor
173
171
)
@@ -227,7 +225,7 @@ module Definitions =
227
225
fields =[
228
226
Define.AsyncField (
229
227
"totalCount",
230
-
nullableOutput IntType,
228
+
Nullable IntType,
231
229
"""A count of the total number of objects in this connection, ignoring pagination. This allows a client to fetch the first five objects by passing \"5\" as the argument to `first`, then fetch the total count so it could display \"5 of 83\", for example. In cases where we employ infinite scrolling or don't have an exact count of entries, this field will return `null`.""",
232
230
fun _ conn -> conn.TotalCount
233
231
)
@@ -278,8 +276,6 @@ module Edge =
278
276
279
277
[<RequireQualifiedAccess>]
280
278
moduleConnection =
281
-
let inlineprivatenullableInput(innerDef :#InputDef<'Val>):InputDef<'Valoption>=
282
-
Nullable (innerDef :> InputDef<'Val>)
283
279
284
280
/// <summary>
285
281
/// Transforms a <seecref="Connection{T}"/> into a <seecref="Connection{U}"/>
@@ -308,8 +304,8 @@ module Connection =
308
304
/// <seealsocref="backwardArgs"/>
309
305
/// <seealsocref="allArgs"/>
310
306
letforwardArgs=
311
-
[ Define.Input ("first",nullableInput IntType)
312
-
Define.Input ("after",nullableInput StringType)]
307
+
[ Define.Input ("first",Nullable IntType)
308
+
Define.Input ("after",Nullable StringType)]
313
309
314
310
/// <summary>
315
311
/// Argument definitions for backward pagination ("last" and "before").
@@ -318,8 +314,8 @@ module Connection =
318
314
/// <seealsocref="forwardArgs"/>
319
315
/// <seealsocref="allArgs"/>
320
316
letbackwardArgs=
321
-
[ Define.Input ("last",nullableInput IntType)
322
-
Define.Input ("before",nullableInput StringType)]
317
+
[ Define.Input ("last",Nullable IntType)
318
+
Define.Input ("before",Nullable StringType)]
323
319
324
320
/// <summary>
325
321
/// Complete set of argument definitions for bidirectional pagination.
0 commit comments