当我添加 PaginationAmmountType 来设置每页的最大记录时,我的所有模型 int 变量都会变成 PaginatioAmount
services.AddGraphQL(SchemaBuilder.New()
.AddType(new PaginationAmountType(100))
.AddQueryType<Query>()
.AddMutationType<Mutation>()
.AddAuthorizeDirectiveType()
);
这就是没有 PaginationAmountType 的样子
然后这就是我添加 PaginationAmountType 时的变化
我该如何解决这个问题,或者我到底做错了什么,我需要指定每页的最大记录数,但是这种方法会弄乱我的模型。