Skip to content
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

Send only reads with (:target env) true, returned by mutate's :remote #45

Open
petterik opened this issue May 21, 2018 · 0 comments
Open

Comments

@petterik
Copy link
Owner

Use case:

{:mutate 
  (fn [env k p] 
    (when (and (= 'foo/conj k) (:target env))
      [true :query/foo]))
 :read
  (fn [env k p]
    (when (and (= :query/foo k) (:target env))
      false))}

((parser *1) {} '[(foo/conj)] :remote)
;; should equal '[(foo/conj)]
;; not '[(foo/conj) :remote]
;; because :query/foo is not a remote read
;; even though the mutate suggested that it is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant