From 8fd6a41fbdd8f4cf3abf7918549063a3711bc604 Mon Sep 17 00:00:00 2001 From: Niklas Isenius Date: Mon, 28 Jan 2019 23:43:43 +0100 Subject: [PATCH] Fixed issue with unpublished content not being available for GraphQL queries --- .../Contents/GraphQL/Types/ContentGraphType.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/ContentGraphType.cs b/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/ContentGraphType.cs index 31f68a324..b10f2bce2 100644 --- a/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/ContentGraphType.cs +++ b/src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/ContentGraphType.cs @@ -95,6 +95,14 @@ namespace Squidex.Domain.Apps.Entities.Contents.GraphQL.Types Resolver = Resolve(x => x.Data), Description = $"The data of the {schemaName} content." }); + + AddField(new FieldType + { + Name = "dataDraft", + ResolvedType = new NonNullGraphType(contentDataType), + Resolver = Resolve(x => x.DataDraft), + Description = $"The draft data of the {schemaName} content." + }); } Description = $"The structure of a {schemaName} content type.";