Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config Absinthe.Relay causes warnings #187

Open
mkaput opened this issue Apr 16, 2021 · 2 comments
Open

config Absinthe.Relay causes warnings #187

mkaput opened this issue Apr 16, 2021 · 2 comments

Comments

@mkaput
Copy link

mkaput commented Apr 16, 2021

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
Copy link
Contributor

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
Copy link
Author

mkaput commented May 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants