Company
Date Published
Author
Martin Bonnin
Word count
1186
Language
English
Hacker News points
None

Summary

Happy New Year everyone. The author shares four tips and tricks for working with GraphQL in Kotlin apps, focusing on improving the developer experience. First, using SDL (Schema Definition Language) can make schema definitions more concise and easier to read. Second, updating schema in GitHub Actions can automate this process, reducing build time and improving reproducibility. Third, failing on deprecated fields usages can help ensure consistency and prevent unnecessary code changes. Fourth, the data builders introduced in Apollo Kotlin 3.6.0 provide a convenient way to test GraphQL APIs without having to manually manage complex network requests or model constructors.