This commit is contained in:
Kasper Juul Hermansen 2023-02-05 19:26:25 +01:00
parent c5dfcebaad
commit 03366b7c5b
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

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()
)
}
}