{"action":"created","issue":{"url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/120","repository_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose","labels_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/120/comments","events_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/120/events","html_url":"https://github.com/graphql-compose/graphql-compose-mongoose/issues/120","id":352275716,"node_id":"MDU6SXNzdWUzNTIyNzU3MTY=","number":120,"title":"Unexpected behavior from 'connection' resolver.","user":{"login":"woh-dev","id":3200775,"node_id":"MDQ6VXNlcjMyMDA3NzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3200775?v=4","gravatar_id":"","url":"https://api.github.com/users/woh-dev","html_url":"https://github.com/woh-dev","followers_url":"https://api.github.com/users/woh-dev/followers","following_url":"https://api.github.com/users/woh-dev/following{/other_user}","gists_url":"https://api.github.com/users/woh-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/woh-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woh-dev/subscriptions","organizations_url":"https://api.github.com/users/woh-dev/orgs","repos_url":"https://api.github.com/users/woh-dev/repos","events_url":"https://api.github.com/users/woh-dev/events{/privacy}","received_events_url":"https://api.github.com/users/woh-dev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-20T20:02:01Z","updated_at":"2018-08-20T20:05:18Z","closed_at":null,"author_association":"NONE","body":"It's been amazing working with _graphql-compose-mongoose_ over the last few weeks and discovering how powerful it is. Thank you for this incredible tool!\r\n\r\nI am starting to use the 'connection' resolver that is built in to _grapqhl-compose-mongoose_, (not the plugin available at graphql-compose-connection). It works as expected when I use the forward pagination arguments `first` and `after`.\r\n\r\nBut when I try to paginate in reverse using `last` and `before` I get some unexpected behavior. \r\n\r\nHere's an example:\r\n\r\n`(last: 2, before: \"\")`\r\n\r\n```\r\nr-0\r\nr-1\r\nr-2\r\nr-3\r\nr-4\r\nr-5 \r\nr-6 \r\nr-7 \r\nr-8 \r\nr-9 <- result\r\nr-10 <- result\r\n```\r\nI then try to get the next two pages.\r\n\r\n`(last: 2, before: \"r-9\")`\r\n\r\n```\r\nr-0 <- actual result\r\nr-1 <- actual result\r\nr-2\r\nr-3\r\nr-4\r\nr-5 \r\nr-6 \r\nr-7 <- expected result\r\nr-8 <- expected result\r\nr-9 \r\nr-10 \r\n```\r\n\r\nAm I misunderstanding how this should work?"},"comment":{"url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/comments/414445384","html_url":"https://github.com/graphql-compose/graphql-compose-mongoose/issues/120#issuecomment-414445384","issue_url":"https://api.github.com/repos/graphql-compose/graphql-compose-mongoose/issues/120","id":414445384,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDQ0NTM4NA==","user":{"login":"woh-dev","id":3200775,"node_id":"MDQ6VXNlcjMyMDA3NzU=","avatar_url":"https://avatars1.githubusercontent.com/u/3200775?v=4","gravatar_id":"","url":"https://api.github.com/users/woh-dev","html_url":"https://github.com/woh-dev","followers_url":"https://api.github.com/users/woh-dev/followers","following_url":"https://api.github.com/users/woh-dev/following{/other_user}","gists_url":"https://api.github.com/users/woh-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/woh-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woh-dev/subscriptions","organizations_url":"https://api.github.com/users/woh-dev/orgs","repos_url":"https://api.github.com/users/woh-dev/repos","events_url":"https://api.github.com/users/woh-dev/events{/privacy}","received_events_url":"https://api.github.com/users/woh-dev/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T20:05:18Z","updated_at":"2018-08-20T20:05:18Z","author_association":"NONE","body":"I saw this issue on the grapqhl-compose-pagination docs. \r\n\r\nhttps://github.com/graphql-compose/graphql-compose-connection/issues/7\r\n\r\nIs it possible that the fixes from this issue were not implemented in graphql-compose-mongoose?"}}
{"actor":{"display_login":"woh-dev"}}