liveBook · Manning

BananaCakePop

As explained in Building Web APIs with ASP.NET Core

Banana Cake Pop is a web-based GraphQL client and IDE for composing, executing, and inspecting GraphQL operations.

BananaCakePop is a web-based GraphQL client and integrated development environment for composing, executing, and inspecting GraphQL operations. HotChocolate provides it with the GraphQL server setup, so API testing needs no separately installed client. section 10.2.4 section 10.2.3

Use BananaCakePop to verify the board-game GraphQL API:

  • Launch the project in Debug mode and open https://localhost:40443/graphql. section 10.2.4
  • Choose Create Document, confirm the default connection settings, and apply them to open an operations tab. section 10.2.4
  • Write a query in Operations and select Run; inspect the returned data in Response. section 10.2.4
  • Test related data in one request by selecting board-game properties alongside domain and mechanic information. section 10.2.4
  • Exercise mutations and verify changes with a follow-up query. section 10.2.4

Query and inspect board games

Enter a query requesting boardGames ordered by ascending id with first: 3, selecting only id, name, and year. Running it returns three nodes containing only those requested fields, demonstrating GraphQL field selection without overfetching. section 10.2.4

Test an update mutation

Run an updateBoardGame mutation that changes board game 1 to “Die Macher (v2)”, then query the record by id and confirm the updated name in the response. section 10.2.4

Figure 10.2 BananaCakePop’s main dashboard
10-02

Use the dashboard view to orient yourself among the document, connection, operations, and response controls. section 10.2.4

How Building Web APIs with ASP.NET Core covers it

How deep it goes
Walks through endpoint access, document creation, operation execution, response inspection, related queries, and mutation verification.
Examples
Uses board-game queries, related domain and mechanic fields, an update mutation, and a follow-up lookup.
What it assumes
Assumes a running GraphQL endpoint and default connection details while avoiding the need for a separately installed client.
What you can do after
Operate/configure it to run GraphQL operations and diagnose results through returned fields and follow-up checks.
How it connects
Connects GraphQL APIs with queries, mutations, relationships, overfetching, underfetching, and authorization.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Building Web APIs with ASP.NET Core. The section links point to the parts of the book it draws on.