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

fix: withLookup in QueryGroupsAsync() #65

Merged
merged 1 commit into from
Sep 12, 2024
Merged

Conversation

Anush008
Copy link
Member

Adds

  • The missing withLookup param to the QueryGroupsAsync() method.
  • Datetime and Uuid index types to the helper converter.

This change will break for anyone who is passing all values by position to QueryGroupsAsync(), but I believe the probability of this is very low. If necessary, we can add a new overload instead.

@@ -2361,6 +2361,8 @@ public async Task<UpdateResult> CreatePayloadIndexAsync(
PayloadSchemaType.Bool => FieldType.Bool,
PayloadSchemaType.Geo => FieldType.Geo,
PayloadSchemaType.Text => FieldType.Text,
PayloadSchemaType.Datetime => FieldType.Datetime,
PayloadSchemaType.Uuid => FieldType.Uuid,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to this PR, but a structural unit test would be good to assert that all PayloadSchemaType are handled, so that if a later version introduces a new one, the test will fail when the client is generated from the new version. Will open an issue to track.

@Anush008 Anush008 merged commit 1957051 into main Sep 12, 2024
2 checks passed
@Anush008 Anush008 deleted the fix-lookup-query-groups branch September 12, 2024 09:37
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.

2 participants