{"id":15785495,"url":"https://github.com/fabien0102/gcf-versioning-poc","last_synced_at":"2025-03-31T17:27:47.103Z","repository":{"id":147076665,"uuid":"118128417","full_name":"fabien0102/gcf-versioning-poc","owner":"fabien0102","description":"Just a POC of a versioning system based on graphcool-framework","archived":false,"fork":false,"pushed_at":"2018-01-19T13:50:27.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T03:01:57.310Z","etag":null,"topics":["graphcool","poc","typescript"],"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/fabien0102.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":"2018-01-19T13:29:31.000Z","updated_at":"2019-04-01T03:42:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"92789b4e-2d62-4697-9d30-bc9565368ef5","html_url":"https://github.com/fabien0102/gcf-versioning-poc","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/fabien0102%2Fgcf-versioning-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgcf-versioning-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgcf-versioning-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabien0102%2Fgcf-versioning-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabien0102","download_url":"https://codeload.github.com/fabien0102/gcf-versioning-poc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246507892,"owners_count":20788907,"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":["graphcool","poc","typescript"],"created_at":"2024-10-04T20:40:30.453Z","updated_at":"2025-03-31T17:27:47.081Z","avatar_url":"https://github.com/fabien0102.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Graphcool versioning POC\n\nJust a little POC to add a versioning system with graphcool.\n\nThe trick is to add a `beforeOperation` hook that save the last state into a separate collection.\n\n## Getting started\n\n1. clone the repo\n1. `gcf deploy`\n1. `gcf playground`\n\n## Classic use case\n\nCreate a user\n```graphql\nmutation {\n  createUser( name: \"fabien0102\") {\n    id\n  }\n}\n```\n\nCreate a post\n```graphql\nmutation {\n  createPost(title: \"test\", authorId: \"cjclxr2wg006b0102d50flrwn\") {\n    id\n    title\n  }\n}\n```\n\nUpdate a post\n```graphql\nmutation {\n  updatePost(id: \"cjclxs4vw006h0102por7sy81\", title: \"po po po\") {\n    id\n    title\n  }\n}\n```\n\nGet the generated history\n```graphql\n{\n  allPosts {\n    id\n    author {\n      id\n    }\n    title\n    history {author {id} title}\n  }\n  \n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabien0102%2Fgcf-versioning-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabien0102%2Fgcf-versioning-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabien0102%2Fgcf-versioning-poc/lists"}