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 overview SDL for modern syntax #913

Merged
merged 1 commit into from Mar 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/index.rst
Expand Up @@ -112,14 +112,14 @@ of the ``Movie`` type exclusive. This will help with filtering by

module default {
type Movie {
required property title -> str {
required title: str {
constraint exclusive;
};
multi link actors -> Person;
multi actors: Person;
}

type Person {
required property name -> str;
required name: str;
}
}

Expand Down
8 changes: 4 additions & 4 deletions docs/interfaces.rst
Expand Up @@ -37,15 +37,15 @@ Assume your database contains the following EdgeDB schema.

module default {
type Person {
required property name -> str;
required name: str;
}

scalar type Genre extending enum<Horror, Comedy, Drama>;

type Movie {
required property title -> str;
property genre -> Genre;
multi link actors -> Person;
required title: str;
genre: Genre;
multi actors: Person;
}
}

Expand Down
14 changes: 8 additions & 6 deletions docs/objects.rst
Expand Up @@ -10,22 +10,24 @@ All queries on this page assume the following schema.

module default {
type Person {
required property name -> str;
required name: str;
}

abstract type Content {
required property title -> str {constraint exclusive};
multi link actors -> Person {
property character_name -> str;
required title: str {
constraint exclusive
};
multi actors: Person {
character_name: str;
};
}

type Movie extending Content {
property release_year -> int64;
release_year: int64;
}

type TVShow extending Content {
property num_seasons -> int64;
num_seasons: int64;
}
}

Expand Down