mirror of https://github.com/Squidex/squidex.git
committed by
GitHub
10 changed files with 72 additions and 52 deletions
@ -1,37 +0,0 @@ |
|||||
// ==========================================================================
|
|
||||
// Squidex Headless CMS
|
|
||||
// ==========================================================================
|
|
||||
// Copyright (c) Squidex UG (haftungsbeschraenkt)
|
|
||||
// All rights reserved. Licensed under the MIT license.
|
|
||||
// ==========================================================================
|
|
||||
|
|
||||
using GraphQL.Types; |
|
||||
using GraphQLParser.AST; |
|
||||
|
|
||||
namespace Squidex.Domain.Apps.Entities.Contents.GraphQL.Types.Primitives; |
|
||||
|
|
||||
public class JsonNoopGraphType : ScalarGraphType |
|
||||
{ |
|
||||
public JsonNoopGraphType() |
|
||||
{ |
|
||||
// The name is used for equal comparison. Therefore it is important to treat it as readonly.
|
|
||||
Name = "JsonScalar"; |
|
||||
|
|
||||
Description = "Unstructured Json object"; |
|
||||
} |
|
||||
|
|
||||
public override object? ParseLiteral(GraphQLValue value) |
|
||||
{ |
|
||||
return value; |
|
||||
} |
|
||||
|
|
||||
public override object? ParseValue(object? value) |
|
||||
{ |
|
||||
return value; |
|
||||
} |
|
||||
|
|
||||
public override object? Serialize(object? value) |
|
||||
{ |
|
||||
return value; |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue