From ce59cc95daffff3fbdc0cad0a20181cc1b312464 Mon Sep 17 00:00:00 2001 From: Takayuki Matsubara Date: Mon, 18 Mar 2019 01:46:10 +0900 Subject: [PATCH] fix typo --- lib/absinthe/middleware.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/absinthe/middleware.ex b/lib/absinthe/middleware.ex index 16db0cdc36..912d241bb8 100644 --- a/lib/absinthe/middleware.ex +++ b/lib/absinthe/middleware.ex @@ -150,8 +150,8 @@ defmodule Absinthe.Middleware do ``` YourSchema.middleware([{Absinthe.Resolution, #Function<20.52032458/0>}], lookup_user_field_of_root_query_object, root_query_object) - YourSchema.middleware([{Absinthe.Middleware.Map.Get, :name}], name_field_of_user, user_object) - YourSchema.middleware([{Absinthe.Middleware.Map.Get, :age}], age_field_of_user, user_object) + YourSchema.middleware([{Absinthe.Middleware.MapGet, :name}], name_field_of_user, user_object) + YourSchema.middleware([{Absinthe.Middleware.MapGet, :age}], age_field_of_user, user_object) ``` In the latter two cases we see that the middleware list is empty. In the first