Browse Source

Fixed issue with unpublished content not being available for GraphQL queries

pull/344/head
Niklas Isenius 7 years ago
parent
commit
8fd6a41fbd
  1. 8
      src/Squidex.Domain.Apps.Entities/Contents/GraphQL/Types/ContentGraphType.cs

8
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), Resolver = Resolve(x => x.Data),
Description = $"The data of the {schemaName} content." 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."; Description = $"The structure of a {schemaName} content type.";

Loading…
Cancel
Save