From 555bf188d89e1c03fd8dad7c7e4edcf89f7bb1cb Mon Sep 17 00:00:00 2001 From: Sebastian Stehle Date: Mon, 20 Nov 2017 22:50:57 +0100 Subject: [PATCH] Correct usage of queries. Closes: #179 --- .../Contents/GraphQL/GraphQLQuery.cs | 4 +++- .../content/pages/content/content-field.component.html | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Squidex.Domain.Apps.Read/Contents/GraphQL/GraphQLQuery.cs b/src/Squidex.Domain.Apps.Read/Contents/GraphQL/GraphQLQuery.cs index d8ee25be8..476230a3a 100644 --- a/src/Squidex.Domain.Apps.Read/Contents/GraphQL/GraphQLQuery.cs +++ b/src/Squidex.Domain.Apps.Read/Contents/GraphQL/GraphQLQuery.cs @@ -6,6 +6,8 @@ // All rights reserved. // ========================================================================== +using Newtonsoft.Json.Linq; + namespace Squidex.Domain.Apps.Read.Contents.GraphQL { public class GraphQLQuery @@ -16,6 +18,6 @@ namespace Squidex.Domain.Apps.Read.Contents.GraphQL public string Query { get; set; } - public string Variables { get; set; } + public JObject Variables { get; set; } } } diff --git a/src/Squidex/app/features/content/pages/content/content-field.component.html b/src/Squidex/app/features/content/pages/content/content-field.component.html index 855d37bce..a5c70ebf4 100644 --- a/src/Squidex/app/features/content/pages/content/content-field.component.html +++ b/src/Squidex/app/features/content/pages/content/content-field.component.html @@ -24,7 +24,7 @@
- +
@@ -47,10 +47,10 @@
- +
- +