diff options
Diffstat (limited to 'app/graphql/types/global_id_type.rb')
-rw-r--r-- | app/graphql/types/global_id_type.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/app/graphql/types/global_id_type.rb b/app/graphql/types/global_id_type.rb index 4f92b5e8cc2..6a924c13a3c 100644 --- a/app/graphql/types/global_id_type.rb +++ b/app/graphql/types/global_id_type.rb @@ -1,21 +1,5 @@ # frozen_string_literal: true -module GraphQLExtensions - module ScalarExtensions - # Allow ID to unify with GlobalID Types - def ==(other) - if name == 'ID' && other.is_a?(self.class) && - other.type_class.ancestors.include?(::Types::GlobalIDType) - return true - end - - super - end - end -end - -::GraphQL::ScalarType.prepend(GraphQLExtensions::ScalarExtensions) - module Types class GlobalIDType < BaseScalar graphql_name 'GlobalID' |