agrosner
04/05/2022, 7:31 PM__typename
first, the two hashes used will never match upagrosner
04/05/2022, 7:31 PMoperationIdGenerator
to match the way the safelisting generation worksagrosner
04/05/2022, 7:32 PMmapOf(
"signature" to document.safelistingHash(),
"document" to document
)
in RegisterOperations.ktmbonnin
04/05/2022, 8:31 PMmbonnin
04/05/2022, 8:31 PMmbonnin
04/05/2022, 8:44 PMagrosner
04/06/2022, 1:12 PMagrosner
04/06/2022, 1:12 PMagrosner
04/06/2022, 1:21 PMmbonnin
04/06/2022, 6:30 PMmbonnin
04/06/2022, 6:31 PMagrosner
04/06/2022, 7:27 PMaddTypename
Gradle option to have better control over when to add the __typename
field:”agrosner
04/06/2022, 7:28 PM__typename
always into our query, while FE was not. by upgrading and using the always
option, it fixedmbonnin
04/06/2022, 7:29 PM__typename
when computing the hash?agrosner
04/06/2022, 7:36 PMmbonnin
04/06/2022, 7:36 PMmbonnin
04/06/2022, 7:37 PMregisterOperations
Gradle task though as even with addTypename = "always"
, there might be some discrepencies between what apollo-kotlin
is doing and what apollo-cli
is doingmbonnin
04/06/2022, 7:38 PMregisterOperations
, you're guaranteed that the input to the hashing algorithm is matching 100% what Apollo Kotlin is sending over the wireSam Michael
04/06/2022, 7:39 PMmbonnin
04/06/2022, 7:40 PMmbonnin
04/06/2022, 7:40 PMSam Michael
04/06/2022, 7:40 PMmbonnin
04/06/2022, 7:40 PMmbonnin
04/06/2022, 7:41 PMmbonnin
04/06/2022, 7:41 PMregister.main.kts
script that takes the Gradle plugin logic and that could run anywherembonnin
04/06/2022, 7:42 PMSam Michael
04/07/2022, 1:00 PMmbonnin
04/07/2022, 1:45 PMaddTypename = "sameAsApolloCli"