Skip to content

Commit 95f2a98

Browse files
committed
graph: remove the pruning check completely for source subgraphs
1 parent 3be77cc commit 95f2a98

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

graph/src/data_source/subgraph.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -356,20 +356,6 @@ impl UnresolvedDataSource {
356356
return Err(anyhow!("Nested subgraph data sources are not supported."));
357357
}
358358

359-
let pruning_enabled = match source_manifest.indexer_hints.as_ref() {
360-
None => false,
361-
Some(hints) => match hints.prune.as_ref() {
362-
None => false,
363-
Some(prune) => !matches!(prune, crate::data::subgraph::Prune::Never),
364-
},
365-
};
366-
367-
if pruning_enabled {
368-
return Err(anyhow!(
369-
"Pruning is enabled for source subgraph, which is not supported"
370-
));
371-
}
372-
373359
let mapping_entities: Vec<String> = self
374360
.mapping
375361
.handlers

0 commit comments

Comments
 (0)