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

Fixes errors when filtering by content fields in GraphQL #17378

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

gvkries
Copy link
Contributor

@gvkries gvkries commented Jan 19, 2025

Fixes #17261 and #17323

This PR addresses issues #17261 and #17323. While this solution resolves the immediate problems, it is acknowledged that a more comprehensive redesign of the GraphQL filtering system is necessary. The current method of mapping GraphQL fields to SQL indexes, which involves creating table and column aliases, has limitations, particularly with ambiguous column names.

The proposed solution in this PR is a temporary fix. A thorough redesign should be considered for the following interfaces to address these limitations and streamline responsibilities:

  • IFilterInputObjectGraphType
  • IIndexPropertyProvider
  • IIndexAliasProvider

Additionally, the IPredicateQuery interface and its implementation will need to be re-evaluated and redesigned.

For now, this PR provides a solution to the specified issues without introducing significant changes or risking other functionalities.

@gvkries gvkries linked an issue Jan 19, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant