mirror of https://github.com/Squidex/squidex.git
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.
41 lines
1.2 KiB
41 lines
1.2 KiB
// ==========================================================================
|
|
// Squidex Headless CMS
|
|
// ==========================================================================
|
|
// Copyright (c) Squidex UG (haftungsbeschränkt)
|
|
// All rights reserved. Licensed under the MIT license.
|
|
// ==========================================================================
|
|
|
|
using System;
|
|
using GraphQL.Resolvers;
|
|
using GraphQL.Types;
|
|
using Squidex.Domain.Apps.Core;
|
|
using Squidex.Domain.Apps.Core.Schemas;
|
|
using Squidex.Domain.Apps.Entities.Schemas;
|
|
|
|
namespace Squidex.Domain.Apps.Entities.Contents.GraphQL
|
|
{
|
|
public interface IGraphModel
|
|
{
|
|
bool CanGenerateAssetSourceUrl { get; }
|
|
|
|
IFieldPartitioning ResolvePartition(Partitioning key);
|
|
|
|
IFieldResolver ResolveAssetUrl();
|
|
|
|
IFieldResolver ResolveAssetSourceUrl();
|
|
|
|
IFieldResolver ResolveAssetThumbnailUrl();
|
|
|
|
IFieldResolver ResolveContentUrl(ISchemaEntity schema);
|
|
|
|
IGraphType GetAssetType();
|
|
|
|
IGraphType GetContentType(Guid schemaId);
|
|
|
|
IGraphType GetContentDataType(Guid schemaId);
|
|
|
|
IGraphType GetInputGraphType(IField field);
|
|
|
|
(IGraphType ResolveType, IFieldResolver Resolver) GetGraphType(IField field);
|
|
}
|
|
}
|
|
|