Middlware / other to record schema type of response #701
Unanswered
joelcollinsdc
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Back up a bit here and tell us your overall goals. It sounds like you want to invalidate a session based on an error, and then return a custom response. Is that correct? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a mutation that has a response schema of UnionShape1Shape2Shape3 (sort of like UnionSuccessTypeFailureTypeErrorsType), and I want to log out for any query / mutation, which concrete type the response was... would a custom middleware be the right thing for this? How does one get access to the response schema in middleware?
Beta Was this translation helpful? Give feedback.
All reactions