using GraphQL.Types; using xDataService.Models; using xModels.Dtos; namespace xDataService.Constants { public static class XGraphQLHelper { public static QueryArgument GetIdArgument () where TKey : IGraphType { return new QueryArgument { Name = "id", Description = "the id of entity, which you want to retrieve ..." }; } public static QueryArgument IgnoreSoftDeletedArgument = new QueryArgument { Name = "ignoreSoftDeleteds", DefaultValue = true, Description = "determines result should ignore soft deleted items or not ..." }; public static QueryArgument SearchQueryArgument = new QueryArgument { Name = "searchQuery", Description = "the value which had to looking for ..." }; public static QueryArgument QueryArgument = new QueryArgument { Name = "query", DefaultValue = new XQuery (), Description = "determines query structure info for retrieving data ..." }; } }