Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Record array returned as single record #47

Closed
hammo92 opened this issue Jul 15, 2024 · 0 comments
Closed

Record array returned as single record #47

hammo92 opened this issue Jul 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@hammo92
Copy link
Collaborator

hammo92 commented Jul 15, 2024

The tests are passing but in a live environment there is still an issue with record arrays. When getting the table info Surreal returns the array field definition, and a nested definition;:

roles: 'DEFINE FIELD roles ON organisation TYPE array<record<role>> DEFAULT [] PERMISSIONS FULL',
'roles[*]': 'DEFINE FIELD roles[*] ON organisation TYPE record<role> PERMISSIONS FULL'

but our tests check only for the first definition

roles: 'DEFINE FIELD roles ON organisation TYPE array<record<role>> DEFAULT [] PERMISSIONS FULL

As our test for nested arrays is incorrect as #46 these two issues are likely related.

@hammo92 hammo92 added the bug Something isn't working label Jul 15, 2024
@hammo92 hammo92 self-assigned this Jul 15, 2024
@hammo92 hammo92 closed this as completed Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant