Skip to content

Allow to have underscore model field names #120

@povilasjurcys

Description

@povilasjurcys

All model fields are camelized and there is no way how to change this. It would be nice to have option to do so, something like this:

class User
  include GraphqlRails::Model

  graphql do |c|
    c.attribute :underscored_name, type: :string!, name_format: :original
  end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions