Guest User

Untitled

a guest
Feb 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. defmodule MyAppWeb.Resolver do
  2. def dispatch(mod, fun) do
  3. fn _parent, args, res ->
  4. gql_context = res.context || %{}
  5. apply(mod, fun, [args, gql_context])
  6. end
  7. end
  8. end
Add Comment
Please, Sign In to add comment