Table of Contents
Abstract
Most of the GraphQL components of this gem can be marked as abstract
, which
indicates that such components must be inherited first before being used.
There are two main reasons why to mark a component as abstract:
This feature is recommended for those that wish to create other gems based on this one.
Important This feature is under review, which means it may behave differently than described in some situations.
How to Use It
To mark a component as abstract, you can simply:
# app/graphql/objects/base_object.rb
self.abstract = true
You use of this to add shared methods, set configurations like namespaces, and create intermediate steps for sources.