GraphQL DynamoDB Connections
This is an adapter library that converts DynamoDB-style pagination to GraphQL Connection-style pagination.
Usage
; const userConnections = type: userConnection args: connectionArgs resolve: { return promisifiedDocumentClient ; };
You can find more examples in the examples folder.
API
paginationToParams(connectionArgs)
-- adapts connection-args to DynamoDB paramsdataToConnection(data)
-- converts the data returned by DynamoDB into a Connection type