From b2d55a02ccf378a7663277b8914a37aa5d5138a7 Mon Sep 17 00:00:00 2001 From: Dave MacLeod <56599343+Dhghomon@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:00:10 +0900 Subject: [PATCH] Pluralize publisher --- src/content/doc-surrealql/datamodel/references.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/doc-surrealql/datamodel/references.mdx b/src/content/doc-surrealql/datamodel/references.mdx index a5893440f..5e83c0fea 100644 --- a/src/content/doc-surrealql/datamodel/references.mdx +++ b/src/content/doc-surrealql/datamodel/references.mdx @@ -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>> REFERENCE; DEFINE FIELD products ON publisher TYPE option>> REFERENCE; DEFINE FIELD owners ON comic_book TYPE references; -DEFINE FIELD publisher ON comic_book TYPE references; +DEFINE FIELD publishers ON comic_book TYPE references; CREATE person:one, person:two SET comics = [comic_book:one]; CREATE publisher:one SET products = [comic_book:one, book:one]; @@ -100,7 +100,7 @@ SELECT * FROM comic_book; person:one, person:two ], - publisher: [ + publishers: [ publisher:one ], title: 'Loki, God of Stories'