Skip to content

Commit cff5e59

Browse files
authored
DOC-295: Surrealist Doc revamp (#1221)
1 parent da52e56 commit cff5e59

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+93
-120
lines changed
Loading
614 KB
Loading
480 KB
Loading
Loading
921 KB
Loading
Loading
Loading
159 KB
Loading
301 KB
Loading
-211 KB
Loading
35.2 KB
Loading
1.02 MB
Loading
190 KB
Loading
Loading
-89.2 KB
Loading
Loading
-3.24 KB
Loading
747 KB
Loading
-22.4 KB
Loading
-35.2 KB
Loading
Loading
Loading
420 KB
Loading
-543 KB
Binary file not shown.
Loading
Loading
Loading
-67.9 KB
Loading

src/content/doc-cloud/advanced-topics/configure-an-instance.mdx

+28-38
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import InstanceCapabilities from "@img/image/cloud/instance-capabilities.png";
1717

1818
# Configure an Instance
1919

20-
You can configure your Instance in the Surreal Cloud dashboard by clicking on the **Configure** button on the Instance card.
20+
After you have created an Instance, you can configure it to your needs. This includes changing the Instance type, compute nodes, and capabilities. To do this, click on the **Configure Instance** button on the Instance card; this will open up a configuration drawer.
2121

2222
<Image
2323
alt="Configure an Instance"
@@ -27,64 +27,51 @@ src={{
2727
}}
2828
/>
2929

30-
## Configuration options
30+
## Instance Configuration
3131

32-
From the **Configure** modal, you can change the following settings:
32+
In the Instance configuration drawer, you can change the following settings:
3333

34+
- **Capabilities**: the capabilities of the Instance, this controls the functionality available to users such as scripting, guest access, enabled endpoints for RPC and HTTP endpoints. You can also opt into beta features and restrict access to specific resources.
35+
- **Version**: the version of SurrealDB that will be used for the Instance. If you a new version is available, you will be prompted to upgrade and also see the release notes.
3436
- **Instance type**: the type of the Instance.
3537
- **Compute nodes**: the number of compute nodes to use.
36-
- **Capabilities**: the capabilities of the Instance.
3738

38-
You can also access the Instance hostname and delete the Instance from this modal.
39+
### Instance capabilities
3940

40-
### Instance type
41+
The capabilities you choose will determine the features available to your Instance. This includes scripting, guest access, enabled endpoints for RPC and HTTP and more. For RPC methods, HTTP endpoints and preview features, you can leave pick one of the following options:
4142

42-
While the Instance type you choose will determine the compute and memory available to your Instance. When you hit the **0.25 vCPU** / **512MB memory** free tier limit, you can upgrade your plan to a higher tier using this option.
43+
- **Managed default**: SurrealDB will manage the endpoints for you.
44+
- **Allow all by default**: All endpoints are allowed by default and you can then select which endpoints to deny.
45+
- **Deny all by default**: All endpoints are denied by default and you can then select which endpoints to allow.
4346

44-
First, select the **Instance type** option which will open a modal to select the tier you want to upgrade to as shown below. Depending on the tier you choose, and the resources you have allocated, you will be billed accordingly.
47+
On the other hand network access and functions provide a more granular control over the endpoints.
4548

4649
<Image
47-
alt="Instance Type"
48-
src={{
49-
light: InstanceType,
50-
dark: InstanceType,
51-
}}
52-
/>
53-
54-
<Image
55-
alt="Instance Type"
50+
alt="Configure an Instance"
5651
src={{
57-
light: InstanceTypeModal,
58-
dark: InstanceTypeModal,
52+
light: InstanceCapabilities,
53+
dark: InstanceCapabilities,
5954
}}
6055
/>
6156

57+
### Instance type
6258

63-
### Compute nodes
64-
65-
> [!NOTE]
66-
> In beta, you can only have 1 compute node. Customising compute nodes will be available soon.
67-
68-
The number of compute nodes you choose will determine the number of Instances you can run on the same plan. For example, if you choose 2 compute nodes, you can run 2 Instances on the same plan.
69-
70-
### Instance capabilities
71-
72-
The capabilities you choose will determine the features available to your Instance. This includes scripting, guest access, enabled endpoints for RPC and HTTP and more.
59+
While the Instance type you choose will determine the compute and memory available to your Instance. When you hit the **0.25 vCPU** / **512MB memory** free tier limit, you can upgrade your plan to a higher tier using this option.
7360

74-
> [!IMPORTANT]
75-
> In beta, these Instance capabilities are read-only.
61+
First, select the **Instance type** option which will open a modal to select the tier you want to upgrade to as shown below. Depending on the tier you choose, and the resources you have allocated, you will be billed accordingly.
7662

7763
<Image
78-
alt="Configure an Instance"
64+
alt="Instance Type"
7965
src={{
80-
light: InstanceCapabilities,
81-
dark: InstanceCapabilities,
66+
light: InstanceType,
67+
dark: InstanceType,
8268
}}
8369
/>
8470

85-
## Actions
8671

87-
If you run into an issue with your Instance, our support team is here to help. To help us resolve your issue, you'll need your hostname which can be copied by selecting the **copy hostname** button. You can also view your Instance usuage by selecting the **View usage** option.
72+
### Disk Size
73+
74+
The disk size is the amount of storage available to your Instance. This is used to store the database files and can be increased at any time. For paid plans, you can increase the disk size up to the maximum limit of your plan.
8875

8976
<Image
9077
alt="Instance Usage"
@@ -95,9 +82,12 @@ src={{
9582
/>
9683

9784

98-
## Delete an Instance
85+
## Pause or Delete an Instance
86+
87+
From the overview page, you can delete an Instance by clicking the option button on the Instance card and selecting **Delete**. This will bring up a confirmation modal. Once confirmed, the Instance will be deleted.
88+
89+
To pause an Instance, click the option button on the Instance card and select **Pause**. This will bring up a confirmation modal. Once confirmed, the Instance will be paused.
9990

100-
You can delete an Instance by clicking the **Delete** button on the Instance card. This will bring up a confirmation modal. Once confirmed, the Instance will be deleted and you will be redirected to the Instances page.
10191

10292
<Image
10393
alt="Delete an Instance"

src/content/doc-cloud/billing-and-support/support.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Support offered by Surreal Cloud.
66
---
77
import Image from "@components/Image.astro";
88

9-
import SurrealSidekickDark from '@img/image/cloud/surreal-sidekick.png';
9+
import SurrealSidekickDark from '@img/image/cloud/sidekick.png';
1010

1111
# Support
1212

src/content/doc-cloud/connect/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: In this section you will explore the connection options for Surreal
1010
You can connect to your Surreal Cloud instances in three main ways. In this section you will explore the following connection options:
1111

1212

13-
- [connect via Surrealist](/docs/cloud/connect/surrealist) : Surrealist is a query builder and IDE for SurrealDB. It allows you to connect to your Surreal Cloud Instance and run queries in a graphical interface.
13+
- [querying in Surrealist](/docs/cloud/connect/surrealist) : Surrealist is a query builder and IDE for SurrealDB. It allows you to connect to your Surreal Cloud Instance and run queries in a graphical interface.
1414
- [connect via CLI](/docs/cloud/connect/cli) : using the command-line interface for SurrealDB, you can connect to your Surreal Cloud Instance and run queries in a command-line interface.
1515
- [connect via SDK](/docs/cloud/connect/sdk) : Surreal Cloud supports a variety of SDKs for connecting to your Instance. You can use the SDKs to connect to your Instance and run queries in your preferred programming language.
1616
- [connect via HTTP](/docs/cloud/connect/http) : Surreal Cloud supports a REST API for connecting to your Instance. You can use the API to connect to your Instance and run queries using CURL or any HTTP client.

src/content/doc-cloud/connect/sdk.mdx

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ After you have selected your SDK, you will need to provide your connection detai
3232

3333
## Enter connection details
3434

35-
When using any of the SurrealDB SDKs, before you can start querying your Surreal Cloud Instance, you will need to provide your connection details. SurrealDB requires **namespace** & **database** details so that it knows where to run and store your data. Learn more about [namespaces](/docs/surrealdb/introduction/concepts/namespace) and [databases](/docs/surrealdb/introduction/concepts/database) in the SurrealDB documentation.
35+
When using any of the SurrealDB SDKs, before you can start querying your Surreal Cloud Instance, you will need to provide your connection details. SurrealDB requires **namespace** & **database** details so that it knows where to run and store your data. On the top of the dashboard, you can find the prompt to create a namespace and database.
36+
37+
Learn more about [namespaces](/docs/surrealdb/introduction/concepts/namespace) and [databases](/docs/surrealdb/introduction/concepts/database) in the SurrealDB documentation.
3638

3739

3840

src/content/doc-cloud/connect/surrealist.mdx

+7-19
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
sidebar_position: 2
3-
sidebar_label: Connect via Surrealist
4-
title: Connect via Surrealist | Surreal Cloud
5-
description: Connect to your Surreal Cloud instance using Surrealist.
3+
sidebar_label: Querying in Surrealist
4+
title: Querying in Surrealist | Surreal Cloud
5+
description: Query your Surreal Cloud instance using Surrealist.
66
---
77

88
import Image from "@components/Image.astro";
@@ -16,25 +16,13 @@ import NamespaceDatabaseDark from '@img/image/cloud/namespace-database.png';
1616
import QueryingInstanceLight from '@img/image/cloud/querying-instance.png';
1717
import QueryingInstanceDark from '@img/image/cloud/querying-instance.png';
1818

19-
# Connect via Surrealist
19+
# Querying in Surrealist
2020

21-
Once you have created a Surreal Cloud Instance, you can connect to it in Surrealist, which allows you to interact with your created Cloud Instance from the [query view in Surrealist](/docs/surrealist/concepts/sending-queries).
21+
Once you have created a Surreal Cloud Instance, you can start querying it in Surrealist in the [query view](/docs/surrealist/concepts/sending-queries).
2222

23-
Start by clicking the **Connect** button on your Instance. Then select the **Open in Surrealist** option in the connection modal. This will open the Surrealist query view.
23+
In the query view, and before you can run queries in Surrealist, you need to select a [Namespace](/docs/surrealdb/introduction/concepts) and a [Database](/docs/surrealdb/introduction/concepts) to work in.
2424

25-
<Image
26-
alt="Open in Surrealist"
27-
src={{
28-
light: OpenInSurrealistLight,
29-
dark: OpenInSurrealistDark,
30-
}}
31-
/>
32-
33-
## Querying your Instance
34-
35-
Once in the query view, and before you can run queries in Surrealist, you need to select a [Namespace](/docs/surrealdb/introduction/concepts) and a [Database](/docs/surrealdb/introduction/concepts) to work in.
36-
37-
First click on the **Namespace** dropdown and select the namespace you want to work in (if you have not created a namespace, you will see an option to create one). Then click on the **Database** dropdown and select the database you want to work in.
25+
First click on the **Namespace** button and select the namespace you want to work in (if you have not created a namespace, you will see an option to create one). Then click on the **Database** button and select the database you want to work in (if you have not created a namespace, you will see an option to create one).
3826

3927
<Image
4028
alt="Namespace and Database"

src/content/doc-cloud/getting-started/create-an-instance.mdx

+11-16
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,24 @@ Surreal Cloud allows you to create a new Instance with a few clicks. You can cre
1717
> [!IMPORTANT]
1818
> In Beta, you can create instances only in a personal account. Support for creating instances in organizations is coming soon.
1919
20-
You can create an Instance in these steps from your Cloud dashboard:
20+
You can create an Instance in these steps from the overview:
2121

22-
1. Click on the **Create Instance** button.
23-
- You can choose to create a new Instance either in your personal account or in an organization.
24-
- If you choose to create an Instance in an organization, you need to select the organization from the dropdown list.
22+
1. Click on the **Create new** button and select the **Cloud Instance** option. This will take you to the create instance form.
2523

2624
2. Input your Instance details.
27-
- **Instance name**: the name of the Instance.
28-
- **Instance version**: the version of SurrealDB you want to use. In the Beta release, only version `>v2.0.0` is available to use as it is the latest stable release.
29-
30-
3. Select a region where you want to deploy your Instance.
31-
- AWS Europe (Ireland)
32-
- AWS US East (N. Virginia)
25+
- **Organization**: the organization you want to create the Instance in.
26+
- **Configuration**: the configuration you want to use for your Instance.
27+
- **Instance name**: the name of the Instance.
28+
- **Region**: the region you want to deploy your Instance in.
29+
- AWS Europe (Ireland)
30+
- AWS US East (N. Virginia)
31+
- **SurrealDB version**: the version of SurrealDB you want to use. Only versions `>v2.0.0` are available to use. If you are unsure, select the latest version but if you select a lower version, you will be able to upgrade to the latest in your Instance settings.
3332

3433
> [!IMPORTANT]
3534
> The region you choose will affect your application's latency. For optimal performance, choose a region that is closest to your users.
3635
3736

38-
4. Select an Instance category: Instance category defines the resources allocated to your cloud Instance. The Instance categories are in three different categories - **Development**, **Production**, and **Free Tier**. You can choose between the following configurations:
37+
4. Select an Instance type: Instance type defines the resources allocated to your cloud Instance. The Instance types are in three different categories - **Development**, **Production**, and **Free Tier**. You can choose between the following configurations:
3938

4039
> [!NOTE]
4140
> To use a Production or Development Instance, you need to enter your billing and payment information.
@@ -62,12 +61,8 @@ src={{
6261
}}
6362
/>
6463

65-
5. Choose nodes: the number of nodes selected will define the number of compute nodes allocated to your Instance.
66-
67-
> [!IMPORTANT]
68-
> The number of nodes you choose will affect the cost of your Instance.
6964

70-
6. After customising your Instance, click the **Create** button. You will see a confirmation message with the details of your Instance. You can now connect to your Instance using your [preferred connection method](/docs/cloud/connect).
65+
6. After customising your Instance, click the **Create Instance** button. You will see a confirmation message with the details of your Instance. You can now connect to your Instance using your [preferred connection method](/docs/cloud/connect).
7166

7267

7368
## Next steps

src/content/doc-surrealdb/querying/surrealql/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: In this section, you will explore using SurrealQL, a powerful datab
88
import Image from "@components/Image.astro";
99
import LightLogo from "@img/icon/light/surrealql.png";
1010
import DarkLogo from "@img/icon/dark/surrealql.png";
11-
import ImageSurrealist from "@img/image/surrealist/query.png";
11+
import ImageSurrealist from "@img/image/surrealist/query-new.png";
1212

1313
<Image
1414
alt="QL"

src/content/doc-surrealist/advanced-topics/embedding-surrealist.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Surrealist can be added to any website or application using Embeds. This lets yo
1919

2020
## Creating a new Embed
2121

22-
To create an embed, first head over to the [Surrealist embed generator](https://surrealist.app/mini/new). Then, in the `Editor query` section, you can write the query you want to be embedded. If the query uses variables, you can enter the values for the variables in the `Editor variables` section, and they will appear in the Embed preview section on the right.
22+
To create an embed, head over to the surrealist overview page and click on the embed surrealist option. Then, in the `Editor query` section, you can write the query you want to be embedded. If the query uses variables, you can enter the values for the variables in the `Editor variables` section, and they will appear in the Embed preview section on the right.
2323

2424
### Setup query
2525

src/content/doc-surrealist/concepts/explore-database-records.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ As the name implies, the tables panel will list out all tables in the database.
2424

2525

2626
> [!NOTE]
27-
> In the Designer view section we will explain more in-depth about what constitutes tables as normal or edge tables.
27+
> In the [Designer view](/docs/surrealist/concepts/designing-the-database-schema) section we will explain more in-depth about what constitutes tables as normal or edge tables.
2828
2929
### Record explorer panel
3030

src/content/doc-surrealist/concepts/sending-queries.mdx

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Surrealist is a user interface for interacting with your SurrealDB
66
---
77

88
import Image from "@components/Image.astro";
9-
import ImageQuery from "@img/image/surrealist/query.png";
9+
import ImageQuery from "@img/image/surrealist/query-new.png";
1010

1111
# Sending queries to the database
1212

@@ -17,6 +17,9 @@ The first view you encounter when starting Surrealist is the Query view. At its
1717
src={ImageQuery}
1818
/>
1919

20+
> [!NOTE]
21+
> The example above shows writing a query to a sandbox connection where no credentials are required. When connecting to a Surreal Cloud instance or a local connection, you will need to enter your namespace and database credentials in the connection dialog before you can send queries.
22+
2023
## Queries panel
2124

2225
The panel on the left of the Query view lists out your active query tabs. Each tab has its own query editor, so you can work with multiple queries at once and keep your workspace organised. You can double-click a tab to rename it, and right-click a tab to reveal additional actions.
@@ -45,7 +48,9 @@ After executing a query the result of the query will be displayed in the results
4548

4649
- **Combined mode**: will list all query responses in a single list. This is especially useful for requests with only a handful of statements or when you would like to view all responses at a glance.
4750

48-
- **Single mode**: will display each response separately and provide navigation buttons to switch between them. This is mostly useful when you are sending many queries at once or would like to focus on each response individually.
51+
- **Individual mode**: will display each response separately and provide navigation buttons to switch between them. This is mostly useful when you are sending many queries at once or would like to focus on each response individually.
52+
53+
- **Graph mode**: will display the response as a graph if they are compatible with the response i.e is a list of records with relations. This is useful for visualising the relationships between records.
4954

5055
- **Table mode**: presents your responses in an interactive table similar to the Explorer view. You can press any record id to view and edit the record in the inspector panel.
5156

0 commit comments

Comments
 (0)