From a8ec814f74103ad3d5ce653429764fa7ea495e51 Mon Sep 17 00:00:00 2001 From: Clark Alesna Date: Sun, 19 May 2024 02:12:10 +0800 Subject: [PATCH] feat: Add preview testnet GraphQL endpoint The commit adds a preview testnet `GraphQL` endpoint to the backend API documentation. --- docs/pages/guides/backend_api.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/pages/guides/backend_api.mdx b/docs/pages/guides/backend_api.mdx index d7456aa..8438e75 100644 --- a/docs/pages/guides/backend_api.mdx +++ b/docs/pages/guides/backend_api.mdx @@ -82,6 +82,8 @@ query getObjects { } ``` +A preview testnet `GraphQL` endpoint is available at [https://dmtr_scrolls_v0_preview_1t9nhgnmxtpzrzm2gwv0723cu.scrolls-m0.demeter.run/graphql](https://dmtr_scrolls_v0_preview_1t9nhgnmxtpzrzm2gwv0723cu.scrolls-m0.demeter.run/graphql). + ## Implementation Details The backend uses a SQL query with a Manhattan distance calculation to find objects within the specified radius. The query ensures that the objects are within the bounds defined by the radius and the center point.