Open roy-ganz opened 3 years ago
Check this: let exam_entry_keys = entries.iter().map_key().collect::<Vec<_>>(); // This collects composite keys let query = query!(Question, "id in ?, answerType, answer_*", exam_entry_keys); // This compiles and uses first key in composite key
let exam_entry_keys = entries.iter().map_key().collect::<Vec<_>>(); // This collects composite keys
let query = query!(Question, "id in ?, answerType, answer_*", exam_entry_keys); // This compiles and uses first key in composite key
However this should fail.
Check this:
let exam_entry_keys = entries.iter().map_key().collect::<Vec<_>>(); // This collects composite keys
let query = query!(Question, "id in ?, answerType, answer_*", exam_entry_keys); // This compiles and uses first key in composite key
However this should fail.