Speakeasy v0.2.1 Speakeasy
Authorize Absinthe queries and mutations.
Please see the README.
Link to this section Summary
Link to this section Functions
Macro form of resolve/2
. This will cause your application to fail to compile if your
resolution function isn’t compatible with what Speakeasy
This function works the same as resolve/2
Link to this function
resolve(mod, fun, opts \\ [])
If authorized returns an anonymous function that encapsulates your GraphQL resolution function. Otherwise returns the Bodyguard error response.
See this section of the README for usage examples.
Examples
iex> Speakeasy.resolve(MyApp.Posts, :create_post)
iex> Speakeasy.resolve(MyApp.Posts, :create_post, user_key: :current_user)