It would be great if preload queries could include a preload option in the query, similar to migrations, so the following is possible:
José Valim
unread,
Aug 27, 2024, 4:31:18 AM8/27/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to elixi...@googlegroups.com
Please do send a pull request although I wonder if then we should rather introduce a query_type option that can be either :preload or :schema_migrations.
Perhaps instead of `query_type`, it could be `ecto_query: :preload | :schema_migration` That way you know it’s an ecto generated query and could just do `if opts[:ecto_query]` or `if opts[:ecto_query] == :schema_migration`
Please do send a pull request although I wonder if then we should rather introduce a query_type option that can be either :preload or :schema_migrations.