Skip to content

is there any way to use this query in graphql ?populate=versions&publicationState=preview #176

Open
@hafizasadabbas

Description

@hafizasadabbas

Need help

I want to get data for all versions through graphql but am not able to pass versions parameter,

.
Found in readme ?populate=versions&publicationState=preview

Steps to reproduce the behavior

  1. Go to '/graphql'

  2. write a query to get all versions by passing slug

  3. Only published or latest draft data in response due to the following code in 'entity-service-decorator'

    if (
    isVersionedContentType(model) &&
    params[VERSIONS_QUERY_FILTER] !== "all"
    ) {
    wrappedParams.filters = {
    $and: [{ isVisibleInListView: true }].concat(
    wrappedParams.filters || []
    ),

  • Node.js version: v18
  • NPM version:
  • Strapi version: 4.9.0
  • Database: postgres
  • Operating system: Mac

Additional context

Add any other context about the problem here.

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