{"id":19573531,"url":"https://github.com/muchobien/apollo-persistence-mapper","last_synced_at":"2026-04-15T16:32:53.513Z","repository":{"id":36971064,"uuid":"470626282","full_name":"muchobien/apollo-persistence-mapper","owner":"muchobien","description":"Persistor mapper to decorate queries","archived":false,"fork":false,"pushed_at":"2023-02-21T05:59:55.000Z","size":32,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T11:16:24.615Z","etag":null,"topics":["apollo","apollo-cache","apollo-persist","graphql"],"latest_commit_sha":null,"homepage":"","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/muchobien.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":"2022-03-16T14:47:36.000Z","updated_at":"2023-04-10T00:42:29.000Z","dependencies_parsed_at":"2024-11-11T06:34:39.973Z","dependency_job_id":null,"html_url":"https://github.com/muchobien/apollo-persistence-mapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/muchobien/apollo-persistence-mapper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fapollo-persistence-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fapollo-persistence-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fapollo-persistence-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fapollo-persistence-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muchobien","download_url":"https://codeload.github.com/muchobien/apollo-persistence-mapper/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fapollo-persistence-mapper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["apollo","apollo-cache","apollo-persist","graphql"],"created_at":"2024-11-11T06:34:35.162Z","updated_at":"2026-04-15T16:32:53.495Z","avatar_url":"https://github.com/muchobien.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @muchobien/apollo-persistence-mapper\n\n## Install\n\n```sh\nnpm i @muchobien/apollo-persistence-mapper\n```\n\nor \n\n```sh\nyarn add @muchobien/apollo-persistence-mapper\n```\n\n## Usage\n\n### Graphql\n\n```gql\nquery FooQuery {\n  foos @persist {\n    id\n    name\n    description\n  }\n}\n```\n\nor\n\n```gql\nquery FooQuery {\n  foos {\n    __persist\n    id\n    name\n    description\n  }\n}\n```\n\n### Apollo\n\n```ts\nimport {\n  persistenceMapper,\n  createPersistLink,\n} from '@muchobien/apollo-persistence-mapper';\n\n...\n\n  persistCacheSync({\n    cache,\n    storage: new MMKVWrapper(storage.instance),\n    persistenceMapper,\n    trigger: 'write',\n    debug: __DEV__,\n  });\n\n  const persistLink = createPersistLink();\n  \n  const client = new ApolloClient({\n    cache,\n    link: ApolloLink.from([persistLink, httpLink]),\n  });\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuchobien%2Fapollo-persistence-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuchobien%2Fapollo-persistence-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuchobien%2Fapollo-persistence-mapper/lists"}