This commit is contained in:
2023-02-05 19:26:25 +01:00
parent c5dfcebaad
commit 03366b7c5b

View File

@@ -229,6 +229,10 @@ mod tests {
let root = query().select("a").arg("arg", input).unwrap();
let query = root.build().unwrap();
assert_eq!(query, r#"query{a(arg:"some-string")}"#.to_string())
assert_eq!(
query,
r#"query{a(arg:{"name":"some-name","s":{"name":"some-other-name","s":null}})}"#
.to_string()
)
}
}