(ctx context.Context, root *ent.File, ownerID int, child string, eagerLoading bool)
| 1014 | } |
| 1015 | |
| 1016 | func (f *fileClient) GetChildFile(ctx context.Context, root *ent.File, ownerID int, child string, eagerLoading bool) (*ent.File, error) { |
| 1017 | query := f.childFileQuery(ownerID, false, root) |
| 1018 | if eagerLoading { |
| 1019 | query = withFileEagerLoading(ctx, query) |
| 1020 | } |
| 1021 | |
| 1022 | return query. |
| 1023 | Where(file.Name(child)).First(ctx) |
| 1024 | } |
| 1025 | |
| 1026 | func (f *fileClient) GetChildFiles(ctx context.Context, args *ListFileParameters, ownerID int, roots ...*ent.File) (*ListFileResult, error) { |
| 1027 | rawQuery := f.childFileQuery(ownerID, args.SharedWithMe, roots...) |
nothing calls this directly
no test coverage detected