Skip to content

Commit 9b0eeca

Browse files
committed
added offsetToCursor to documentation
1 parent deb4f5e commit 9b0eeca

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)