{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":476820038,"defaultBranch":"main","name":"mongoose-relay-paginate","ownerLogin":"johnsonjo4531","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-04-01T17:56:41.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5439859?v=4","public":true,"private":false,"isOrgOwned":false},"refInfo":{"name":"","listCacheKey":"v0:1648836565.847907","currentOid":""},"activityList":{"items":[{"before":"b9e2a7f8f339e772e0527db6076b8f01bc4caf92","after":"c894a8a6ee114bc1569a80bd7da828f0a3b408ea","ref":"refs/heads/main","pushedAt":"2024-01-24T16:37:03.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Rebuilt api docs","shortMessageHtmlLink":"Rebuilt api docs"}},{"before":"9132ae5697dd5a659c89d602534e0afd701cbbfd","after":"15ab3c8c773858dd8d19c4203de886ee0751d751","ref":"refs/heads/gh-pages","pushedAt":"2024-01-24T16:36:25.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Deploy website - based on b9e2a7f8f339e772e0527db6076b8f01bc4caf92","shortMessageHtmlLink":"Deploy website - based on b9e2a7f"}},{"before":"b343b43ca3c97f12986af21b6db4fab417a7a79f","after":"b9e2a7f8f339e772e0527db6076b8f01bc4caf92","ref":"refs/heads/main","pushedAt":"2024-01-24T16:36:06.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"New doc API pages","shortMessageHtmlLink":"New doc API pages"}},{"before":"e6112a041688be5621bf81ecaff691045fcf221e","after":"9132ae5697dd5a659c89d602534e0afd701cbbfd","ref":"refs/heads/gh-pages","pushedAt":"2024-01-24T03:36:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Deploy website - based on b343b43ca3c97f12986af21b6db4fab417a7a79f","shortMessageHtmlLink":"Deploy website - based on b343b43"}},{"before":"f83a379f74caa53b35b0797a42f4eba52eba1852","after":"b343b43ca3c97f12986af21b6db4fab417a7a79f","ref":"refs/heads/main","pushedAt":"2024-01-24T00:42:22.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"v6.0.1\n\nFixed prettier, linting, type errors, etc.","shortMessageHtmlLink":"v6.0.1"}},{"before":"478f46c883543992e6fe73c453da7b833e6a8810","after":"e6112a041688be5621bf81ecaff691045fcf221e","ref":"refs/heads/gh-pages","pushedAt":"2024-01-24T00:26:07.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Deploy website - based on f83a379f74caa53b35b0797a42f4eba52eba1852","shortMessageHtmlLink":"Deploy website - based on f83a379"}},{"before":"acb6a4ffa22eba0e2dc0da972cf2091a2d7351eb","after":"f83a379f74caa53b35b0797a42f4eba52eba1852","ref":"refs/heads/main","pushedAt":"2024-01-24T00:25:53.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"v6.0.0\n\nSee ./mongoose-relay-paginate/docs/Changelog.md for changes relevant parts of that file are also pasted below for convenience.\n\n## v5.0.0 to v6.0.0\n\n### API Breaking Changes\n\nDue to performance reasons anything in this plugin that was dependant on getting Query.countDocuments() or Aggregate.count() (that includes the `$count` aggregation operator) for the whole pagination result had to be omitted. That includes:\n\n- The `count` property in the `RelayResult`'s `pageInfo` which had to use a `Query.countDocuments()`.\n- The `toAggregate` method returned from `aggregateRelayPaginate` which had to use an Aggregate `$count` operator\n\nSorry if you were dependant on this, but our team at work recently saw very bad performance issues due to the previous.\n\n### Alternative solutions to the above\n\n#### pageInfo.count\n\nThere is no alternative to the count property that this library used to provide. Also `count` was never spec compliant witht the Relay Connection spec, so it was likely a poor choice to begin with. You could always provide your own external solution to this, but do know that performance will likely be lackluster.\n\n#### toAggregate\n\nThough not the exact same there is now instead a `toNodesAggregate` method. Instead of returning the `RelayResult` it only returns `RelayResult[nodes]` i.e. just the nodes. The following two examples' `result`s are equivalent between the previous version's `toAggregate` and the new `toNodesAggregate`:\n\n**toAggregate**\n```ts\nconst result = await UserModel.aggregateRelayPaginate(\n [{ $sort: { name: 1 } }],\n {}\n )\n .toAggregate()\n .unwind(\"$nodes\")\n```\n\n**toNodesAggregate**\n```ts\nconst result = await UserModel.aggregateRelayPaginate(\n [{ $sort: { name: 1 } }],\n {}\n )\n .toNodesAggregate()\n```","shortMessageHtmlLink":"v6.0.0"}},{"before":"46759b1c9e70db6724575dc3e089abccc56706c6","after":"acb6a4ffa22eba0e2dc0da972cf2091a2d7351eb","ref":"refs/heads/main","pushedAt":"2024-01-17T17:56:19.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"v5.1.1","shortMessageHtmlLink":"v5.1.1"}},{"before":"a2819cce79c18ab96ce132bce9a109d57b98afe4","after":"46759b1c9e70db6724575dc3e089abccc56706c6","ref":"refs/heads/main","pushedAt":"2024-01-17T17:55:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Added more details to readme.md and docs allow more mongoose versions.","shortMessageHtmlLink":"Added more details to readme.md and docs allow more mongoose versions."}},{"before":"dba321a719762952b703296075fa8103dda34ff1","after":"478f46c883543992e6fe73c453da7b833e6a8810","ref":"refs/heads/gh-pages","pushedAt":"2024-01-17T17:50:15.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Deploy website - based on a2819cce79c18ab96ce132bce9a109d57b98afe4","shortMessageHtmlLink":"Deploy website - based on a2819cc"}},{"before":"46907bdb610ca11426fc80ddf834d8187211401f","after":"a2819cce79c18ab96ce132bce9a109d57b98afe4","ref":"refs/heads/main","pushedAt":"2023-10-03T17:34:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"v5.0.3","shortMessageHtmlLink":"v5.0.3"}},{"before":"b00603bdc41c775ef2e027ea31515b0f14b03c72","after":"dba321a719762952b703296075fa8103dda34ff1","ref":"refs/heads/gh-pages","pushedAt":"2023-10-03T13:51:58.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Deploy website - based on 46907bdb610ca11426fc80ddf834d8187211401f","shortMessageHtmlLink":"Deploy website - based on 46907bd"}},{"before":"a94e32cee01999b286b997e41d745bc3b8126ee9","after":"46907bdb610ca11426fc80ddf834d8187211401f","ref":"refs/heads/main","pushedAt":"2023-10-03T13:47:59.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Finished updating docs","shortMessageHtmlLink":"Finished updating docs"}},{"before":"aef05f3b0cc0db6d793ca536211d6fd34023f98b","after":"a94e32cee01999b286b997e41d745bc3b8126ee9","ref":"refs/heads/main","pushedAt":"2023-10-03T01:34:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"v5.0.2 ๐Ÿš€\n\noops released a broken v5.0.0","shortMessageHtmlLink":"v5.0.2 ๐Ÿš€"}},{"before":"9c429eb4927549744a8e7e6193455a93c7f44a3e","after":"aef05f3b0cc0db6d793ca536211d6fd34023f98b","ref":"refs/heads/main","pushedAt":"2023-10-02T23:26:17.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"5.0.1","shortMessageHtmlLink":"5.0.1"}},{"before":"ecfb129972dad8372814c51fdfc37b359b90f0fc","after":"9c429eb4927549744a8e7e6193455a93c7f44a3e","ref":"refs/heads/main","pushedAt":"2023-10-02T23:04:27.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Small makefile change","shortMessageHtmlLink":"Small makefile change"}},{"before":"9917bae0594a81768cccfc5e814967a99a579d63","after":"ecfb129972dad8372814c51fdfc37b359b90f0fc","ref":"refs/heads/main","pushedAt":"2023-10-02T22:59:29.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"johnsonjo4531","name":"John Johnson","path":"/johnsonjo4531","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/5439859?s=80&v=4"},"commit":{"message":"Merge branch 'main' of github.com:johnsonjo4531/mongoose-relay-paginate","shortMessageHtmlLink":"Merge branch 'main' of github.com:johnsonjo4531/mongoose-relay-paginate"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAD6B-0pgA","startCursor":null,"endCursor":null}},"title":"Activity ยท johnsonjo4531/mongoose-relay-paginate"}