Skip to content

Commit

Permalink
Merge pull request #3712 from MichielDeMey/patch-1
Browse files Browse the repository at this point in the history
Support for GraphQL Interface type, continuation of 3692
  • Loading branch information
djhi authored Nov 27, 2019
2 parents 280e577 + 6775b8c commit 65245ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-data-graphcool/src/buildGqlQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const buildFields = introspectionResults => fields =>
return acc;
}

if (type.kind !== TypeKind.OBJECT) {
if (type.kind !== TypeKind.OBJECT && type.kind !== TypeKind.INTERFACE) {
return [...acc, gqlTypes.field(gqlTypes.name(field.name))];
}

Expand Down

0 comments on commit 65245ca

Please sign in to comment.