unbody-io / ts-client

Typescript client for Unbody's API
https://unbody.io/docs/libraries/typescript-client
7 stars 1 forks source link

Missing functionalities for newly added classes #6

Open amirhouieh opened 11 months ago

amirhouieh commented 11 months ago

We have recently added a couple of new classes including "TextDocument". I noticed that some functionalities like .select do not work with this class. I am not sure why as methods like select should probably work agnostic to the class.

so currently

         // return a broken query 

         textBlock.select(
                "document.TextDocument.mimeType"
            )

while

         // return a good query 
         textBlock.select(
                "document.GoogleDoc.mimeType"
            )

So i am wondering what the issue is and if there is a way to make these methods generic enough, so we do not have to adjustments everytime there is a new class added to the database.