Skip to content

Commit

Permalink
Update overview SDL for modern syntax (#913)
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttrinh committed Mar 20, 2024
1 parent cb3569f commit c5bcd4a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
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

0 comments on commit c5bcd4a

Please sign in to comment.