From c2b80bb2b40fb7d51e5647cc34825d066563f88d Mon Sep 17 00:00:00 2001 From: James Tsao Date: Tue, 20 Jul 2021 12:17:44 -0400 Subject: [PATCH 1/2] Allow relationships to be resolved explicitly, even if they were had been referenced previously. --- addon/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/parser.js b/addon/parser.js index 0e31185..3160b4b 100644 --- a/addon/parser.js +++ b/addon/parser.js @@ -36,7 +36,7 @@ class Parser { field = this._buildAsyncRelationship(relName, relationship); } else { let relModel = store.modelFor(type); - if (this.visited.indexOf(relName) === -1) { + if (this.visited.indexOf(relName) === -1 || options.resolveAlways) { field = new Type.Field( this.normalizeCaseFn(relName), null, From 7841c5ca8d73727b06e0bd7eaa3226023d29ef96 Mon Sep 17 00:00:00 2001 From: James Tsao Date: Tue, 20 Jul 2021 13:26:42 -0400 Subject: [PATCH 2/2] Bump version number --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index db951be..a452b80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-graphql-adapter", - "version": "1.1.4", + "version": "1.1.5", "description": "An Ember CLI adapter for GraphQL", "keywords": [ "ember-addon"