module GraphQL::Types::Relay::Node

This can be used for Relay’s Node interface, or you can take it as inspiration for your own implementation of the Node interface.