Title: Handle "distinct" · Issue #12 · 90TechSAS/angular-orm · GitHub
Open Graph Title: Handle "distinct" · Issue #12 · 90TechSAS/angular-orm
X Title: Handle "distinct" · Issue #12 · 90TechSAS/angular-orm
Description: When we query with "distinct", the array of objects returned doesn't fit the model but the ORM still tries and cast it. This is a problem. We could implement a .distinct(field) at the manager level. This would give the benefit of being a...
Open Graph Description: When we query with "distinct", the array of objects returned doesn't fit the model but the ORM still tries and cast it. This is a problem. We could implement a .distinct(field) at the manager level...
X Description: When we query with "distinct", the array of objects returned doesn't fit the model but the ORM still tries and cast it. This is a problem. We could implement a .distinct(field) at the...
Opengraph URL: https://github.com/90TechSAS/angular-orm/issues/12
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Handle \"distinct\"","articleBody":"When we query with \"distinct\", the array of objects returned doesn't fit the model but the ORM still tries and cast it. This is a problem. \r\n\r\nWe could implement a `.distinct(field)` at the manager level. This would give the benefit of being able to cast to the nested property type if needed.\r\n\r\nA simpler approach would be to have a `getRaw` which would not try to build object or an option on the get method. (We might end up needing it anyway)","author":{"url":"https://github.com/FloGou","@type":"Person","name":"FloGou"},"datePublished":"2017-03-24T09:20:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/12/angular-orm/issues/12"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de8078ec-a847-1327-fa93-7bdcff8f8291 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1F6:1EF1:2BBBD4C:3E55278:6A4D0587 |
| html-safe-nonce | a3ba9fa546b91ea3927ae99dc7af465506fcace114ccc7fdc1c83715cf2948eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUY2OjFFRjE6MkJCQkQ0QzozRTU1Mjc4OjZBNEQwNTg3IiwidmlzaXRvcl9pZCI6Ijc2MTE3MzI2NTk0MjU1NzYzMjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ba502a276ff6f66d7e66d76e490ac0f3a6edbfda17b2c3d2d82be6bd4009478a |
| hovercard-subject-tag | issue:216713402 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/90TechSAS/angular-orm/12/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09dea6fd4e0f793c59ae9d9ecbcc67fc9acc2b860b29ae76fa7a238422fed1bf/90TechSAS/angular-orm/issues/12 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09dea6fd4e0f793c59ae9d9ecbcc67fc9acc2b860b29ae76fa7a238422fed1bf/90TechSAS/angular-orm/issues/12 |
| og:image:alt | When we query with "distinct", the array of objects returned doesn't fit the model but the ORM still tries and cast it. This is a problem. We could implement a .distinct(field) at the manager level... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FloGou |
| hostname | github.com |
| expected-hostname | github.com |
| None | 31e4db13a9e20081f2fac78f441659a6576e582bbb15e153f9c7fb6473aa29f5 |
| turbo-cache-control | no-preview |
| go-import | github.com/90TechSAS/angular-orm git https://github.com/90TechSAS/angular-orm.git |
| octolytics-dimension-user_id | 9336433 |
| octolytics-dimension-user_login | 90TechSAS |
| octolytics-dimension-repository_id | 48232971 |
| octolytics-dimension-repository_nwo | 90TechSAS/angular-orm |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 48232971 |
| octolytics-dimension-repository_network_root_nwo | 90TechSAS/angular-orm |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | fb70bd3c4b2bec429781b65419e912c66e2d5581 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width