Initial Commit ...
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using GraphQL.Types;
|
||||
using xDataService.Models;
|
||||
using xModels.Base;
|
||||
|
||||
namespace xDataService.GraphQL {
|
||||
public class XBaseGraphQLEventType<TEntity, TKey, TGraphType> : ObjectGraphType<XBaseEventModel<TEntity>>
|
||||
where TGraphType : IGraphType
|
||||
where TEntity : XBaseEntity<TKey> {
|
||||
public XBaseGraphQLEventType () {
|
||||
//
|
||||
Name = nameof (XBaseGraphQLEventType<TEntity, TKey, TGraphType>);
|
||||
|
||||
//
|
||||
Field (x => x.Model, type : typeof (TGraphType));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user