Override some of PostgraPhile's core inflectors with Artetecha's own favourite inflection rules.
Given a type, e.g. Metadatum
:
- Core
allRows
would beallMetadata
- Artetecha's is
metadataConnection
Given a type, e.g. Metadatum
:
- Core
allRowsSimple
would beallMetadataList
- Artetecha's is
metadata
Given a type Author
with a 1:1 relationship to Metadatum
on some id
field
- Core would create a field
metadatumByAuthorId
field onAuthor
- Artetecha would simply create a field
metadatum
Given a type Author
with a 1:1 relationship to Metadatum
on some id
field
- Core would create a field
authorByAuthorId
field onMetadatum
- Artetecha would simply create a field
author
Given a type Author
with a 1:N relationship to Metadata
on some id
field
- Core would create a field
metadataByAuthorId
field onAuthor
- Artetecha would simply create a field
metadataConnection
Given a type Author
with a 1:N relationship to Metadata
on some id
field
- Core would create a field
metadataByAuthorIdList
field onAuthor
- Artetecha would simply create a field
metadata
This is implemented by postgraphile-plugin-nested-mutations.
Given a type Author
with a 1:N relationship to Metadata
on some id
field
- The plugin would create a field
authorToAuthorId
field on the mutationcreateMetadatum
- The plugin would also create a field
metadataUsingId
field on the mutationcreateAuthor
- Artetecha would simply create a field
author
in the first case and a fieldmetadata
in the second