Skip to content

ContentTypeQuery does not extend BaseQuery #333

Closed

Description

@jedabero

Unlike GlobalFieldQuery and Entries, ContentTypeQuery does not extend BaseQuery.

We've been doing a workaround to be able to use pagination:

const stack = contentstack.stack(stackConfig):

const contentTypeQuery = stack.contentType():

contentTypeQuery._queryParams = { ...contentTypeQuery._queryParams, skip: 10, limit: 10 };

const { content_types } = await contentTypeQuery.find()

So I created the following PR which should hopefully expose the base-query and pagination methods for ContentTypeQuery

#332

Activity

  1. reeshika-h commented on Aug 5, 2026

    @reeshika-h
    Contributor

    @jedabero This has been resolved — ContentTypeQuery now extends BaseQuery (see src/query/contenttype-query.ts), gaining pagination and query-param methods just like GlobalFieldQuery. This matches the change proposed in #332 and is present on current main. Closing — please reopen if you're still seeing this on the latest version.
    cc: @netrajpatel @OMpawar-21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions