Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [%Statcasters.Prediction{
- __meta__: #Ecto.Schema.Metadata<:loaded, "predictions">,
- id: 6,
- inserted_at: ~N[2018-01-23 01:42:18.417113],
- points: 20,
- question: #Ecto.Association.NotLoaded<association :question is not loaded>,
- question_id: 110,
- team: #Ecto.Association.NotLoaded<association :team is not loaded>,
- team_id: 1,
- updated_at: ~N[2018-01-23 01:42:18.417122]
- },
- %Statcasters.Prediction{
- __meta__: #Ecto.Schema.Metadata<:loaded, "predictions">,
- id: 7,
- inserted_at: ~N[2018-01-23 01:57:20.144606],
- points: 20330,
- question: #Ecto.Association.NotLoaded<association :question is not loaded>,
- question_id: 110,
- team: #Ecto.Association.NotLoaded<association :team is not loaded>,
- team_id: 1,
- updated_at: ~N[2018-01-23 01:57:20.144614]
- }
- ]
- Enum.map(team.predictions, fn(prediction) -> prediction.question_id end)
- 'nn'
Add Comment
Please, Sign In to add comment