diff --git a/app/graphql/types/query_type.rb b/app/graphql/types/query_type.rb index 0698b3ef..7ac76f85 100644 --- a/app/graphql/types/query_type.rb +++ b/app/graphql/types/query_type.rb @@ -89,11 +89,11 @@ def essence(full_identifier:, filename:) item.essences.find_by(filename:) end - field :user_by_uni_key, EmailUserType, 'Find a user by their unikey' do + field :user_by_unikey, EmailUserType, 'Find a user by their unikey' do argument :unikey, String end - def user_by_uni_key(unikey:) + def user_by_unikey(unikey:) User.find_by(unikey:) end