Encoding of explorerURLState
#127
-
Hi, We are aiming to use Apollo Studio as a temporary substitute for our admin panel. I believe the latter is the one that contains the information about the query in the UI editor. It would be really helpful to create this encoding programatically so that we can provide our admins with the right URL on each notification that requires their manual input. The question is then, how os Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi there, We use lz-string - https://github.com/pieroxy/lz-string Hope this sample would help! import LZString from 'lz-string';
const explorerURLState = LZString.compressToEncodedURIComponent(
JSON.stringify({ document, variables, headers, includeCookies }),
) |
Beta Was this translation helpful? Give feedback.
Hi there,
We use lz-string - https://github.com/pieroxy/lz-string
Hope this sample would help!