Skip to content

plain client 'getMany' and 'getPublished' return unexpected results #2281

Description

Problem Description

The getPublished function returns more entities than the getMany function, when specifying the same content type in both functions.

Both functions should return the same number of entities.

System Details

contentful-management 11.25.4

Example code demonstrating issue

// ...
const entries1 = await client.entry.getMany({
    spaceId      : mySpaceId,
    environmentId: myEnvironmentId,
    query: {
        content_type: myContentType,
    }
})

const entries2 = await client.entry.getPublished({
    spaceId      : mySpaceId,
    environmentId: myEnvironmentId,
    contentTypeId: myContentType
})

// length of entries1 != entries2, but should be

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