Custom code returning Firebase documents in ListView?

Good day. I'm trying to fetch a document from Firebase, then that document contains a list of references to other Firebase documents. Then finally, using this list of references (uid's), I want to return a list of documents from Firebase. I want to render the contents of this list of documents inside a ListView.

Is this possible using Custom Code? It seems Custom Functions cannot be asynchronous (well, that's the only conclusion I can draw from the error "The body might complete normally, causing 'null' to be returned, but the return type, 'List<PubUserRecord>', is a potentially non-nullable type. Try adding either a return or a throw statement at the end.")

Thank you

1
7 replies