-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Create model subset #1
Labels
help wanted
Extra attention is needed
Comments
|
Maybe Red.select: Track.title.as(“song”), CD.title.as(“album”), Artist.name.as(“artist”); |
That could create and return a new anon model with those columns |
This anon model shouldn’t be a model, but should do the Red::Result role. Models should do that role too |
Person.grep({ .id > 30 }).map: *.name; was what I was looking for |
FCO
pushed a commit
that referenced
this issue
Sep 14, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like:
And that would only select the
name
column and return a object with only the name attributeThe text was updated successfully, but these errors were encountered: