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

mix clean is required to see types changes take effect #1083

Open
bmidgley opened this issue Jun 18, 2021 · 1 comment
Open

mix clean is required to see types changes take effect #1083

bmidgley opened this issue Jun 18, 2021 · 1 comment

Comments

@bmidgley
Copy link

bmidgley commented Jun 18, 2021

Environment

  • Elixir version (elixir -v): Erlang/OTP 23 [erts-11.2] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe]
  • Absinthe version (mix deps | grep absinthe): absinthe 1.6.4 / absinthe_plug 1.5.8
  • Client Framework and version (Relay, Apollo, etc): graphiql

Expected behavior

First, running mix compile
Next, changing something in a types file like
field(:id, :id)
to
field(:id, :alternate_id)

testing assertions on the new behavior and using the action from a browser in dev should read from the alternate_id.

Actual behavior

id continued to produce the :id db column until running mix clean. Then it works as expected. Restarting iex on its own is not enough to break the stale cache.

@bmidgley bmidgley changed the title mix clean is sometimes required to see changes take effect mix clean is required to see types changes take effect Sep 1, 2021
@kyleboe
Copy link

kyleboe commented Mar 12, 2022

I believe this is related to #1139. I have to do the same thing.

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