{"id":22829345,"url":"https://github.com/swiftfulthinking/swiftfulfirestore","last_synced_at":"2025-04-23T16:25:42.852Z","repository":{"id":211777584,"uuid":"729927590","full_name":"SwiftfulThinking/SwiftfulFirestore","owner":"SwiftfulThinking","description":"Convenience functions for using Firebase Firestore with Swift Concurrency (async/await).","archived":false,"fork":false,"pushed_at":"2023-12-31T00:58:56.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-01T00:38:41.989Z","etag":null,"topics":["firebase-firestore","firestore-collection","firestore-database","swift"],"latest_commit_sha":null,"homepage":"https://www.swiftful-thinking.com/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SwiftfulThinking.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-10T19:20:58.000Z","updated_at":"2024-05-30T02:22:23.518Z","dependencies_parsed_at":"2024-05-30T02:22:19.348Z","dependency_job_id":"2d93f5cb-b316-4411-9093-982e3120690a","html_url":"https://github.com/SwiftfulThinking/SwiftfulFirestore","commit_stats":null,"previous_names":["swiftfulthinking/swiftfulfirestore"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftfulThinking%2FSwiftfulFirestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftfulThinking%2FSwiftfulFirestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftfulThinking%2FSwiftfulFirestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwiftfulThinking%2FSwiftfulFirestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwiftfulThinking","download_url":"https://codeload.github.com/SwiftfulThinking/SwiftfulFirestore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250469220,"owners_count":21435613,"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","firestore-collection","firestore-database","swift"],"created_at":"2024-12-12T19:15:21.734Z","updated_at":"2025-04-23T16:25:42.803Z","avatar_url":"https://github.com/SwiftfulThinking.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftfulFirestore 🏎️\n\nConvenience functions for using Firebase Firestore with Swift Concurrency.\n\nMost functions are an extension of CollectionReference.\n\n## Usage\n\nImport the package to your project.\n* File -\u003e Swift Packages -\u003e Add Package Dependency\n* Add URL for this repository: https://github.com/SwiftfulThinking/SwiftfulFirestore.git\n\n#### Import the package to your file.\n```swift\nimport SwiftfulFirestore\n```\n\n#### Conform to StringIdentifiable (optional).\n```swift\nstruct Movie: Codable, StringIdentifiable {\n    let id = UUID().uuidString\n}\n```\n\n#### Create or overwrite document.\n```swift\ntry await collection.setDocument(document: movie)\ntry await collection.setDocument(id: movie.id, document: movie)\n```\n\n#### Update existing document.\n```swift\ntry await collection.updateDocument(document: movie)\ntry await collection.updateDocument(id: movie.id, document: movie)\ntry await collection.updateDocument(id: movie.id, dict: try movie.asJsonDictionary())\n```\n\n#### Get documents.\n```swift\ntry await collection.getDocument(id: movie.id)\ntry await collection.getDocuments(ids: [movie.id, movie.id])\ntry await collection.getAllDocuments()\n```\n\n#### Stream documents (add listener via AsyncThrowingStream).\n```swift\ntry await collection.streamDocument(id: movie.id) { listener in\n     self.listener = listener\n}\n\ntry await collection.streamAllDocuments { listener in\n     self.listener = listener\n}\n```\n\n#### Delete documents.\n```swift\ntry await collection.deleteDocument(id: movie.id)\ntry await collection.deleteDocuments(ids: [movie.id, movie.id])\ntry await collection.deleteAllDocuments()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftfulthinking%2Fswiftfulfirestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswiftfulthinking%2Fswiftfulfirestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswiftfulthinking%2Fswiftfulfirestore/lists"}