node-google-spreadsheet
node-google-spreadsheet copied to clipboard
Support getRangeByName()
Please add support getRangeByName(named_range)
Hi @theoephraim where would I look to implement this in the repo?
I looked at loadCells
but it looks like it just makes an external api call and updates the sheets.
@alberttra @theoephraim I've created a PR with support for this. Do you guys have any feedback that you'd like to get in?
I think this could be modified to return GoogleSpreadsheetRow[]
instead of GoogleSpreadsheetCell[][]
but I needed something working for a bit.
Let me know what you think!
I'm not quite sure I understand. I think @alberttra is asking for functionality to load things based on named ranges.
There is a bit of work there to be able to load the named ranges that exist, create new ones, update them, etc... and then also to load cells based on them.
It looks like what you want is a bit of an easier way to just grab a bunch of cells (from the loaded cache) at once based on a name?
Ah, okay! That is not what I implement as I needed a way to query data more conventionally from the call site. I'll close the PR but let me know if you'd like me to open another issue with the functionality that I was working on.
Thanks! Have a good one.