I’ve got a model Incomings
that has a key fundings
like that :
fundings: [{ type: mongoose.Schema.Types.ObjectId, ref: "Fundings" }],
My model Fundings
have a specific reference field called “Référence complète” that corresponds to a smart field :
Expected behavior
When I want to add elements to my fundings
(I renamed it Financements GC in french) array in an Incomings
document, I use the add existing fundings
and I get the autocomplete input :
I should now be able to type and match a “Référence complète” (that is a smart field, you remember ?), but it’s not matching.
Actual behavior
Instead, I can only match the _id
of the funding
. If I type the _id
, I get the match, it’s not working when I type a “Référence complète” item.