Title: collection() missing type arguments · Issue #3081 · angular/angularfire · GitHub
Open Graph Title: collection() missing type arguments · Issue #3081 · angular/angularfire
X Title: collection() missing type arguments · Issue #3081 · angular/angularfire
Description: There are no exported functions for the collection function that allow a type to be specified. I see reference to collection() in the docs and in the upgrade information (screenshot below) but it isn't working in my project. If I try to ...
Open Graph Description: There are no exported functions for the collection function that allow a type to be specified. I see reference to collection() in the docs and in the upgrade information (screenshot below) but it i...
X Description: There are no exported functions for the collection function that allow a type to be specified. I see reference to collection() in the docs and in the upgrade information (screenshot below) but it i...
Opengraph URL: https://github.com/angular/angularfire/issues/3081
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"collection() missing type arguments","articleBody":"There are no exported functions for the collection function that allow a type to be specified. I see reference to collection\u003cT>() in the docs and in the upgrade information (screenshot below) but it isn't working in my project. If I try to add a type to get a typed collection reference, I get the error: Expected 0 type arguments, but got 1.\r\n\r\n### Version info\r\n\r\n**Angular:** 13.0.3\r\n\r\n**Firebase:** 9.0.0\r\n\r\n**AngularFire:** 7.2\r\n\r\n**Other (e.g. Ionic/Cordova, Node, browser, operating system):** MacOs Montery\r\n\r\n### How to reproduce these conditions\r\n\r\n**Steps to set up and reproduce**\r\n\r\nAttempt to create a collection reference with a custom type\r\n\r\n**Sample data and security rules**\r\n\r\nThe data isn't important.\r\n\r\n### Debug output\r\n\r\nError in VS Code:\r\n\r\n\r\nAngularFire Upgrade Docs: \r\n\r\n\r\n### Expected behavior\r\n\r\nThere should be a version of the collection function that takes a type. There are version of other functions that take a type and even expect a typed CollectionReference.\r\n\r\n### Actual behavior\r\n\r\nNo function exists that takes a type.\r\n","author":{"url":"https://github.com/imjoshnewton","@type":"Person","name":"imjoshnewton"},"datePublished":"2021-12-03T16:16:23Z","url":"https://github.com/angular/angularfire/issues/3081"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:58cee20d-1acd-f9bf-f880-1156e2a5e8c1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADEE:263885:24F7:2E31:6B036466 |
| html-safe-nonce | 060da71d44683de561d753f0aa9e0cc41d71f173cd819e26b9c54615447d60f3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREVFOjI2Mzg4NToyNEY3OjJFMzE6NkIwMzY0NjYiLCJ2aXNpdG9yX2lkIjoiNjMwMDUyMTcyODU2OTQ2ODAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 70aba4ddd60a947fd88a1935dce76482ceb1accc985a11d6e80dc504aaaee9c3 |
| hovercard-subject-tag | issue:1070748654 |
| 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/3081/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5311077fe7b2af42b5739467c4123ee2781143103b4ace973d5ed0b91b829649/angular/angularfire/issues/3081 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5311077fe7b2af42b5739467c4123ee2781143103b4ace973d5ed0b91b829649/angular/angularfire/issues/3081 |
| og:image:alt | There are no exported functions for the collection function that allow a type to be specified. I see reference to collection() in the docs and in the upgrade information (screenshot below) but it i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imjoshnewton |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width