You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To retrieve the total number of resources on secondary and relationship endpoints, the reverse of the relationship must to be available. For example, in `GET /customers/1/orders`, both the relationships `[HasMany] Customer.Orders` and `[HasOne] Order.Customer` must be defined.
60
60
If `IncludeTotalResourceCount` is set to `false` (or the inverse relationship is unavailable on a non-primary endpoint), best-effort pagination links are returned instead. This means no `last` link and the `next` link only occurs when the current page is full.
61
61
62
+
> [!TIP]
63
+
> Since v5.8, pagination can be [turned off per relationship](~/usage/resources/relationships.md#disable-pagination).
64
+
62
65
## Relative Links
63
66
64
67
All links are absolute by default. However, you can configure relative links:
Copy file name to clipboardExpand all lines: src/JsonApiDotNetCore/Configuration/IJsonApiOptions.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,8 @@ public interface IJsonApiOptions
105
105
boolIncludeTotalResourceCount{get;}
106
106
107
107
/// <summary>
108
-
/// The page size (10 by default) that is used when not specified in query string. Set to <c>null</c> to not use pagination by default.
108
+
/// The page size (10 by default) that is used when not specified in query string. Set to <c>null</c> to not use pagination by default. This setting can
109
+
/// be overruled per relationship by setting <see cref="HasManyAttribute.DisablePagination" /> to <c>true</c>.
0 commit comments