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

Update table.mdx #943

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update table.mdx #943

wants to merge 1 commit into from

Conversation

apireno
Copy link
Collaborator

@apireno apireno commented Oct 16, 2024

added details to the RELATION DDL details

added details to the RELATION DDL details
Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for surrealdb-docs ready!

Name Link
🔨 Latest commit d594c47
🔍 Latest deploy log https://app.netlify.com/sites/surrealdb-docs/deploys/670fc2f045c6dd00085a93bb
😎 Deploy Preview https://deploy-preview-943--surrealdb-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -382,6 +382,12 @@ DEFINE TABLE likes TYPE RELATION;

-- Define a relation table, and constrain the type of relation which can be stored
DEFINE TABLE likes TYPE RELATION FROM user TO post;
-- OR use IN and OUT alternatively to FROM and TO
DEFINE TABLE likes TYPE RELATION IN user OUT post;
-- You can also specify multiple tables in the OUT or TO parameter using the | operator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and looks good, just a small nit here: I think this could be rephrased so that there is no misunderstanding that you can link to two records at the same time from one (i.e. one in, two outs). How about this? (Or your preferred wording)

To allow a link to one of a possible set of record types, use the | operator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants