We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9140c1a + 2cc4d6c commit e533278Copy full SHA for e533278
src/Our.Umbraco.GraphQL/Types/PublishedContentQuery.cs
@@ -1,5 +1,8 @@
1
+using System;
2
using System.Collections.Generic;
3
using GraphQL.Types;
4
+using Umbraco.Core.Configuration;
5
+using Umbraco.Web.Routing;
6
7
namespace Our.Umbraco.GraphQL.Types
8
{
@@ -24,7 +27,7 @@ public PublishedContentQuery(IEnumerable<IGraphType> documentGraphTypes)
24
27
.Argument<NonNullGraphType<StringGraphType>>("url", "The relative content url")
25
28
.Resolve(context =>
26
29
- var userContext = context.UmbracoUserContext();
30
+ var userContext = (UmbracoGraphQLContext)context.UserContext;
31
var url = context.GetArgument<string>("url");
32
33
var pcr = new PublishedContentRequest(
0 commit comments