{"id":15984659,"url":"https://github.com/aappddeevv/sbt-graphql-apollo-gen-scala","last_synced_at":"2025-04-04T20:46:08.781Z","repository":{"id":97609903,"uuid":"240016326","full_name":"aappddeevv/sbt-graphql-apollo-gen-scala","owner":"aappddeevv","description":"Use the apollo code generator to create scala sources from graphql operations and schema.","archived":false,"fork":false,"pushed_at":"2020-02-22T16:07:54.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-10T05:25:58.192Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/aappddeevv.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":"2020-02-12T13:13:12.000Z","updated_at":"2020-02-22T16:07:56.000Z","dependencies_parsed_at":"2023-05-22T11:31:15.631Z","dependency_job_id":null,"html_url":"https://github.com/aappddeevv/sbt-graphql-apollo-gen-scala","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"395cebc99f14a5d61551ca307f8028181205bfe6"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aappddeevv%2Fsbt-graphql-apollo-gen-scala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aappddeevv%2Fsbt-graphql-apollo-gen-scala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aappddeevv%2Fsbt-graphql-apollo-gen-scala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aappddeevv%2Fsbt-graphql-apollo-gen-scala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aappddeevv","download_url":"https://codeload.github.com/aappddeevv/sbt-graphql-apollo-gen-scala/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247249602,"owners_count":20908211,"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-10-08T02:10:00.902Z","updated_at":"2025-04-04T20:46:08.761Z","avatar_url":"https://github.com/aappddeevv.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate graphql Artifacts\n\nGenerate graphql artifacts using the apollo code generator.\n\nTo use, add the following:\n\n```scala\n// plugins.sbt\nresolvers += Resolver.bintrayIvyRepo(\"aappddeevv\", \"sbt-plugins\")\n\naddSbtPlugin(\"ttg\" % \"sbt-graphql-apollo-gen-scala\" % \"\u003clatest version here\u003e\")\n```\n\nThen in your build.sbt:\n\n```scala\n// build.sbt\n...project def...\n  .enablePlugin(ApolloCodegenPlugin)\n  .setting(graphQLPackageName := \"org.blah\") // defaults to project normalized name\n```\n\nBy default, the plugin looks for graphql sources at `\u003cproject\u003e/src/main/graphql/*.graphql`.\nIt is assumed that the schema file is called `schema.json`. The schema file can be\ngenerated using the apollo cli as well.\n\nSee the plugin code for various settings to customize the code\ngeneration process, e.g., the schema file or the output package name.\n\nDon't forget to install the apollo tooling CLI via npm :-)\n\n```sh\n# install to local project folder with a package.json already present\nnpm i apollo\n```\n\nInstead of this plugin you could use the watch facility in apollo codegen\ndirectly and ensure that you pickup all your files accordingly and set\nthe output file correctly into the src_generated directory or a well-known\nlocation of your choosing to ensure a rebuild as needed.\n\n# License\n\nMIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faappddeevv%2Fsbt-graphql-apollo-gen-scala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faappddeevv%2Fsbt-graphql-apollo-gen-scala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faappddeevv%2Fsbt-graphql-apollo-gen-scala/lists"}