From the course: ASP.NET Core: Building a GraphQL API
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Testing
From the course: ASP.NET Core: Building a GraphQL API
Testing
- [Instructor] So now that we have created all we need to create to set up the GraphQL in our web API application, we are going to start our app and test what we have created so far. But before we do that, we need to add one more line. So let us go to Visual Studio and see it in action. In Visual Studio, just go to the Startup.cs file. And then in here scroll down to the Configure method. And then in here, comment out this line. So app.UseGraphQL. And in here we are going to use the AppSchema class. So let us just import the namespace, GraphQL, and here add semicolons, save all the changes, and start this project. So on here we can see that the app ran successfully. Now let us just go to our GraphQL. So for that, in here we define that the GraphQL you are at least going to be UI, and then slash GraphQL, and then press enter. And now you can see that the GraphIQL is loaded. Now to get data from our queries, I'll…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Operations in GraphQL1m 19s
-
(Locked)
Types in GraphQL3m 32s
-
(Locked)
Adding your first object graph type (course entity)5m 28s
-
(Locked)
Adding your first query: All courses3m 51s
-
(Locked)
Challenge: Add query to get single course47s
-
(Locked)
Solution: Add query to get single course4m 12s
-
(Locked)
Adding your GraphQL schema file1m 49s
-
(Locked)
Testing4m 23s
-
(Locked)
-
-
-