Skip to content

Conversation

@benjie
Copy link
Member

@benjie benjie commented Dec 5, 2025

Non-latin table/column names result in failure to build schema.

This PR uses transliteration npm package to create a latin character conversion of non-latin characters to make these schemas work better out of the box. It should not impact already valid GraphQL names.

To disable:

 const preset = {
   extends: [AmberPreset /* ... */],
+  disablePlugins: ['TransliterationPlugin'],
   /* ... */
 }

@github-project-automation github-project-automation bot moved this to 🌳 Triage in V5.0.0 Dec 5, 2025
@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2025

🦋 Changeset detected

Latest commit: a60ed2a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
graphile-build Patch
postgraphile Patch
graphile-build-pg Patch
graphile-utils Patch
pgl Patch
graphile Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security
Copy link

socket-security bot commented Dec 5, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtransliteration@​2.3.510010010080100

View full report

… can be constructed more easily when characters incompatible with GraphQL's `Name` are used.

To disable, remove the new plugin:

```diff
 const preset = {
   extends: [AmberPreset /* ... */],
+  disablePlugins: ['TransliterationPlugin'],
   /* ... */
 }
```
@benjie benjie enabled auto-merge December 5, 2025 16:22
@benjie benjie merged commit bac7626 into main Dec 5, 2025
46 checks passed
@benjie benjie deleted the cjk branch December 5, 2025 16:31
@github-project-automation github-project-automation bot moved this from 🌳 Triage to ✅ Done in V5.0.0 Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

PostGraphile v5 Cannot Handle Database Column Names with Non-ASCII Characters

2 participants