wasyl
03/27/2024, 10:11 AMquery Foo {
bar { baz }
}
the builders allow me to write
Foo.Builder {
bar = buildBar {
someUnrelatedPropertyInBar = ""
// I'm allowed to leave `baz` unset
}
}
is that right or I'm missing something? Is there a way for a less flexible API, one that mirrors the queries and would give a typesafe way to build a json for a given data (one that forces me to pass the fetched fields, and doesn't allow passing fields that aren't fetched)?bod
03/27/2024, 10:18 AMwasyl
03/27/2024, 10:20 AMwasyl
03/27/2024, 10:21 AMbod
03/27/2024, 10:24 AM... on Xyz
fragment can have a different shape, which needs to generate its own model - and if you have nested ones that leads to a lot of combinations. You can read about this in this issue about the responseBased codegen πwasyl
03/27/2024, 10:27 AMbod
03/27/2024, 10:28 AMwasyl
03/27/2024, 10:30 AMbod
03/27/2024, 10:32 AMwasyl
03/27/2024, 10:39 AMbod
03/27/2024, 10:43 AMbuildXyz {}
and not be bound to a specific querybod
03/27/2024, 10:43 AMwasyl
03/27/2024, 10:51 AM