'How can I get a plain text query from Apollo Kotlin?

Is there anyway to get the last plain text query sent with apollo kotlin? I'm trying to improve my crashlytics by logging the last query sent before a crash or non-fatal but I haven't been able to find a good way to just get the last query sent.

I specify plain text so that I can just go into crashlytics, view the query related to a crash and (with hopefully minimal changes) use curl to retest the query myself.

Thanks in advance :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source