Skip to content

Using ecto_type with from_schema causes compile dependency #583

@woylie

Description

@woylie

Using the :from_schema tuple in the ecto_type option causes a compile dependency to the referenced Ecto schema module.

@derive {
  Flop.Schema,
  filterable: [],
  sortable: [],
  join_fields: [
    some_field: [
      binding: :some_binding,
      field: :some_field,
      ecto_type: {:from_schema, SomeSchema, :some_field}
    ]
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions