From 523c9dd1eda8052a8aba06617b1ab66241bbe3d6 Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Sat, 16 Apr 2022 23:43:02 +0700 Subject: [PATCH] docs(README): clarify that relations are -to-many --- README.md | 8 ++++---- docs/pagination.md | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c3b8d56..d817ce1 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ query user_with_posts { ## Pagination -Root queries and one-to-many nested relations can be paginated. +Root queries and -to-many nested relations can be paginated. Example: @@ -356,12 +356,12 @@ const resolveGraph = GraphResolver( } }, }), - // Select all objects in one-to-many relation + // Select all objects in -to-many relation comments: true, comments_page: RelationResolver({ // Model field, if different from GraphQL field modelField: "comments", - // Paginate subquery in one-to-many relation + // Paginate subquery in -to-many relation paginate: CursorPaginator( // Pagination options // Default: { take: 10, fields: ["id"] } @@ -373,7 +373,7 @@ const resolveGraph = GraphResolver( fields: ["name", "-id"], } ), - // Enable filters on one-to-many relation + // Enable filters on -to-many relation filters: true, // Modify subquery modifier: (query, { args }) => diff --git a/docs/pagination.md b/docs/pagination.md index 609da33..55f1bf3 100644 --- a/docs/pagination.md +++ b/docs/pagination.md @@ -1,6 +1,6 @@ # Pagination -Root queries and one-to-many nested relations can be paginated. +Root queries and -to-many nested relations can be paginated. ## Paginators