Hello hello! We were having a discussion with the ...
# apollo-kotlin
m
Hello hello! We were having a discussion with the team regarding modularization and a doubt popped out. If we have a schema module and then *feature modules " hosting their respective mutations /query. If we pull a new schema that add a field to a new type. Would that cause recompilation of all modules or just the one hosting the mutations / query with the type affected?
b
If the schema changed but you didn't use any of the new fields in any operations, this shouldn't trigger any recompilations actually. If you're using the new fields, only the operations using them should be recompiled. To be 100% sure maybe you can play around with this sample project. It's a bit simplistic but should be enough to investigate about recompilation.
m
Excellent thanks!
Cc @John O'Reilly fwiw 👍
👍 1