Skip to content

Commit 84831ed

Browse files
committed
variable formula editor
1 parent 27c1175 commit 84831ed

4 files changed

Lines changed: 24 additions & 1 deletion

File tree

-38.1 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import { defineScreenshot } from '@/scripts/capture-screenshots'
2+
import type { Page } from 'playwright'
3+
4+
// Placeholder script for graphql-variable-formula-editor.webp
5+
export default defineScreenshot({
6+
path: '/projects/docs_examples/branches/screenshots/components/example-handle-api-callback?mode=design&canvas-tool=select&canvas-width=800&selection=apis.Pre-filled%2520Countries%2520GraphQL%2520API&rightpanel=style',
7+
setup: async (page: Page) => {
8+
await page.waitForTimeout(500)
9+
await page.getByRole('tab', { name: 'Variables' }).click()
10+
await page.getByRole('button', { name: 'Edit formula for value' }).click()
11+
await page.locator('#formula-editor').click()
12+
},
13+
annotations: [
14+
{
15+
type: 'box',
16+
x: 393,
17+
y: 118,
18+
width: 18,
19+
height: 20,
20+
rx: 4
21+
}
22+
],
23+
})
-9.41 KB
Loading

‎docs/connecting-data/working-with-apis/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Nordcraft provides a GraphQL explorer for you to build GraphQL queries for Graph
150150

151151
After you've added your first field, you'll see the GraphQL explorer open on the left of the API dialog so you can further refine your query. Click the [kbd]+[kbd] buttons to add fields to your query, and click the checkmarks next to the fields to remove them from your query. Watch the API response update in real time when the [auto fetch](/connecting-data/call-an-api#using-auto-fetch) toggle is on.
152152

153-
![The GraphQL explorer is showing a query constructed on the blogPostCollection entity, with the fields category, date and slug selected under items. The API response panel on the right is showing the data fetched by the query.|16/9](graphql-built-query.webp 'Add a field to a GraphQL query')
153+
![The GraphQL explorer is showing a query constructed on the continents and countries entities, with the fields code and name for continents, and capital, currency, and name for countries, selected under items. The API response panel on the right is showing the data fetched by the query.|16/9](graphql-built-query.webp 'Add a field to a GraphQL query')
154154

155155
### Add a GraphQL query variable
156156

0 commit comments

Comments
 (0)