{"action":"created","issue":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/99","repository_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose","labels_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/99/comments","events_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/99/events","html_url":"https://github.com/RisingStack/graffiti-mongoose/issues/99","id":138694943,"number":99,"title":"Pagination that involves ordering","user":{"login":"vangavroche","id":1776935,"avatar_url":"https://avatars.githubusercontent.com/u/1776935?v=3","gravatar_id":"","url":"https://api.github.com/users/vangavroche","html_url":"https://github.com/vangavroche","followers_url":"https://api.github.com/users/vangavroche/followers","following_url":"https://api.github.com/users/vangavroche/following{/other_user}","gists_url":"https://api.github.com/users/vangavroche/gists{/gist_id}","starred_url":"https://api.github.com/users/vangavroche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vangavroche/subscriptions","organizations_url":"https://api.github.com/users/vangavroche/orgs","repos_url":"https://api.github.com/users/vangavroche/repos","events_url":"https://api.github.com/users/vangavroche/events{/privacy}","received_events_url":"https://api.github.com/users/vangavroche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-03-05T16:17:59Z","updated_at":"2016-07-22T11:49:44Z","closed_at":null,"body":"Pagination that involves ordering doesn't work.\r\n\r\nDo you have any idea how to fix it elegantly?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/comments/234524046","html_url":"https://github.com/RisingStack/graffiti-mongoose/issues/99#issuecomment-234524046","issue_url":"https://api.github.com/repos/RisingStack/graffiti-mongoose/issues/99","id":234524046,"user":{"login":"nodkz","id":1946920,"avatar_url":"https://avatars.githubusercontent.com/u/1946920?v=3","gravatar_id":"","url":"https://api.github.com/users/nodkz","html_url":"https://github.com/nodkz","followers_url":"https://api.github.com/users/nodkz/followers","following_url":"https://api.github.com/users/nodkz/following{/other_user}","gists_url":"https://api.github.com/users/nodkz/gists{/gist_id}","starred_url":"https://api.github.com/users/nodkz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodkz/subscriptions","organizations_url":"https://api.github.com/users/nodkz/orgs","repos_url":"https://api.github.com/users/nodkz/repos","events_url":"https://api.github.com/users/nodkz/events{/privacy}","received_events_url":"https://api.github.com/users/nodkz/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T11:49:44Z","updated_at":"2016-07-22T11:49:44Z","body":"Solve sorting problem in https://github.com/nodkz/graphql-compose-mongoose\r\n\r\nThe main secret in `cursor`s:\r\n- for every document in cursor you should store values from fields, by which you make the sort (e.g.  .sort({ _id: 1, age: 1}) then you should construct such cursor base64(_id: 34ef85...34, age: 28)\r\n- sort can be proceeded only by unique indexes (to avoid overlapping)\r\n- when proceeding `before` and `after` arguments with the cursor, you should parse values from it and use them via search with operators `.where({ _id: {$gt: 34ef85...34}, age: {$gt: 28}})`\r\n"}}
{"actor":{"display_login":"nodkz"}}