Skip to content

Commit 9496e3f

Browse files
authored
Merge pull request #149 from albertstill/patch-1
fix sub point indentation of the last two connection helpers in the readme
2 parents ea9c54e + a2a7e44 commit 9496e3f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ When building a schema for [GraphQL.js](https://github.com/graphql/graphql-js),
2929

3030
Helper functions are provided for both building the GraphQL types for connections and for implementing the `resolve` method for fields returning those types.
3131

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.
3939
- `offsetToCursor` takes the index of a member object in an array and returns an opaque cursor for use in the mutation payload.
4040
- `cursorToOffset` takes an opaque cursor (created with `offsetToCursor`) and returns the corresponding array index.
4141

0 commit comments

Comments
 (0)