{"id":15015962,"url":"https://github.com/mirego/ember-cli-graphql-file","last_synced_at":"2025-04-12T10:09:19.148Z","repository":{"id":17026590,"uuid":"81022329","full_name":"mirego/ember-cli-graphql-file","owner":"mirego","description":"An addon to precompile your `.graphql` files with `graphql-tag` and turn them into importable modules.","archived":false,"fork":false,"pushed_at":"2020-05-12T15:25:35.000Z","size":12,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-03-26T05:02:46.302Z","etag":null,"topics":["ember","ember-addon","ember-cli","graphql"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mirego.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-05T21:09:25.000Z","updated_at":"2017-10-15T01:04:27.000Z","dependencies_parsed_at":"2022-07-26T12:02:00.118Z","dependency_job_id":null,"html_url":"https://github.com/mirego/ember-cli-graphql-file","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/mirego%2Fember-cli-graphql-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Fember-cli-graphql-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Fember-cli-graphql-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mirego%2Fember-cli-graphql-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mirego","download_url":"https://codeload.github.com/mirego/ember-cli-graphql-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248189865,"owners_count":21062268,"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":["ember","ember-addon","ember-cli","graphql"],"created_at":"2024-09-24T19:48:13.016Z","updated_at":"2025-04-12T10:09:19.123Z","avatar_url":"https://github.com/mirego.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ember-cli-graphql-file\n\nAn addon to precompile your `.graphql` files with [graphql-tag](https://github.com/apollographql/graphql-tag) and turn them into importable modules.\n\n## Installation\n\n```\n$ ember install ember-cli-graphql-file\n```\n\n## Usage\n\n__Put your GraphQL query in a file__\n\n```graphql\n# app/graphql/query.graphql\n\nquery {\n  hero {\n    name\n\n    friends {\n      name\n    }\n  }\n}\n```\n\n__Import it from JS to execute it with Apollo__\n\n```js\nimport Ember from 'ember';\nimport query from 'my-app/graphql/query';\n\nexport Ember.Route.extend({\n  apollo: Ember.inject.service(),\n\n  model() {\n    return this.get('apollo').query({query});\n  }\n});\n```\n\n## License\n\n`ember-cli-graphql-file` is © 2017 [Mirego](http://www.mirego.com) and may be freely distributed under the [New BSD license](http://opensource.org/licenses/BSD-3-Clause).\nSee the [`LICENSE.md`](https://github.com/mirego/ember-cli-graphql-file/blob/master/LICENSE.md) file.\n\n## About Mirego\n\n[Mirego](http://mirego.com) is a team of passionate people who believe that work is a place where you can innovate and have fun. We're a team of [talented people](http://life.mirego.com) who imagine and build beautiful Web and mobile applications. We come together to share ideas and [change the world](http://mirego.org).\n\nWe also [love open-source software](http://open.mirego.com) and we try to give back to the community as much as we can.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirego%2Fember-cli-graphql-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmirego%2Fember-cli-graphql-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmirego%2Fember-cli-graphql-file/lists"}