config Absinthe.Relay causes warnings
mkaput opened this issue · 2 comments
mkaput commented
When configuring Absinthe.Relay (e.g. setting custom ID translator):
config Absinthe.Relay, MyApp.Schema,
global_id_translator: MyApp.Schema.CustomIDTranslator
Mix yells with following warning:
You have configured application Absinthe.Relay in your configuration file,
but the application is not available.
This usually means one of:
1. You have not added the application as a dependency in a mix.exs file.
2. You are configuring an application that does not really exist.
Please ensure Absinthe.Relay exists or remove the configuration.
Would it be possible to remove it? Thanks! 😄
benwilson512 commented
Ah, yeah Absinthe.Relay is using a non standard configuration pattern there, we should fix it. Honestly this ought to be set as like a module attribute on the schema or something and not in config.
mkaput commented
ok, I changed my code to pass global_id_translator
as use Absinthe.Schema
argument and let it read the value from custom config parameter.
I assume it may be better then to reword this issue as deprecate config Absinthe.Relay
, isn't it? If so, I'm leaving the state of the issue to you