Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
namenu committed Feb 3, 2024
1 parent d830c0b commit a1d6712
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 9 additions & 2 deletions src/com/walmartlabs/lacinia/executor.clj
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,16 @@
is an ResultTuple."
[left-value right-value]
(if (su/is-result-tuple? right-value)
(let [{:keys [alias value]} right-value]
(if (contains? left-value alias)
(let [{:keys [alias value]} right-value
left-alias-value (alias left-value)]
(cond
(= left-alias-value :com.walmartlabs.lacinia.schema/null)
left-value

(map? left-alias-value)
(update left-value alias deep-merge value)

:else
(assoc left-value alias value)))
(deep-merge left-value right-value)))

Expand Down
2 changes: 0 additions & 2 deletions test/com/walmartlabs/lacinia/executor_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,3 @@ query MyQuery {
id
}
}")))))

(clojure.test/run-test deep-merge-on-error)

0 comments on commit a1d6712

Please sign in to comment.