Skip to content

[CherryPick]: Fix for guid filter in GraphQL (0.8)#1659

Merged
Aniruddh25 merged 6 commits intorelease/0.8from
cherryPickGuid
Aug 26, 2023
Merged

[CherryPick]: Fix for guid filter in GraphQL (0.8)#1659
Aniruddh25 merged 6 commits intorelease/0.8from
cherryPickGuid

Conversation

@Aniruddh25
Copy link
Copy Markdown
Collaborator

## Why make this change?
Fix #1598 to ensure GQL
filter works with guid types.

## What is this change?
Correctly resolved guid type to Hotchocolate type of `UUID` (per:
https://chillicream.com/docs/hotchocolate/v12/defining-a-schema/scalars#uuid-type)
which was earlier resolved to string. Accordingly parsed the guid values
using `Guid.Parse()` method instead of parsing it as string.

## How was this tested?
- [x] Unit Tests - `SchemaConverterTests`
- [X] Integration Tests - Added filter tests with GUID to
`GraphQLSupportedTypesTestsBase.QueryTypeColumnFilterAndOrderBy`

---------

Co-authored-by: Aniruddh Munde <[email protected]>
@Aniruddh25 Aniruddh25 enabled auto-merge (squash) August 25, 2023 23:37
@Aniruddh25 Aniruddh25 changed the title [CherryPick]: Fix for guid filter in GraphQL [CherryPick]: Fix for guid filter in GraphQL (0.8) Aug 25, 2023
@Aniruddh25 Aniruddh25 disabled auto-merge August 26, 2023 01:35
@Aniruddh25 Aniruddh25 enabled auto-merge (squash) August 26, 2023 01:54
@Aniruddh25 Aniruddh25 merged commit 5d5068c into release/0.8 Aug 26, 2023
@Aniruddh25 Aniruddh25 deleted the cherryPickGuid branch August 26, 2023 02:18
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

Successfully merging this pull request may close these issues.

4 participants