Extension Support #1734
Replies: 3 comments 14 replies
-
I do not think this is possible to contribute to extension of a response currently, although you might be able to do so using some of the events (Like AfterExecute) or something. For your specific use case: I do not think that deprecation information should be on a runtime response, but rather on the schema, and that is something that we should support and have been on our list for a while now (in fact I am not sure if we implemented this already, maybe @t1 or @jmartisk can remember). The idea is to use the normal It would be a good time to add this feature (if we have not already done so) ... |
Beta Was this translation helpful? Give feedback.
-
Regarding the |
Beta Was this translation helpful? Give feedback.
-
@phillip-kruger What needs done to allow developers to contribute to the extensions object? |
Beta Was this translation helpful? Give feedback.
-
Hey all, I am getting started with this code first approach. So far I like and appreciate all the work that has been done. I am curious if there is any support for returning an extensions object? I see in the ExecutionResponse there is already code to add errors, data, and extensions to the response but I don't see a way to add extensions in the documentation. I have tried accessing the context object in the @query method in hopes of adding extensions through the ExecutionInput object but it is too far down the chain of events at that point.
My main use case is having field deprecation notices in the response. The partial response with the error and nested extension object doesn't seem the right fit as there isn't an error and the field still needs to be returned. Any ideas or solutions are appreciated! Thanks!
Beta Was this translation helpful? Give feedback.
All reactions