Skip to content

Commit 2e193eb

Browse files
authored
Merge pull request #56 from rblakeley/patch-1
added `offsetToCursor` to documentation
2 parents 8c7d0d2 + 9b0eeca commit 2e193eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ it takes a promise that resolves to an array, and returns a promise that
6161
resolves to the expected shape by `connectionType`.
6262
- `cursorForObjectInConnection` is a helper method that takes an array and a
6363
member object, and returns a cursor for use in the mutation payload.
64+
- `offsetToCursor` takes the index of a member object in an array and
65+
returns a cursor for use in the mutation payload.
6466

6567
An example usage of these methods from the [test schema](src/__tests__/starWarsSchema.js):
6668

0 commit comments

Comments
 (0)