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: README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,13 +29,13 @@ When building a schema for [GraphQL.js](https://github.com/graphql/graphql-js),
29
29
30
30
Helper functions are provided for both building the GraphQL types for connections and for implementing the `resolve` method for fields returning those types.
31
31
32
-
-`connectionArgs` returns the arguments that fields should provide when they return a connection type that supports bidirectional pagination.
33
-
-`forwardConnectionArgs` returns the arguments that fields should provide when they return a connection type that only supports forward pagination.
34
-
-`backwardConnectionArgs` returns the arguments that fields should provide when they return a connection type that only supports backward pagination.
35
-
-`connectionDefinitions` returns a `connectionType` and its associated `edgeType`, given a node type.
36
-
-`connectionFromArray` is a helper method that takes an array and the arguments from `connectionArgs`, does pagination and filtering, and returns an object in the shape expected by a `connectionType`'s `resolve` function.
37
-
-`connectionFromPromisedArray` is similar to `connectionFromArray`, but it takes a promise that resolves to an array, and returns a promise that resolves to the expected shape by `connectionType`.
38
-
-`cursorForObjectInConnection` is a helper method that takes an array and a member object, and returns a cursor for use in the mutation payload.
32
+
-`connectionArgs` returns the arguments that fields should provide when they return a connection type that supports bidirectional pagination.
33
+
-`forwardConnectionArgs` returns the arguments that fields should provide when they return a connection type that only supports forward pagination.
34
+
-`backwardConnectionArgs` returns the arguments that fields should provide when they return a connection type that only supports backward pagination.
35
+
-`connectionDefinitions` returns a `connectionType` and its associated `edgeType`, given a node type.
36
+
-`connectionFromArray` is a helper method that takes an array and the arguments from `connectionArgs`, does pagination and filtering, and returns an object in the shape expected by a `connectionType`'s `resolve` function.
37
+
-`connectionFromPromisedArray` is similar to `connectionFromArray`, but it takes a promise that resolves to an array, and returns a promise that resolves to the expected shape by `connectionType`.
38
+
-`cursorForObjectInConnection` is a helper method that takes an array and a member object, and returns a cursor for use in the mutation payload.
39
39
-`offsetToCursor` takes the index of a member object in an array and returns an opaque cursor for use in the mutation payload.
40
40
-`cursorToOffset` takes an opaque cursor (created with `offsetToCursor`) and returns the corresponding array index.
0 commit comments