diff --git a/netbox/core/graphql/types.py b/netbox/core/graphql/types.py index 620f0692f..ffaa24411 100644 --- a/netbox/core/graphql/types.py +++ b/netbox/core/graphql/types.py @@ -47,6 +47,10 @@ class ObjectChangeType(BaseObjectType): pass -@strawberry_django.type(DjangoContentType, fields='__all__') +@strawberry_django.type( + DjangoContentType, + fields='__all__', + pagination=True +) class ContentType: pass diff --git a/netbox/extras/graphql/types.py b/netbox/extras/graphql/types.py index 5474c9ee7..f4a1a397f 100644 --- a/netbox/extras/graphql/types.py +++ b/netbox/extras/graphql/types.py @@ -151,6 +151,7 @@ class JournalEntryType(CustomFieldsMixin, TagsMixin, ObjectType): @strawberry_django.type( models.Notification, # filters=NotificationFilter + pagination=True ) class NotificationType(ObjectType): user: Annotated["UserType", strawberry.lazy('users.graphql.types')] | None @@ -179,6 +180,7 @@ class SavedFilterType(ObjectType): @strawberry_django.type( models.Subscription, # filters=NotificationFilter + pagination=True ) class SubscriptionType(ObjectType): user: Annotated["UserType", strawberry.lazy('users.graphql.types')] | None