{"action":"closed","issue":{"url":"https://api.github.com/repos/graphql/graphql-relay-js/issues/63","labels_url":"https://api.github.com/repos/graphql/graphql-relay-js/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/graphql/graphql-relay-js/issues/63/comments","events_url":"https://api.github.com/repos/graphql/graphql-relay-js/issues/63/events","html_url":"https://github.com/graphql/graphql-relay-js/issues/63","id":129444197,"number":63,"title":"Connection is based on `array`,is this a design style guide for design a relay server?","user":{"login":"iamchenxin","id":8873545,"avatar_url":"https://avatars.githubusercontent.com/u/8873545?v=3","gravatar_id":"","url":"https://api.github.com/users/iamchenxin","html_url":"https://github.com/iamchenxin","followers_url":"https://api.github.com/users/iamchenxin/followers","following_url":"https://api.github.com/users/iamchenxin/following{/other_user}","gists_url":"https://api.github.com/users/iamchenxin/gists{/gist_id}","starred_url":"https://api.github.com/users/iamchenxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamchenxin/subscriptions","organizations_url":"https://api.github.com/users/iamchenxin/orgs","repos_url":"https://api.github.com/users/iamchenxin/repos","events_url":"https://api.github.com/users/iamchenxin/events{/privacy}","received_events_url":"https://api.github.com/users/iamchenxin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/graphql/graphql-relay-js/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-28T12:54:53Z","updated_at":"2016-01-28T17:24:47Z","closed_at":"2016-01-28T17:24:47Z","body":"In `connection/arrayconnection.js`,  It seems all the function is tend to work with `array`.\r\nFor example `offsetToCursor` is the only way to generate Cursor. Does this mean its a design pattern i must follow, or imply that i should generate Cursor by myself when using something other than `array`.If im planning to use Mongodb,should i make the database interface like an static array ?\r\n\r\nBTW: \r\nAs a newbie to web develop, im a bit confused how to implement a qualified relay server.\r\nAre there some guide for design a graphql-relay server, should i follow all the way in `graphql-relay-js`, which Database Facebook used with relay-server ? mysql or ?\r\nIm not sure ask this here is appropriate or not,but the topic for graphql-relay-js is rarely on the web.\r\nThanks a lot, forgive my impolite.\r\n```\r\nvar PREFIX = 'arrayconnection:';\r\n/**\r\n * Creates the cursor string from an offset.\r\n */\r\nexport function offsetToCursor(offset: number): ConnectionCursor {\r\n  return base64(PREFIX + offset);\r\n}\r\n```"}}