T
Twenty6mo ago
D_Gamer

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
3 Replies
D_Gamer
D_Gamer6mo ago
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
Brendan
Brendan6mo ago
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
D_Gamer
D_Gamer6mo ago
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.
Want results from more Discord servers?
Add your server