Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. # in application.ex
  2. [
  3. {Absinthe.Client, MyApp.Client}
  4. ]
  5.  
  6.  
  7. defmodule MyApp.Client do
  8. use Absinthe.Client
  9. end
  10.  
  11. thing = MyApp.Client.new()
  12.  
  13. MyApp.Client.run(thing, "")
  14.  
  15.  
  16. {:ok, myclient} = Absinthe.Client.new(MyApp.Client, %{socket: NamedSocket})
  17.  
  18. MyClient.run(myclient, "subscription {now }")
  19.  
  20. Absinthe.Client.run(, )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement