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

Feature: Allow multiple different table types in FIELD TYPE #15

Closed
2 tasks done
tobiemh opened this issue Aug 4, 2022 · 0 comments
Closed
2 tasks done

Feature: Allow multiple different table types in FIELD TYPE #15

tobiemh opened this issue Aug 4, 2022 · 0 comments
Assignees
Labels
feature New feature or request

Comments

@tobiemh
Copy link
Member

tobiemh commented Aug 4, 2022

Is your feature request related to a problem?

One should be able to define link constraints to multiple tables. Currently it's only possible to create a link constraint on a single type.

DEFINE FIELD link ON entity TYPE record(person);

Describe the solution

We should be able to constrain record types to multiple types (in a polymorphic way).

DEFINE FIELD link ON entity TYPE record(person, organisation, cause);

Alternative methods

No alternative methods exist.

SurrealDB version

surreal 1.0.0-beta.5 for macos on aarch64

Contact Details

No response

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@tobiemh tobiemh closed this as completed in 96225af Aug 4, 2022
@tobiemh tobiemh self-assigned this Aug 4, 2022
@tobiemh tobiemh added the feature New feature or request label Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant