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

Need the ability to manipulate the response from Om Server API #17

Closed
awkay opened this issue Oct 19, 2016 · 2 comments
Closed

Need the ability to manipulate the response from Om Server API #17

awkay opened this issue Oct 19, 2016 · 2 comments

Comments

@awkay
Copy link
Contributor

awkay commented Oct 19, 2016

Om mutations like login should be able to affect responses. For example, we should be able to add cookies, other headers, change the status code, etc.

I'm suggesting that top-level queries and mutations be able to return a response like this:

(defn some-mutation [env k p]
   (response-with-status { :tempids {n m} } 202))

and have that (probably through metadata) affect the underlying response to the client.

@wilkerlucio
Copy link
Contributor

I just found myself needing it as well to change the :session.

@Pancia
Copy link
Contributor

Pancia commented Nov 16, 2016

Merged in #20

@Pancia Pancia closed this as completed Nov 16, 2016
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

3 participants