From 9e3dcf87d92f409f76bc9a9219d3e2be3770b998 Mon Sep 17 00:00:00 2001 From: maxmwang Date: Sun, 23 Feb 2025 16:35:50 -0800 Subject: [PATCH] add /api/graphql sandbox docs --- docs/src/core/backend/README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/src/core/backend/README.md b/docs/src/core/backend/README.md index f2b660799..32e807826 100644 --- a/docs/src/core/backend/README.md +++ b/docs/src/core/backend/README.md @@ -62,7 +62,7 @@ The bulk of the application logic is split into separate modules within the `src │ └── resolver.ts # GraphQL resolver ``` -### Inside a Module +#### Inside a Module

= model( termSchema ); ``` + +### Testing the API + +To test the GraphQL API, it is recommended to first [seed the local database](../../getting-started/local-development.md#seeding-local-database) in order to have data. + +API testing is mainly done through the [Apollo GraphQL Sandbox](https://www.apollographql.com/docs/apollo-sandbox) available at `http://localhost:8080/api/graphql` when the backend container is running. While the UI is helpful for creating queries for you, it is highly recommended to review the [GraphQL docs](https://graphql.org/learn/), specifically the [queries](https://graphql.org/learn/queries/) and [mutations](https://graphql.org/learn/mutations/) pages.