Load relationships in a custom action

How do you load relationships in a custom action, something like this:

(sorry if this is repeated, I was surprised to find that I couldn’t find an answer)

    read :get_and_load_all do
      change Ash.Query.load(sections: [questions: [passage: [:content]]])
    end
1 Like
    read :get_and_load_all do
      prepare build(load:  [questions: [passage: [:content]]])
    end
1 Like

Thank you! :pray:
Time for me to read more about prepare!

2 Likes