Skip to content

Graphiql schema does not reload when import_types uses an alias #1139

@dagumak

Description

@dagumak

I couldn't find any documentation or reports, so I apologize if it's a known issue. I just spent an hour debugging this and found out that the schema does not reload if you use import_types with an alias.

For example, this works:

  import_types(HelloWeb.Schema.Types.TestType)

And this works when recompiling everything, but not on subsequent changes in file:

  alias HelloWeb.Schema.{Types, Queries, Mutations}
  import_types(Types.{
    TestType,
    HelloType
  })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions