edgedb-ui
edgedb-ui copied to clipboard
Data Explorer fails when computed property checks for link equality
Schema:
type Product {
required link owner: User;
property isOwn:= .owner = global current_user;
}
it works in the CLI:
project:edgedb> set global ext::auth::client_token := <str>"token";
OK: SET GLOBAL
project:edgedb> select Product {*};
{
default::Product {
id: 72681688-ea79-11ee-b966-87051dc599ee,
isOwn: true,
},
default::Product {
id: 3b8975a0-ea81-11ee-935a-a3e155aeab96,
isOwn: false,
},
}