linksFrom / linksTo revisited

66 views
Skip to first unread message

Taeke

unread,
Dec 31, 2025, 6:23:09 AM12/31/25
to mementodatabase
All, 

The discussions about linksFrom and linksTo in this forum I found confusing. I stripped the issue to the bare minimum.

I have 2 libraries. One called "Child" and one called "Parent". 
Library "Child" contains a field of type "Link to entry" called "Parent" pointing to the library "Parent".

Retrieving the Parents from a Child record in javascript (in a button for example) =>

let parents = entry().field("Parent");

Retrieving the Children from a Parent record in javascript (in a button for example), =>  2 equivalent options =>

let children = libByName("Child").linksTo(entry()); // Documentend
let children = entry().linksFrom("Child","Parent"); // Undocumented but announced in release notes

Happy New Year


Reply all
Reply to author
Forward
0 new messages