{"id":13799217,"url":"https://github.com/peterhdd/firebase-firestore-snippets","last_synced_at":"2025-05-13T06:32:43.441Z","repository":{"id":34676684,"uuid":"145200417","full_name":"PeterHdd/firebase-firestore-snippets","owner":"PeterHdd","description":"Contains the snippet for both Firebase and Firestore in VS Code editor ","archived":false,"fork":false,"pushed_at":"2022-12-07T23:20:21.000Z","size":86,"stargazers_count":14,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T00:03:47.015Z","etag":null,"topics":["firebase","firestore","visual-studio-code"],"latest_commit_sha":null,"homepage":"https://firebaseopensource.com/projects/peterhdd/firebase-firestore-snippets/","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PeterHdd.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"peterhaddad"}},"created_at":"2018-08-18T07:41:06.000Z","updated_at":"2024-03-09T06:05:20.000Z","dependencies_parsed_at":"2023-01-15T08:31:16.166Z","dependency_job_id":null,"html_url":"https://github.com/PeterHdd/firebase-firestore-snippets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterHdd%2Ffirebase-firestore-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterHdd%2Ffirebase-firestore-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterHdd%2Ffirebase-firestore-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PeterHdd%2Ffirebase-firestore-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PeterHdd","download_url":"https://codeload.github.com/PeterHdd/firebase-firestore-snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225183828,"owners_count":17434194,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["firebase","firestore","visual-studio-code"],"created_at":"2024-08-04T00:00:59.964Z","updated_at":"2024-11-18T13:32:02.799Z","avatar_url":"https://github.com/PeterHdd.png","language":null,"funding_links":["https://patreon.com/peterhaddad"],"categories":["CLI \u0026 에디터"],"sub_categories":["iOS"],"readme":"# Firebase\n## VS Code Firebase and Firestore snippets\n-------------------\n[![Version](https://vsmarketplacebadge.apphb.com/version-short/peterhdd.firebase-firestore-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=peterhdd.firebase-firestore-snippets)\n[![Installs](https://vsmarketplacebadge.apphb.com/installs/peterhdd.firebase-firestore-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=peterhdd.firebase-firestore-snippets)\n[![Downloads](https://vsmarketplacebadge.apphb.com/downloads-short/peterhdd.firebase-firestore-snippets.svg)](https://marketplace.visualstudio.com/items?itemName=peterhdd.firebase-firestore-snippets)\n\n## Supported Languages\n* JavaScript (.js)\n* TypeScript (.ts)\n* JavaScript React (.jsx)\n* TypeScript React (.tsx)\n* Html (.html)\n* Vue (.vue)\n\n## Snippets\n\n### Firebase\n| Trigger  | Description |\n| -------: | ------ |\n| `fireconfig`   | Configure Firebase |\n| `firereference`   | Get a reference to the firebase service |\n| `fireset`   | Set data to the firebase database |\n| `fireretrieve`   | Retrieve data from firebase |\n| `fireretrieveloop`   | Retrieve data and loop inside the direct children |\n| `fireval`   | Using `val()` method to retrieve the data inside a listener |\n| `fireretrieveonce`   | Retrieve data once |\n| `firekey`   | Create a key and simultaneously retrieve the key |\n| `fireupdate`   | Updating specific fields |\n| `fireremove`   | Remove data at a certain location |\n| `firetransaction`   | firebase transactions |\n| `fireorderBychild`   | Order results by the value of a specified child key or nested child path |\n| `fireorderByvalue`   | Order results by child values |\n| `fireorderBykey`   | Order results by child keys |\n| `firelimittofirst`   | Sets the maximum number of items to return from the end of the ordered list of results |\n| `firelimittolast`   | Sets the maximum number of items to return from the beginning of the ordered list of results |\n| `firestartAt`   | Return items greater than or equal to the specified key or value, depending on the order-by method chosen |\n| `fireendat`   | Return items less than or equal to the specified key or value, depending on the order-by method chosen |\n| `fireequalto`   | Return items equal to the specified key or value, depending on the order-by method chosen |\n| `fireexists`   | Returns true if this dataSnapshot contains any data |\n| `firehaschild`   | Returns true if this datasnapshot contains the specified child |\n| `firehaschildren`   | Returns true is this datasnapshot contains any children |\n| `firenumchildren`   | Returns the number of child properties of this datasnapshot |\n| `firedetach`   | Removing a listener |\n| `firestorageref`   |Get a reference to the storage service, which is used to create references in your storage bucket |\n| `firestoragechildref`   | Create a reference to a location lower in the tree, say `images.jpg` |\n| `firestorageurlref`   | Create a reference from a Google Cloud Storage URI or https url |\n| `firestoragedownloadfile`   | Getting the download file from firebase storage |\n| `firestoragedeletefile`   | Delete a file |\n| `firesignupemail`   | Authenticate a new user using email and password |\n| `firesigninemail`   | Sign in an existing user |\n| `fireauthstate`   | Attach an observer using onAuthStateChanged to retrieve user infomration |\n| `firecurrentuser`   | Retrieves the currently logged in user |\n| `fireuserprofile`   | Retrieves the user information |\n| `fireupdateprofile`   | Updates the user profile |\n| `fireproviderinfo`   | Retrieves information from sign in provider |\n| `fireupdateemail`   | Set a user email address, the user must have signed in recently|\n| `fireemailverify`   | Send an email verification to the user |\n| `firesetpass`   | Set a user password, the user must have signed in recently |\n| `firepassreset`   | Send a password reset email to a user |\n| `firedeleteuser`   | Delete a user account with the delete method |\n| `firesignout`   | Sign out the user |\n| `firegoogleinstance`   | Get instance of the google provider |\n| `fireprovidersignin`   | Sign in with google |\n| `firefacebookinstance`   | Get instance of facebook provider |\n| `firetwitterinstance`   | Get instance of twitter provider |\n| `firegithubinstance`   | Get instance of github provider |\n| `firecustomauth`   | Sign in the user using custom authentication |\n| `fireanonymously`   | Sign in the user anonymously |\n\n### Firestore\n| Trigger  | Description |\n| -------: | ------- |\n| `initializefirestore`   | Initialize Cloud Firestore through Firebase |\n| `adddatafirestore`   | Creating a new collection and document in firestore |\n| `setdatafirestore` | Creates or overwrite a single document, use the `set()` method |\n| `readdatafirestore`   | Read data from a collection in firestore |\n| `referencefirestore`   | Add firestore reference |\n| `updatefirestore`   | Update the document in firestore |\n| `deletedocfirestore`   | Delete a document in firestore |\n| `deletefieldfirestore`   | Delete a field in firestore document |\n| `wherefirestore`   | where query in firestore |\n| `arraycontainsfirestore` | Using `array-contains` it filters based on array value |\n| `limitfirestore`   | Retrieves the first three value of the field |\n| `ordermultifirestore`   | Order by multiple fields in firestore |\n| `realtimeupdatefirestore` | Listens for realtime changes on a document using `onSnapshot` |\n|`arrayunionfieldfirestore`|\tAdds an element to an array field|\n`arrayremovefieldfirestore`|\tRemove an element from array field|\n|`incrementfieldfirestore`|\tIncrement or decrement a numeric field value|\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhdd%2Ffirebase-firestore-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterhdd%2Ffirebase-firestore-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterhdd%2Ffirebase-firestore-snippets/lists"}