Learn how to leverage Persisted Operations / Persisted Queries / Trusted Documents with Cosmo & Cosmo Router
Playground
by clicking its link in the sidebar.
Opening the Cosmo Studio playground
curl
, let’s also execute this operation using the command line:
wgc
, which we installed in the prerequisites step. Open a text editor and create a file named employees.graphql
with the operation body that we previously used:
federation
.
graphql-client-name
HTTP header.
.graphql
file, but other formats are also supported, including:
curl
to run the operation. So, instead of sending the operation contents, we will send its identifier. Run the following command, indicating the client name (in the graphql-client-name
header) and the operation identifier (in the payload):