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 $select on primitive collection #134

Merged
1 commit merged into from
Mar 14, 2023
Merged

Fix $select on primitive collection #134

1 commit merged into from
Mar 14, 2023

Conversation

ghost
Copy link

@ghost ghost commented Mar 14, 2023

Description

When implementing $orderby the aggregation for a collection was broken into two peices this meant we needed to convert the column data back to JSON in the aggregate function if its an object otherwise we end up with an array of string encoded json objects. This only applies to objects though, so we need to skip the conversion if building an aggregate of primitive types.

Type of Change

[X] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

@ghost ghost self-requested a review as a code owner March 14, 2023 10:23
When implementing $orderby the aggregation for a collection was broken
into two peices this meant we needed to convert the column data back to
JSON in the aggregate function if its an object otherwise we end up with
an array of string encoded json objects. This only applies to objects
though, so we need to skip the conversion if building an aggregate of
primitive types.
@ghost ghost force-pushed the fix_primitve_collection branch from a837d1b to 0d98a7a Compare March 14, 2023 10:28
@ghost ghost merged commit 88f525d into main Mar 14, 2023
@chrisgacsal chrisgacsal deleted the fix_primitve_collection branch October 2, 2023 19:14
This pull request was closed.
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.

None yet

3 participants