Skip to content

Commit 253d306

Browse files
authored
Add iter_orphan_extension_types method on SchemaBuilder (#1012)
1 parent ddb4ded commit 253d306

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/apollo-compiler/src/schema/from_ast.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,10 @@ impl SchemaBuilder {
268268
}
269269
}
270270

271+
pub fn iter_orphan_extension_types(&self) -> impl Iterator<Item = &Name> {
272+
self.orphan_type_extensions.keys()
273+
}
274+
271275
/// Returns the schema built from all added documents
272276
#[allow(clippy::result_large_err)] // Typically not called very often
273277
pub fn build(self) -> Result<Schema, WithErrors<Schema>> {

0 commit comments

Comments
 (0)