Skip to content

Additional Generator Options #6

Closed
@sshaw

Description

@sshaw

Most of these would/could apply to all generators. Let me know what you think and I can put together a PR :octocat::

--superclass CLASSNAME

It may also be nice to set a default for this. For me, I never use any of these base_* files graphql-ruby installs 🗑.

But, it's not uncommon for one to want to inherit from a different class.

--name

Name of generated type. API does not always reflect Rails model names and sometimes these names reflect poor legacy concepts that one wishes to paper over with an API.

--ingore-columns

List of columns to ignore when generating, e.g.

--ignore-columns some_legacy_shit,some_private_thangz

gql:mutation

While argument :attributes is sorta nice convention not all APIs do this. Would be good to have some options here, just not sure what. Something to think about.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions