agrosner
04/05/2022, 7:31 PM__typename
first, the two hashes used will never match upoperationIdGenerator
to match the way the safelisting generation worksmapOf(
"signature" to document.safelistingHash(),
"document" to document
)
in RegisterOperations.ktmbonnin
04/05/2022, 8:31 PMagrosner
04/06/2022, 1:12 PMmbonnin
04/06/2022, 6:30 PMagrosner
04/06/2022, 7:27 PMaddTypename
Gradle option to have better control over when to add the __typename
field:”__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 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 doingregisterOperations
, 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 PMSam Michael
04/06/2022, 7:40 PMmbonnin
04/06/2022, 7:40 PMregister.main.kts
script that takes the Gradle plugin logic and that could run anywhereSam Michael
04/07/2022, 1:00 PMmbonnin
04/07/2022, 1:45 PMaddTypename = "sameAsApolloCli"