Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Graphile plugin that further simplifies field names #1

Open
psirenny opened this issue Apr 30, 2024 · 0 comments
Open

Create Graphile plugin that further simplifies field names #1

psirenny opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@psirenny
Copy link
Contributor

psirenny commented Apr 30, 2024

It would be really neat if field names removed redundant words parts in relationships. For example:

Before

type ReallyCoolTopSecretIntelligenceReport {
  topSecretIntelligenceReportSummary: TopSecretIntelligenceReportSummary
}

After

type ReallyCoolTopSecretIntelligenceReport {
  summary: TopSecretIntelligenceReportSummary
}

The longest possible word suffix from the type should be removed from the field prefix. Except for the last word, if you remove that then the field name is blank.

@psirenny psirenny self-assigned this Apr 30, 2024
@psirenny psirenny changed the title Add PostGraphile plugin that further simplifies field names Create PostGraphile plugin that further simplifies field names May 1, 2024
@psirenny psirenny changed the title Create PostGraphile plugin that further simplifies field names Create Graphile plugin that further simplifies field names May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant