surrealdb / surrealist

Surrealist is the ultimate way to visually manage your SurrealDB database
https://surrealist.app/
MIT License
1.08k stars 83 forks source link

Schema unable to be applied for graph table #206

Closed Dhghomon closed 5 months ago

Dhghomon commented 5 months ago

Congrats on the launch! Here is the first bug I found.

Describe the bug Schema unable to be applied for graph table

To Reproduce

Start making some data:

create cat:one; create cat:two; relate cat:one->likes->cat:two;

Then decide to set some schema with the Designer. Click on table likes, change table type from Any to Relation, then Incoming tables to cat and Outgoing tables to cat. Click on save changes and see the following:

image

Expected behavior Schema should be defined when Save is clicked.

Environment:

Surreal website app, sandbox (Edge browser on Windows 11 if that is relevant)