Skip to content

ContentTypeQuery does not extend BaseQuery #333

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

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