├── app ├── .gitkeep └── services │ └── apollo.js ├── addon ├── .gitkeep ├── index.js ├── utils │ └── inject.js ├── -private │ └── apollo │ │ ├── setup-hooks.js │ │ └── query-manager.js └── services │ └── apollo.js ├── vendor └── .gitkeep ├── tests ├── unit │ ├── .gitkeep │ ├── build │ │ ├── test-fragment.graphql │ │ ├── test-subscription.graphql │ │ ├── test-query.graphql │ │ ├── test-fragment-with-fragment.graphql │ │ ├── test-mutation.graphql │ │ ├── test-query-with-nested-fragment.graphql │ │ └── graphql-filter-test.js │ ├── -private │ │ ├── query-manager-macro-decorator-test.js │ │ ├── query-manager-hooks-object-test.js │ │ ├── query-manager-hooks-component-test.js │ │ └── query-manager-hooks-route-test.js │ └── services │ │ └── apollo-test.js ├── integration │ └── .gitkeep ├── dummy │ ├── app │ │ ├── helpers │ │ │ └── .gitkeep │ │ ├── routes │ │ │ ├── .gitkeep │ │ │ ├── new-review.js │ │ │ ├── index.js │ │ │ └── movie.js │ │ ├── components │ │ │ ├── .gitkeep │ │ │ ├── movie-card.js │ │ │ ├── movie-detail.js │ │ │ └── create-review.js │ │ ├── controllers │ │ │ ├── .gitkeep │ │ │ ├── index.js │ │ │ └── movie.js │ │ ├── templates │ │ │ ├── application.hbs │ │ │ ├── new-review.hbs │ │ │ ├── index.hbs │ │ │ ├── components │ │ │ │ ├── movie-detail.hbs │ │ │ │ ├── create-review.hbs │ │ │ │ └── movie-card.hbs │ │ │ └── movie.hbs │ │ ├── gql │ │ │ ├── fragments │ │ │ │ └── review-fragment.graphql │ │ │ ├── mutations │ │ │ │ ├── change-movie-title.graphql │ │ │ │ └── create-review.graphql │ │ │ └── queries │ │ │ │ ├── movies.graphql │ │ │ │ └── movie.graphql │ │ ├── router.js │ │ ├── app.js │ │ ├── index.html │ │ ├── schema.graphql │ │ ├── utils │ │ │ └── graphql-type-query.js │ │ ├── styles │ │ │ └── app.css │ │ └── instance-initializers │ │ │ └── mock-graphql.js │ ├── public │ │ └── robots.txt │ └── config │ │ ├── optional-features.json │ │ ├── targets.js │ │ ├── ember-cli-update.json │ │ └── environment.js ├── test-helper.js ├── helpers │ ├── setup.js │ ├── index.js │ └── start-pretender.js ├── index.html └── acceptance │ ├── computed-with-watch-query-test.js │ ├── mutations-test.js │ ├── array-watch-query-test.js │ ├── query-and-unsubscribe-test.js │ └── watch-query-test.js ├── .watchmanconfig ├── .prettierrc.js ├── config ├── environment.js └── ember-try.js ├── .template-lintrc.js ├── blueprints └── ember-apollo-client │ └── index.js ├── .github ├── workflows │ ├── release-drafter.yml │ └── ci.yml └── release-drafter.yml ├── .editorconfig ├── .eslintignore ├── .prettierignore ├── .ember-cli ├── .gitignore ├── testem.js ├── CONTRIBUTING.md ├── .npmignore ├── ember-cli-build.js ├── LICENSE.md ├── .gqlconfig ├── .eslintrc.js ├── index.js ├── package.json ├── CHANGELOG.md └── README.md /app/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /addon/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/unit/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/integration/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dummy/app/helpers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dummy/app/routes/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dummy/app/components/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dummy/app/controllers/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dummy/app/templates/application.hbs: -------------------------------------------------------------------------------- 1 | {{outlet}} 2 | -------------------------------------------------------------------------------- /.watchmanconfig: -------------------------------------------------------------------------------- 1 | { 2 | "ignore_dirs": ["tmp", "dist"] 3 | } 4 | -------------------------------------------------------------------------------- /app/services/apollo.js: -------------------------------------------------------------------------------- 1 | export { default } from 'ember-apollo-client/services/apollo'; 2 | -------------------------------------------------------------------------------- /tests/dummy/public/robots.txt: -------------------------------------------------------------------------------- 1 | # http://www.robotstxt.org 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /tests/unit/build/test-fragment.graphql: -------------------------------------------------------------------------------- 1 | fragment testFragment on Object { 2 | name 3 | } 4 | -------------------------------------------------------------------------------- /.prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | singleQuote: true, 3 | trailingComma: 'es5', 4 | }; 5 | -------------------------------------------------------------------------------- /tests/unit/build/test-subscription.graphql: -------------------------------------------------------------------------------- 1 | subscription TestSubscription { 2 | subject { 3 | name 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /tests/dummy/app/gql/fragments/review-fragment.graphql: -------------------------------------------------------------------------------- 1 | fragment ReviewFragment on Review { 2 | stars 3 | commentary 4 | } 5 | -------------------------------------------------------------------------------- /tests/dummy/app/routes/new-review.js: -------------------------------------------------------------------------------- 1 | import Route from '@ember/routing/route'; 2 | 3 | export default Route.extend({}); 4 | -------------------------------------------------------------------------------- /config/environment.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function (/* environment, appConfig */) { 4 | return {}; 5 | }; 6 | -------------------------------------------------------------------------------- /tests/dummy/app/templates/new-review.hbs: -------------------------------------------------------------------------------- 1 |
21 | {{@movie.overview}} 22 |
23 | 24 |
38 | {{this.response}}
39 |
40 | {{/if}}
41 |
--------------------------------------------------------------------------------
/tests/dummy/app/templates/components/movie-card.hbs:
--------------------------------------------------------------------------------
1 | 21 | {{@movie.overview}} 22 |
23 | 24 |{{review.stars}} stars
42 | {{else}} 43 |No reviews
44 | {{/each}} 45 |