From e521e4e402011592454be7c0320459daa73a5540 Mon Sep 17 00:00:00 2001 From: Michiel De Mey Date: Sun, 15 Sep 2019 16:31:38 +0200 Subject: [PATCH] Support for GraphQL Interface type --- packages/ra-data-graphql-simple/src/buildGqlQuery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ra-data-graphql-simple/src/buildGqlQuery.js b/packages/ra-data-graphql-simple/src/buildGqlQuery.js index 0f4fd044507..6a4cb115cf5 100644 --- a/packages/ra-data-graphql-simple/src/buildGqlQuery.js +++ b/packages/ra-data-graphql-simple/src/buildGqlQuery.js @@ -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))]; }