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.Client/FSharp.Data.GraphQL.Client.fsproj
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@
109
109
</Reference>
110
110
</ItemGroup>
111
111
</When>
112
-
<WhenCondition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1')">
112
+
<WhenCondition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2')">
Copy file name to clipboardExpand all lines: src/FSharp.Data.GraphQL.Relay/Connections.fs
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -54,12 +54,12 @@ module Definitions =
54
54
letPageInfo= Define.Object<PageInfo>(
55
55
name ="PageInfo",
56
56
description ="Information about pagination in a connection.",
57
-
fields =[
57
+
fields =[|
58
58
Define.Field("hasNextPage", Boolean,"When paginating forwards, are there more items?",fun _ pageInfo -> pageInfo.HasNextPage)
59
59
Define.Field("hasPreviousPage", Boolean,"When paginating backwards, are there more items?",fun _ pageInfo -> pageInfo.HasPreviousPage)
60
60
Define.Field("startCursor", Nullable String,"When paginating backwards, the cursor to continue.",fun _ pageInfo -> pageInfo.StartCursor)
61
61
Define.Field("endCursor", Nullable String,"When paginating forwards, the cursor to continue.",fun _ pageInfo -> pageInfo.EndCursor)
62
-
])
62
+
|])
63
63
64
64
/// Converts existing output type defintion into an edge in a Relay connection.
65
65
/// <paramrefname="nodeType"/> must not be a List.
@@ -70,9 +70,9 @@ module Definitions =
70
70
Define.Object<Edge<'Node>>(
71
71
name = n.Name +"Edge",
72
72
description ="An edge in a connection from an object to another object of type "+ n.Name,
73
-
fields =[
73
+
fields =[|
74
74
Define.Field("cursor", String,"A cursor for use in pagination",fun _ edge -> edge.Cursor)
75
-
Define.Field("node", nodeType,"The item at the end of the edge. Must NOT be an enumerable collection.",fun _ edge -> edge.Node)])
75
+
Define.Field("node", nodeType,"The item at the end of the edge. Must NOT be an enumerable collection.",fun _ edge -> edge.Node)|])
76
76
77
77
/// Converts existing output type definition into Relay-compatible connection.
78
78
/// <paramrefname="nodeType"/> must not be a List.
@@ -81,23 +81,23 @@ module Definitions =
81
81
Define.Object<Connection<'Node>>(
82
82
name = n.Name +"Connection",
83
83
description ="A connection from an object to a list of objects of type "+ n.Name,
84
-
fields =[
84
+
fields =[|
85
85
Define.Field("totalCount", Nullable Int,"""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`.""",fun _ conn -> conn.TotalCount)
86
86
Define.Field("pageInfo", PageInfo,"Information to aid in pagination.",fun _ conn -> conn.PageInfo)
87
-
Define.Field("edges", ListOf(EdgeOf nodeType),"Information to aid in pagination.",fun _ conn -> conn.Edges)])
87
+
Define.Field("edges", ListOf(EdgeOf nodeType),"Information to aid in pagination.",fun _ conn -> conn.Edges)|])
88
88
89
89
[<RequireQualifiedAccess>]
90
90
moduleConnection =
91
91
92
-
letforwardArgs=[
92
+
letforwardArgs=[|
93
93
Define.Input("first", Nullable Int)
94
-
Define.Input("after", Nullable String)]
94
+
Define.Input("after", Nullable String)|]
95
95
96
-
letbackwardArgs=[
96
+
letbackwardArgs=[|
97
97
Define.Input("last", Nullable Int)
98
-
Define.Input("before", Nullable String)]
98
+
Define.Input("before", Nullable String)|]
99
99
100
-
letallArgs=forwardArgs @ backwardArgs
100
+
letallArgs=Array.append forwardArgs backwardArgs
101
101
102
102
letofArraySlice meta (SliceInfo args)(array:'t [])=
Copy file name to clipboardExpand all lines: src/FSharp.Data.GraphQL.Relay/FSharp.Data.GraphQL.Relay.fsproj
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,4 +78,25 @@
78
78
<Target Name="AfterBuild">
79
79
</Target>
80
80
-->
81
+
<Choose>
82
+
<WhenCondition="$(TargetFrameworkIdentifier) == '.NETFramework' And ($(TargetFrameworkVersion) == 'v4.5' Or $(TargetFrameworkVersion) == 'v4.5.1' Or $(TargetFrameworkVersion) == 'v4.5.2' Or $(TargetFrameworkVersion) == 'v4.5.3' Or $(TargetFrameworkVersion) == 'v4.6' Or $(TargetFrameworkVersion) == 'v4.6.1' Or $(TargetFrameworkVersion) == 'v4.6.2')">
0 commit comments