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

Allow for explicit "singular" requests (queries / transforms) #855

Merged
merged 1 commit into from Jul 3, 2021

Conversation

dgeb
Copy link
Member

@dgeb dgeb commented Jul 2, 2021

Query#expressions now accepts either a single expression or an array of expressions.

Likewise, Transform#operations now accepts either a single operation or an array of operations.

This allows more explicit control over the form in which results will be returned. Data will always be returned in an array when an array is used to express expressions / operations.

This represents a breaking change. Previously, an array of expressions or operations with a single member was processed to produce a singular result. Now, the resulting data will be returned in an array.

@dgeb dgeb added breaking breaking change dx developer experience improvement enhancement labels Jul 2, 2021
@dgeb dgeb marked this pull request as ready for review July 2, 2021 21:12
`Query#expressions` now accepts either a single expression or an array of expressions.

Likewise, `Transform#operations` now accepts either a single operation or an array of operations.

This allows more explicit control over the form in which results will be returned. Data will always be returned in an array when an array is used to express expressions / operations.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking breaking change dx developer experience improvement enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant