diff --git a/crates/apollo-smith/src/lib.rs b/crates/apollo-smith/src/lib.rs index e9cdbbe03..e31d06723 100644 --- a/crates/apollo-smith/src/lib.rs +++ b/crates/apollo-smith/src/lib.rs @@ -207,6 +207,11 @@ impl<'a> DocumentBuilder<'a> { Ok(builder) } + /// Returns whether the provided `Unstructured` is now empty + pub fn input_exhausted(&self) -> bool { + self.u.is_empty() + } + /// Convert a `DocumentBuilder` into a GraphQL `Document` pub fn finish(self) -> Document { Document {