diff --git a/src/metabase/models/hydrate.clj b/src/metabase/models/hydrate.clj index d142c1f7b46be..e7b4d8825db97 100644 --- a/src/metabase/models/hydrate.clj +++ b/src/metabase/models/hydrate.clj @@ -362,22 +362,21 @@ You can hydrate several keys at one time: - (hydrate {:a (delay 1) :b (delay 2)} :a :b) - -> {:a 1 :b 2} + (hydrate {...} :a :b) + -> {:a 1, :b 2} ** Nested Hydration ** You can do recursive hydration by listing keys inside a vector: - (hydrate {:a (delay {:b (delay 1)})} [:a :b]) + (hydrate {...} [:a :b]) -> {:a {:b 1}} The first key in a vector will be hydrated normally, and any subsequent keys will be hydrated *inside* the corresponding values for that key. - (hydrate {:a (delay {:b (delay {:c (delay 1)}) - :e (delay 2)})} + (hydrate {...} [:a [:b :c] :e]) -> {:a {:b {:c 1} :e 2}}" [results k & ks]