Closed medz closed 8 months ago
当前,只支持粗糙的 select 和 inlucde,只能在顶层进行数据选择,例如:
select
inlucde
UserInclude( id: true, posts: true ); // -> {"id": 1, posts: [{id: 1, title: hello}, ...]}
而实际情况是,我们需要更细致的字段选择或者 include:
UserSelect( id: true posts: PostFindManyArgs( select: PostSelect(title: true) ) ); // -> {id: 1, posts: [{title: Hello}, ...]}
当前,只支持粗糙的
select
和inlucde
,只能在顶层进行数据选择,例如:而实际情况是,我们需要更细致的字段选择或者 include: