{"id":13714783,"url":"https://github.com/ctrlplusb/prisma2-template","last_synced_at":"2025-05-07T09:15:52.543Z","repository":{"id":36577086,"uuid":"227823270","full_name":"ctrlplusb/prisma2-template","owner":"ctrlplusb","description":"A scratchpad for Prisma2","archived":false,"fork":false,"pushed_at":"2022-12-11T17:05:17.000Z","size":1306,"stargazers_count":13,"open_issues_count":14,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T09:15:42.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ctrlplusb.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}},"created_at":"2019-12-13T11:20:00.000Z","updated_at":"2025-02-15T15:00:02.000Z","dependencies_parsed_at":"2023-01-17T03:00:26.206Z","dependency_job_id":null,"html_url":"https://github.com/ctrlplusb/prisma2-template","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/ctrlplusb%2Fprisma2-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fprisma2-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fprisma2-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctrlplusb%2Fprisma2-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctrlplusb","download_url":"https://codeload.github.com/ctrlplusb/prisma2-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252847524,"owners_count":21813458,"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":"2024-08-03T00:00:49.749Z","updated_at":"2025-05-07T09:15:52.498Z","avatar_url":"https://github.com/ctrlplusb.png","language":"JavaScript","readme":"# Prisma 2 Scratchpad\n\nThis is a template for Prisma 2 is intended to allow rapid schema experimentation / development.\n\nAny time you make a change to your Prisma schema the SQLite DB will be destroyed and rebuilt utilising the new schema definition. Any data that you may have inserted into the database will be lost with any change that you make to the schema. After the database is migrated to match the schema the Photon instance will also be regenerated.\n\nIn addition to this the Nexus GraphQL schema are also configured to automatically regenerate any time their associated files change. restart the server when you make changes to your Prisma schema, Nexus schema, or server source files.\n\nThe GraphQL playground should be available to you in the browser. You may need to refresh the browser preview panel if you would like the GraphQL Playground to load the latest version of the GraphQL Schema to help with code completion etc.\n\n## Example queries\n\nCreate a post:\n\n```graphql\nmutation {\n  createOnePost(\n    data: {\n      title: \"My post\"\n      content: \"Lorem ipsum\"\n      category: { create: { name: \"Examples\" } }\n    }\n  ) {\n    title\n  }\n}\n```\n\nQuery for posts:\n\n```graphql\nquery {\n  posts {\n    title\n    category {\n      name\n    }\n  }\n}\n```\n\n## Running locally\n\nClone the repo and install deps:\n\n```\ngit clone https://github.com/ctrlplusb/prisma2-template\ncd prisma2-template\nyarn install\n```\n\nStart the development server:\n\n```\nyarn develop\n```\n","funding_links":[],"categories":[":safety_vest: Community Prisma Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlplusb%2Fprisma2-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctrlplusb%2Fprisma2-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctrlplusb%2Fprisma2-template/lists"}