Initial Commit ...
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using GraphQL.Types;
|
||||
using xDataService.Models;
|
||||
using xModels.Dtos;
|
||||
|
||||
namespace xDataService.Constants {
|
||||
public static class XGraphQLHelper {
|
||||
public static QueryArgument<TKey> GetIdArgument<TKey> ()
|
||||
where TKey : IGraphType {
|
||||
return new QueryArgument<TKey> {
|
||||
Name = "id",
|
||||
Description = "the id of entity, which you want to retrieve ..."
|
||||
};
|
||||
}
|
||||
|
||||
public static QueryArgument<BooleanGraphType> IgnoreSoftDeletedArgument = new QueryArgument<BooleanGraphType> {
|
||||
Name = "ignoreSoftDeleteds",
|
||||
DefaultValue = true,
|
||||
Description = "determines result should ignore soft deleted items or not ..."
|
||||
};
|
||||
|
||||
public static QueryArgument<BooleanGraphType> ContainsDetailArgument = new QueryArgument<BooleanGraphType> {
|
||||
Name = "containsDetail",
|
||||
DefaultValue = false,
|
||||
Description = "determines result should contains navigation properties or not ..."
|
||||
};
|
||||
|
||||
public static QueryArgument<StringGraphType> SearchQueryArgument = new QueryArgument<StringGraphType> {
|
||||
Name = "searchQuery",
|
||||
Description = "the value which had to looking for ..."
|
||||
};
|
||||
|
||||
public static QueryArgument<XGraphQueryType> QueryArgument = new QueryArgument<XGraphQueryType> {
|
||||
Name = "query",
|
||||
DefaultValue = new XQuery (),
|
||||
Description = "determines query structure info for retrieving data ..."
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user