Sha256: 726b456d982b8220b57790d465f9c6bf540e15f88880bf92ff9ef2b849b3e11f
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
module Types class MutationType < Types::BaseObject SoulsHelper.get_tables.each do |t| %w[create update delete destroy_delete].each do |a| field "#{a}_#{t.singularize.underscore}".to_sym, mutation: Object.const_get( "Mutations::Base::#{t.singularize.camelize}::#{a.camelize}#{t.singularize.camelize}" ) end end # Auth field :add_user_role, mutation: Mutations::UserManager::AddUserRole field :remove_user_role, mutation: Mutations::UserManager::RemoveUserRole field :sign_in_user, mutation: Mutations::UserManager::SignInUser end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
souls-0.22.8 | hoy/app/graphql/types/base/mutation_type.rb |
souls-0.22.7 | hoy/app/graphql/types/base/mutation_type.rb |