Skip to content

ContentTypeQuery does not extend BaseQuery #333

@jedabero

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

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