Class: SolidusGraphqlApi::Types::Base::Object
- Inherits:
-
GraphQL::Schema::Object
- Object
- GraphQL::Schema::Object
- SolidusGraphqlApi::Types::Base::Object
- Defined in:
- lib/solidus_graphql_api/types/base/object.rb
Direct Known Subclasses
Class Method Summary collapse
-
.remove_field(field) ⇒ Object
Removes a field from this schema.
Class Method Details
.remove_field(field) ⇒ Object
Removes a field from this schema.
14 15 16 17 18 19 20 |
# File 'lib/solidus_graphql_api/types/base/object.rb', line 14 def remove_field(field) unless own_fields.key?(field.to_s) raise ArgumentError, "Field `#{field}` is not defined" end own_fields.delete(field.to_s) end |