forked from graphile/graphile-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(debugging): massively improve name collision errors (graphile#292)
Reveals where the origin of two conflictingly named fields or types has come from, and if possible gives a hint as to how to solve the conflict. - Fixes a bug in the inflector where a smart comment override for a single relation is applied both forwards and backwards - Adds loads more information to `newWithHooks` and `extend` calls - Fixes some bugs where fields can be accidentally overwritten if they have the same name - now causes a conflict instead like it should have all along - Added a useful utility function for turning a Pg introspection type (PgClass, PgProc, PgAttribute, ...) into human readable text - Added a useful utility function for outputting tweaked smart-comment SQL, for use in hints - Added `comment` to relevant introspection types to store the original comment (in addition to the existing parsed description/tags) - Gives constraint introspection types a direct reference to their associated class - Added a `status` object to `Build` that can be used to track what the currently running hook is (useful in error messages). - Added internal `dontSwallowErrors` setting; this is not an official interface so don't rely on it yet but it's a handy way (especially in tests) to prevent PostGraphile deliberately swallowing errors. We might wrap this and a few other settings up into a `--strict` flag in future.
- Loading branch information
Showing
38 changed files
with
1,688 additions
and
603 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
346 changes: 199 additions & 147 deletions
346
packages/graphile-build-pg/src/plugins/PgBackwardRelationPlugin.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.