Skip to content

Commit

Permalink
Pluralize publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhghomon committed Jan 3, 2025
1 parent 3af6ddb commit b2d55a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/content/doc-surrealql/datamodel/references.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ This can be fixed by changing the single field of type `references` to two field
DEFINE FIELD comics ON person TYPE option<array<record<comic_book>>> REFERENCE;
DEFINE FIELD products ON publisher TYPE option<array<record<comic_book|book>>> REFERENCE;
DEFINE FIELD owners ON comic_book TYPE references<person>;
DEFINE FIELD publisher ON comic_book TYPE references<publisher>;
DEFINE FIELD publishers ON comic_book TYPE references<publisher>;
CREATE person:one, person:two SET comics = [comic_book:one];
CREATE publisher:one SET products = [comic_book:one, book:one];
Expand All @@ -100,7 +100,7 @@ SELECT * FROM comic_book;
person:one,
person:two
],
publisher: [
publishers: [
publisher:one
],
title: 'Loki, God of Stories'
Expand Down

0 comments on commit b2d55a0

Please sign in to comment.