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

draft: Support spread in select query #446

Closed
wants to merge 1 commit into from
Closed

Conversation

wyozi
Copy link
Contributor

@wyozi wyozi commented Jul 20, 2023

What kind of change does this PR introduce?

Preliminary support for spreading resource.

@@ -100,6 +100,15 @@ type ConstructFieldDefinition<
Field
> = Field extends { star: true }
? Row
: Field extends { spread: true; original: string; children: Array<{ name: string }> }
? {
[K in Field['children'][number] as K['name']]: ConstructFieldDefinition<
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure about this. Should probably call GetResultHelper instead?

@wyozi wyozi changed the title Support spread in select query draft: Support spread in select query Aug 8, 2023
@wyozi wyozi closed this Mar 12, 2024
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.

1 participant