(ctx context.Context, root *ent.File, eagerLoading bool)
| 996 | } |
| 997 | |
| 998 | func (f *fileClient) GetParentFile(ctx context.Context, root *ent.File, eagerLoading bool) (*ent.File, error) { |
| 999 | query := f.client.File.QueryParent(root) |
| 1000 | if eagerLoading { |
| 1001 | query = withFileEagerLoading(ctx, query) |
| 1002 | } |
| 1003 | |
| 1004 | return query.First(ctx) |
| 1005 | } |
| 1006 | |
| 1007 | func (f *fileClient) QueryMetadata(ctx context.Context, root *ent.File) error { |
| 1008 | metadata, err := f.client.File.QueryMetadata(root).All(ctx) |
nothing calls this directly
no test coverage detected