class Graphql::Generators::ObjectGenerator

Generate an object type by name, with the specified fields.

rails g graphql:object PostType name:String!

Add the Node interface with --node.