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

Nested select statements #71

Closed
wants to merge 7 commits into from
Closed

Nested select statements #71

wants to merge 7 commits into from

Conversation

bfrey08
Copy link
Contributor

@bfrey08 bfrey08 commented Oct 5, 2023

This PR allows the .select statement on an ActiveForce object to take in values for nested objects. When a nested select statement is combined with a nested includes statement, you can limit the number of fields on nested objects.

example:

Comment.select(:body, :post_id, post: [:title, :blog_id]).include(:post)

@mikelarkin
Copy link

Confirmed with @bfrey08 that this can be closed

@mikelarkin mikelarkin closed this Sep 13, 2024
@mikelarkin mikelarkin deleted the nested_select_statements branch September 13, 2024 17:56
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.

3 participants