https://kotlinlang.org logo
#apollo-kotlin
Title
# apollo-kotlin
a

agrosner

11/01/2023, 2:00 PM
can we use data builders to generate fragment instances?
b

bod

11/02/2023, 8:49 AM
Yes! You need to generate fragment implementations (
generateFragmentImplementations.set(true)
). example
thank you color 1
a

agrosner

11/10/2023, 10:01 PM
do fragment implementations include nested field content? im seeing it missing from the builders generated
b

bod

11/13/2023, 8:19 AM
do you mean the data builder for sub fields? They would be functions defined in the
type
package, for instance here
buildLion
is defined in
Lion.kt
in
type
.
a

agrosner

11/14/2023, 2:53 PM
sorry, was not working yesterday . i figured it out. i needed to add the apollo used coordinates of the module I was working with. without it, the builder was missing the fields
b

bod

11/14/2023, 2:55 PM
oh all right
2 Views