You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Custom adapters & Absinthe.Phoenix.Channels do not work.
When using a custom adapter only the first request uses the adapter, subsequent request do not.
This happens due to the use of Absinthe.Phoenix.Socket.put_options/2 inside Absinthe.Phoenix.Channels.run_doc/4 - Absinthe.Phoenix.Socket.put_options/2 overwrites the entire :opts field.
Some simple solutions might be:
Use Map.merge instead of Map.put in put_options.
Manually preserve adapter as well as context in run_doc.
Add a merge_options or similar.
Let me know the preferred approach and I can open a PR.
The text was updated successfully, but these errors were encountered:
Custom adapters & Absinthe.Phoenix.Channels do not work.
When using a custom adapter only the first request uses the adapter, subsequent request do not.
This happens due to the use of
Absinthe.Phoenix.Socket.put_options/2
insideAbsinthe.Phoenix.Channels.run_doc/4
-Absinthe.Phoenix.Socket.put_options/2
overwrites the entire:opts
field.Some simple solutions might be:
Let me know the preferred approach and I can open a PR.
The text was updated successfully, but these errors were encountered: