Last updated 6 months ago
const response = await fetch('/api/v1/users', { method: 'GET', headers: { "Authorization": "Bearer jwt" }, }); const data = await response.json();
{ "edges": [ { "node": { "uuid": "005d5052-4d19-4377-8b45-ff68fd1e6952", "username": "peter@tapraise.dev", "name": "Peter Parker", "createdAt": "2017-07-21T17:32:28Z" }, "cursor": "48094b0e-15b3-430f-ab5a-16ecf12b9171" } ], "pageInfo": { "startCursor": "48094b0e-15b3-430f-ab5a-16ecf12b9171", "endCursor": "494d74df-6fbc-46a3-811e-1c17230340a1", "hasPreviousPage": true, "hasNextPage": false } }