XCC.W.registerCustomwidget, but the method is actually
After various attempts to find a way to work around it and after raising a support call, I came across a set of labs for ICEC custom widgets by Dimitri Prosper of IBM. He also had a video here outlining this exact issue and how to resolve it, using Developer Tools in Chrome. Thanks to that video I was able to recover the situation and also have a way forward that gives more options for safer development in the future.
I also looked at the other projects by Dimitri, one of which is creating a GraphQL server for IBM Connections APIs. Anyone who has followed sessions I’ve done at conferences over the last couple of years knows my enthusiasm about GraphQL and why I think it makes a lot of sense for social data (in both Domino and Connections). This approach was what I was expecting when Connections Pink initially promised modern APIs. It makes so much sense for accessing Connections data from multiple hierarchies in a single REST service call. I went across to the Connections Aha ideas site and was glad to see GraphQL had already been requested there. Hopefully we’ll see this released – with mutations as well as queries – when HCL take over responsibility for Connections later this year.
The Node.js GraphQL server Dimitri built may also be an interesting option for GraphQL against Domino V10, maybe with an interface to help developers generate the schema that will then get used. All it would take is a database in which to store that schema and pick it up on-the-fly! 🙂