Draft
feat: support object values in list for enum isAnyOf filtering#1
Conversation
Handle ObjectValueNode items inside ListValueNode in MuiValueType.ParseLiteral,
enabling enum isAnyOf filtering with MUI DataGrid option objects
(e.g. [{label: 'Male', value: 'MALE'}]). Add HTTP tests for both
inline-literal and variable-based enum multi-select filtering."
Agent-Logs-Url: https://github.com/stackworx-dotnet/Hotchocolate.MuiDataGrid/sessions/768cc2b0-6691-4cc6-901a-11c61fc28602
Co-authored-by: cliedeman <3578740+cliedeman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/stackworx-dotnet/Hotchocolate.MuiDataGrid/sessions/768cc2b0-6691-4cc6-901a-11c61fc28602 Co-authored-by: cliedeman <3578740+cliedeman@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
cliedeman
May 21, 2026 09:00
View session
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements multiple values for the enum handler by fixing
MuiValueType.ParseLiteralto handleObjectValueNodeitems inside aListValueNode.When MUI DataGrid uses
isAnyOfon asingleSelect(enum) column configured withvalueOptions, it sends values as option objects withlabelandvaluefields:Previously this threw an
ArgumentExceptiondue to an unimplemented TODO:Changes
src/Hotchocolate.MuiDataGrid/Types/MuiValueType.cs: InParseLiteral, addedObjectValueNodehandling inside theListValueNodecase — extracts thevaluefield from each option object (same as the existing single-object case). Also improved error messages to include available field names and clarify type expectations.tests/Hotchocolate.MuiDataGrid.Test/MuiDataGridGraphQLTests.http.cs: Added two new tests:TestHttpStaticEnumIsAnyOfWithObjectsQuery— inline GraphQL literal with enum option objects in a listTestHttpVariableEnumIsAnyOfWithObjectsQuery— JSON variable with enum option objects in a listSnapshots for the two new tests are created and committed.
Testing
All 80 tests pass (78 pre-existing + 2 new).