absinthe-graphql / absinthe

The GraphQL toolkit for Elixir
http://absinthe-graphql.org
Other
4.3k stars 527 forks source link

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

Open bmidgley opened 3 years ago

bmidgley commented 3 years ago

Environment

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.

kyleboe commented 2 years ago

I believe this is related to https://github.com/absinthe-graphql/absinthe/issues/1139. I have to do the same thing.