Skip to content

Commit

Permalink
Merge pull request #203 from alphasights/jt/resolve-always
Browse files Browse the repository at this point in the history
Allow explicit relationship resolution
  • Loading branch information
JamesTsaoAS authored Aug 12, 2021
2 parents e871266 + 7841c5c commit c2b02bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addon/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c2b02bd

Please sign in to comment.