Skip to content

Commit

Permalink
Merge pull request #3692 from MichielDeMey/master
Browse files Browse the repository at this point in the history
Support for GraphQL Interface type
  • Loading branch information
djhi authored Sep 16, 2019
2 parents d41fe28 + e521e4e commit ab9a31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-data-graphql-simple/src/buildGqlQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const buildFields = (introspectionResults, path = []) => 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 ab9a31a

Please sign in to comment.