Skip to content

[5.x]: Results are delivered in GraphQL query that should be excluded #17160

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

Closed
v2adotnet opened this issue Apr 23, 2025 · 8 comments
Closed
Labels

Comments

@v2adotnet
Copy link

What happened?

Description

Since the update to version 5.7.2, our GraphQL query delivers results that should be excluded. The query returns an entry structure nested up to level 3, at level 3 the statement (hide: false) does not take effect.

Steps to reproduce

This is the simple query:

    children(hide: false) {
        title
        id
        uri
        level
        typeHandle
        ... on pageTree_Entry {
          hide
        }

...

Expected behavior

Entries with hide: true (Lightswitch field activated) should not be in the results.

Craft CMS version

5.7.2

PHP version

8.2

Operating system and version

No response

Database type and version

Postgres

Image driver and version

No response

Installed plugins and versions

@brandonkelly
Copy link
Member

Thanks for reporting that! Craft 5.7.3 is out with a fix.

@v2adotnet
Copy link
Author

Thanks for your quick reaction and the fix!
Lars

@v2adotnet
Copy link
Author

Sorry, but as you can see in the screenshot we still get wrong results on level 3 of the structure

Image

@brandonkelly
Copy link
Member

@v2adotnet Have you cleared your data caches since updating? If not, you could be looking at a cached response.

Otherwise, any chance you can send a database backup and your Composer files, plus the GraphQL query into [email protected], so we can look into it from there?

@v2adotnet
Copy link
Author

Hi Brandon,
it is no caching issue, that's for sure. We will prepare a database backup for you.

//L

brandonkelly added a commit that referenced this issue May 5, 2025
@brandonkelly
Copy link
Member

Thank you! That’s been fixed for the next release.

@brandonkelly
Copy link
Member

Craft 5.7.5 is out with that fix. Thanks again.

@v2adotnet
Copy link
Author

Thank you! Now it works as expected again.

//L

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants