public IObjectFilterOperationDescriptor <TObject> AllowObject <TFilter>() where TFilter : FilterInputType <TObject> { ObjectFilterOperationDescriptor <TObject> field = CreateOperation(FilterOperationKind.Object); field.Type <TFilter>(); Filters.Add(field); return(field); }
public IObjectFilterOperationDescriptor <TObject> AllowObject( Action <IFilterInputTypeDescriptor <TObject> > descriptor) { ObjectFilterOperationDescriptor <TObject> field = GetOrCreateOperation(FilterOperationKind.Object); var type = new FilterInputType <TObject>(descriptor); var typeReference = new SchemaTypeReference(type); field.Type(typeReference); return(field); }