diff --git a/juniper/src/types/containers.rs b/juniper/src/types/containers.rs index 37b24e93..4af6bd0c 100644 --- a/juniper/src/types/containers.rs +++ b/juniper/src/types/containers.rs @@ -196,8 +196,13 @@ where for o in iter { match executor.resolve(info, &o) { - Ok(value) if stop_on_null && value.is_null() => return Ok(value), - Ok(value) => result.push(value), + Ok(value) => { + if stop_on_null && value.is_null() { + return Ok(value); + } else { + result.push(value) + } + } Err(e) => return Err(e), } }