sandbox methods organization #6246
-
Hello i dont know if this question goes here but, my question is related to the sandbox and federation. When you have many federated services connected in a gateway, the sandbox gets super unorganized with a lot of querys and mutations. Is there a way to split or classify the requests per service or custom sections? or if this isnt possible what would you use to create the graphql documentation in a better and organized way. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @torohaifisch Thank you for your query. If we understand your use case correctly, I think our most recent release to Explorer should be able to help. Check it out and please let me know if that makes organization of querys and mutations easier for you. https://www.apollographql.com/blog/announcement/platform/save-and-share-your-graphql-operations-in-apollo-explorer/ |
Beta Was this translation helpful? Give feedback.
-
hi @papollosc thanks for the answer, yes this is sort of what i need but is missing some features i would like. An example is like in postman you can create collections and inside those you can create folders to better organize your requests, i think that would be a nice addition. From what i understood from reading the announcements and doing some testing is that when you use the local sandbox it shows all your local collections, it doesnt matter if they arent related to the graph you are connected to. This doesnt happen if you use apollo studio i think?. Correct me if i am wrong but when you are using a specific graph in the local sandbox you can still see collections not related to the graph or even to the project you are working on so maybe it would be cool to have something like postman workspaces so you can have collections organized by project or something like that. |
Beta Was this translation helpful? Give feedback.
-
Thank you for this feedback @torohaifisch and very sorry for the delay in getting back to you. Clarification on the point above, are you pulling registered graphs from Studio? or pointing the endpoint in Sandbox to different graphs? Yes, if you have graphs registered in Studio, you can create collections within the scope of a graph/variant only. |
Beta Was this translation helpful? Give feedback.
Thank you for this feedback @torohaifisch and very sorry for the delay in getting back to you. Clarification on the point above, are you pulling registered graphs from Studio? or pointing the endpoint in Sandbox to different graphs?
Yes, if you have graphs registered in Studio, you can create collections within the scope of a graph/variant only.
In Sandbox, you can also pull collections of the registered graph/variants. But currently, collections created in Sandbox for Sandbox are across all endpoints that Sandbox points to.