Eduard Boloș
07/13/2023, 9:28 AMfragment A on User {
f1(capabilities: ["CAP1", "CAP2"])
}
fragment B on User {
f2(capabilities: ["CAP1", "CAP2"])
}
Is there some way to define that argument once, to avoid having to maintain multiple definitions of it? The best idea I had was to use GQL variables, but these fragments are included transitively in many queries, so it's not a very scalable solution 😄bod
07/13/2023, 9:48 AMmbonnin
07/13/2023, 9:50 AMmbonnin
07/13/2023, 9:53 AMmbonnin
07/13/2023, 9:54 AMbod
07/13/2023, 9:56 AMEduard Boloș
07/13/2023, 10:11 AMEduard Boloș
07/13/2023, 10:34 AMbod
07/13/2023, 10:43 AMmbonnin
07/13/2023, 11:09 AMpreprocessGraphQLFiles
that does string replace. That might or might not be worth the extra hoopsephemient
07/13/2023, 7:33 PMdebugFlags: Optional<List<DebugFlag>>
input to have default = Optional.present(getCurrentDebugFlags())
. in our case, the easiest thing for me to do was to use a Gradle/AGP transform to rewrite the bytecode