Thanks for your reply. This spec function build query using ecto dynamics. I think the module is not in the documentation but if you write Ecto.Query… it automatically gives the suggestion for this module.
I finally found that module, it’s a bare strict and has no type defined, also it’s moduledoc false, so it’s internal to the ecto codebase, you should not use that strict directly.
If though this code is generated somehow, you should give more context.
The module does not specify a type, your options are to create a type on your own that mimics that struct or to use any() or map(), maybe even %Ecto.Query.DynamicExpr{} works, but I’m not 100% sure about that.