code4romania / teacher-workout-backend

Teacher Workout backend (API for mobile apps & for the web client)
Mozilla Public License 2.0
7 stars 34 forks source link

Add support for GraphQL Playground #46

Closed GabrielMajeri closed 2 years ago

GabrielMajeri commented 2 years ago

What does it fix?

This PR adds support for GraphQL Playground to introspect and play with the existing GraphQL API in the browser.

image

I've also simplified the Startup.cs code by replacing the AddGraphQLNamespaces method with the built in AddGraphTypes method.

How has it been tested?

Running the project locally and navigating to https://localhost:5001/ui/playground.

GabrielMajeri commented 2 years ago

@alexandru-calinoiu I've now discovered that the GraphQL Playground project is on hiatus and being merged into GraphiQL.

GraphQL.NET also supports GraphiQL and Altair as alternative browser clients. Do you want to stick with Playground or should we switch to either one of those?

pirvudoru commented 2 years ago

@GabrielMajeri thank you for your contribution. It would be great if we use GraphiQL since that has support going forward. I will close this PR and please open a new one that enables GraphiQL.