{"id":24491303,"url":"https://github.com/kurotch321/firestore-controller","last_synced_at":"2025-03-15T02:25:00.278Z","repository":{"id":258369079,"uuid":"873773516","full_name":"kurotch321/firestore-controller","owner":"kurotch321","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-16T18:41:30.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-21T18:17:43.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/kurotch321.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":"2024-10-16T17:36:35.000Z","updated_at":"2024-10-16T18:43:05.000Z","dependencies_parsed_at":"2024-10-20T10:01:18.871Z","dependency_job_id":null,"html_url":"https://github.com/kurotch321/firestore-controller","commit_stats":null,"previous_names":["nekodayo2222/firestore-controller","kurotch321/firestore-controller"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotch321%2Ffirestore-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotch321%2Ffirestore-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotch321%2Ffirestore-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kurotch321%2Ffirestore-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kurotch321","download_url":"https://codeload.github.com/kurotch321/firestore-controller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243673312,"owners_count":20328915,"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":[],"created_at":"2025-01-21T18:17:48.772Z","updated_at":"2025-03-15T02:25:00.254Z","avatar_url":"https://github.com/kurotch321.png","language":"TypeScript","readme":"# Cloud Firestore Controller\n\nThis library makes it easy to operate the Cloud Firestore with short code.\n\n## Requirements\n\n- Node.js v20.0.0 or later\n- [Cloud Firestore: Node.js Client (@google-cloud/firestore)](https://www.npmjs.com/package/@google-cloud/firestore) v7.0.0 or later\n\n## Example\n\n### Read Document\n\nBefore:\n\n```typescript\nconst doc = await firestore.collection(\"users\").doc(\"user1\").get();\nconst data = doc.data();\n\nconsole.log(data);\n```\n\nAfter:\n\n```typescript\nconst data = await readDoc(\"users\", \"user1\");\n\nconsole.log(data);\n```\n\n### Write Document\n\nBefore:\n\n```typescript\nconst data = { name: \"Alice\", age: 20, email: \"alice@example.ne.jp\" };\n\nawait firestore.collection(\"users\").doc(\"user1\").set(data);\n```\n\nAfter:\n\n```typescript\nconst data = { name: \"Alice\", age: 20, email: \"alice@example.ne.jp\" };\n\nawait writeDoc(\"users\", \"user1\", data);\n```\n\n### Files\n\n- [decodeServiceAccount.ts](./lib/decodeServiceAccount.ts) - Decode base64 encoded service account key.\n- [firestoreController.ts](./lib/firestoreController.ts) - Main library file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurotch321%2Ffirestore-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkurotch321%2Ffirestore-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkurotch321%2Ffirestore-controller/lists"}