I need access to the table (collection) definition, i.c. field name and field type (text, num, boolean, etc).
Think I can get the name, but the type, I can´t find it. Before I fall back to a plan B, just wanted to check if this is possible.
Obviously, we have that API, but it is internal at the moment. Why do you need this?
Hi Yoav. I need to have a ramdonly sorted resultset. This is no standard option you can add to the query, so I want to build an array of field names (only text and numbers, no booleans, no docs or images), pick one out at random and use that one to sort the query.
I could hard code all field names, but if I add or delete a field in the collection, I have to remember to do it in the code as well, that´s why I would prefer access to the collection structure, so it always works.
Hope this makes sense, if not, let me know.
Make sense. We will consider how to add such support.
Thanks. Hat tip.