graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

Allow BCP schema endpoint to automatically match browser URL

Open AlexKubiesa opened this issue 3 years ago • 5 comments
trafficstars

Is your feature request related to a problem?

I am testing the same GraphQL API in multiple environments (local, dev, uat and prod) and each of these has a different URL. When I navigate to one of these URLs and sign in to my BCP workspace, my queries always run against the saved schema endpoint from last time, but I want them to run against the URL in my address bar instead.

The solution you'd like

Ideally, the Schema Endpoint setting would be configured based on which GraphQL server I am accessing, not which document I have open.

If this is not possible, then an alternative solution would be to allow variables in the Schema Endpoint setting, and have a variable like %bcpEndpoint% so I can set the Schema Endpoint to equal the BCP Endpoint.

Product

Banana Cake Pop

AlexKubiesa avatar Feb 16 '22 12:02 AlexKubiesa

We are working on a new feature that will make BCP environment aware.

michaelstaib avatar Feb 28 '22 07:02 michaelstaib

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 04 '22 00:05 stale[bot]

@AlexKubiesa to reload the schema of a certain endpoint you could just hit the reload button, right?

rstaib avatar May 04 '22 08:05 rstaib

@rstaib I feel like you've misunderstood the issue. I am talking about controlling the GraphQL Endpoint (called "Schema Endpoint" in the BCP UI) based on whether I navigated to the local/dev/uat/prod service URL.

Giving BCP an "environments" feature akin to Postman and Insomnia, as @michaelstaib mentioned, would be a step in the right direction as I could have the same set of documents between local/dev/uat/prod and by switching to a different environment make them all point to the service I'm currently testing or debugging.

AlexKubiesa avatar May 04 '22 09:05 AlexKubiesa

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 03 '22 10:07 stale[bot]