Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
989 B

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschraenkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using GraphQL;
using GraphQL.NewtonsoftJson;
using Newtonsoft.Json.Linq;
using Squidex.Domain.Apps.Entities.Contents.GraphQL;
using Squidex.Infrastructure.Reflection;
namespace Squidex.Areas.Api.Controllers.Contents.Models
{
public class GraphQLPostDto
{
public string OperationName { get; set; }
public string Query { get; set; }
public JObject Variables { get; set; }
public GraphQLQuery ToQuery()
{
var query = SimpleMapper.Map(this, new GraphQLQuery());
query.Inputs = Variables?.ToInputs();
return query;
}
}
}