There were issues with array definitions caused by the duplicate field definitions in the schema returned from SurrealDB
roles: 'DEFINE FIELD roles ON organisation TYPE array<record<role>> DEFAULT [] PERMISSIONS FULL',
'roles[*]': 'DEFINE FIELD roles[*] ON organisation TYPE record<role> PERMISSIONS FULL'
The new implementation should fix the issue. Have added some more comprehensive tests for the schema generation.
There were issues with array definitions caused by the duplicate field definitions in the schema returned from SurrealDB
The new implementation should fix the issue. Have added some more comprehensive tests for the schema generation.
Should fix #46 and #47