How do I get Mutations and Queries in GraphiQL ?
How can I see all the queries and mutations that are being performed from the frontend in Graphiql (Which right now I am accessing at "localhost:3000/graphql") ?
Right now I can only see these. But there are more and they are being accessed by Frontend itself.
![No description](https://cdn.answeroverflow.com/1221135676775333980/image.png)
3 Replies
Also I tweaked this validateToken method in (token.service.ts) as workaround to get tokens from cookies instead of Headers. and it works but it is just workaround though.
![No description](https://cdn.answeroverflow.com/1221136400557277275/image.png)
you have two endpoints for graphql requests (/graphql (also named core) and /metadata). On the core one (https://docs.twenty.com/graphql/core) you will find all the objects and corresponding mutations and on the metadata one (https://docs.twenty.com/graphql/metadata) you will find only some object manipulation, billing and workspace edit mutations. For me the core one looks like this:
Welcome | Twenty - Documentation
Twenty is a CRM designed to fit your unique business needs.
Welcome | Twenty - Documentation
Twenty is a CRM designed to fit your unique business needs.
![No description](https://cdn.answeroverflow.com/1221150653834068058/Bildschirmfoto_2024-03-23_um_18.35.44.png)
But I want to experiment with the schema in Local environment.
Thanks for the help. I got it working now. Provided the Api key in GraphiQL authorization headers and refetched the schema. The Api key thing totally slipped from my mind. Thanks again for the help.