Open bbil opened 5 months ago
If this is expected for how Absinthe.Adapter
is supposed to be used then that's fine. But maybe the docs could be clarified for the uses and limitations?
The other option I have been pointed to internally, is to try out https://hexdocs.pm/absinthe/Absinthe.Schema.html#module-custom-schema-manipulation-in-progress. Would that be a better path forward for doing something like this?
Environment
1.16.1
1.7.6
Expected behavior
Custom adapter can modify the external name for types.
Because of the definition, I would have assumed the
to_external_name/2
callback can modify the name of types. But that doesn't appear to be the case.Actual behavior
When using a custom adapter, I am able to generate SDL via an introspection query that modifies field and argument names. But not the names of types.
In the example below, I would have expected the
type SomeType
to get the prefix applied, i.e.type PrefixSomeType
.Relevant Schema/Middleware Code
Adapter:
SDL Generation:
And a snippet of what I see in the generated SDL: