surrealdb / surrealist

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

Explorer - Array of objects doesn't work #341

Closed jboureux closed 2 weeks ago

jboureux commented 3 weeks ago

Describe the bug When I want to create a record in a schemaful table with an array of objects properties, the record explorer doesn't create the objects content. I think this should be investigated to see if the problem comes from the array<object> type or if this is deeper.

To Reproduce Create a table with a field of array<object> type, Try to create a record with objects in the array Save the record and witness the absence of content in the objects (see screens after)

Expected behavior Objects should have their content

Environment:

MacOS Sonoma,
Surrealist 2.1.2

(clicking the version number doesn't work for me 🥲)

Screenshots

image Simple schemaful table made for the test

image record i'm trying to create

image result I get

macjuul commented 2 weeks ago

This is intended behaviour as by default you are expected to define the inner object fields as part of your schema as well. You can however bypass this and allow flexible object contents by marking the field as FLEXIBLE 😃

read more