Title: Queries with null don't work as expected · Issue #704 · angular/angularfire · GitHub
Open Graph Title: Queries with null don't work as expected · Issue #704 · angular/angularfire
X Title: Queries with null don't work as expected · Issue #704 · angular/angularfire
Description: Version info Angular: 2.2.3 Firebase: 3.6.1 AngularFire: 2.0.0-beta.6 How to reproduce these conditions Stackoverflow: AngularFire2: query if child exists Firebase Google Group: AngularFire2 query with null doesn't work Steps to set up a...
Open Graph Description: Version info Angular: 2.2.3 Firebase: 3.6.1 AngularFire: 2.0.0-beta.6 How to reproduce these conditions Stackoverflow: AngularFire2: query if child exists Firebase Google Group: AngularFire2 query ...
X Description: Version info Angular: 2.2.3 Firebase: 3.6.1 AngularFire: 2.0.0-beta.6 How to reproduce these conditions Stackoverflow: AngularFire2: query if child exists Firebase Google Group: AngularFire2 query ...
Opengraph URL: https://github.com/angular/angularfire/issues/704
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Queries with null don't work as expected","articleBody":"### Version info\r\n\r\n**Angular:** 2.2.3\r\n\r\n**Firebase:** 3.6.1\r\n\r\n**AngularFire:** 2.0.0-beta.6\r\n\r\n\r\n### How to reproduce these conditions\r\n\r\nStackoverflow: [AngularFire2: query if child exists](http://stackoverflow.com/questions/40359007/angularfire2-query-if-child-exists)\r\n\r\nFirebase Google Group: [AngularFire2 query with null doesn't work](https://groups.google.com/forum/#!topic/firebase-talk/zTjrOwqxrI0)\r\n\r\n**Steps to set up and reproduce** **Sample data and security rules**\r\n\r\nSee Stackoverflow question above. \r\n\r\n### Expected behavior\r\n\r\nQueries with given `ordeByChild: \"property\"` and `endAt : null` is expected to filter out lists where those poperties are null/don't exist. \r\n\r\n### Actual behavior\r\n\r\nWhole list is returned with no filtering.\r\n\r\nAs @cartant pointed out, check [could be done here](https://github.com/angular/angularfire2/blob/2.0.0-beta.6/src/database/query_observable.ts#L195-L197) just against `undefined` maybe and not to `null`.\r\n","author":{"url":"https://github.com/bogacg","@type":"Person","name":"bogacg"},"datePublished":"2016-11-30T08:50:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":13},"url":"https://github.com/704/angularfire/issues/704"}
| 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:6bf68f12-dc9b-f77e-ecd7-a9cf61435d75 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 89FE:4FB8C:1139D28:172BB43:6A5AAAB6 |
| html-safe-nonce | bd11bbc8a437c7789ed83928bf1480352727013bd671f3660c1d9e7c8e169726 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OUZFOjRGQjhDOjExMzlEMjg6MTcyQkI0Mzo2QTVBQUFCNiIsInZpc2l0b3JfaWQiOiI2NDU2OTU1NzcxODk3NDI0NTY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c22dc071504cb9a618154d6991ea71cad897af7c4c052619bb713f6a90120d77 |
| hovercard-subject-tag | issue:192507742 |
| 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/angular/angularfire/704/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1611173be0195d050c2ef53489f2d36b4ddde39de53d0489817d263ae76c5214/angular/angularfire/issues/704 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1611173be0195d050c2ef53489f2d36b4ddde39de53d0489817d263ae76c5214/angular/angularfire/issues/704 |
| og:image:alt | Version info Angular: 2.2.3 Firebase: 3.6.1 AngularFire: 2.0.0-beta.6 How to reproduce these conditions Stackoverflow: AngularFire2: query if child exists Firebase Google Group: AngularFire2 query ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bogacg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| 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 | 6e85f20f54e1147d8162094880590864abefff6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width