Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hafizasadabbas opened this issue Jan 31, 2024 · 0 comments

Comments

@hafizasadabbas
Copy link

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.

@hafizasadabbas hafizasadabbas changed the title is there any way to user this query in graphql ?populate=versions&publicationState=preview is there any way to use this query in graphql ?populate=versions&publicationState=preview Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant