theoephraim / node-google-spreadsheet

Google Sheets API wrapper for Javascript / Typescript
https://theoephraim.github.io/node-google-spreadsheet
The Unlicense
2.31k stars 391 forks source link

New way to do getCells? #322

Closed telgueta closed 4 years ago

telgueta commented 4 years ago

Im having a problem with the getCells function. Before i used: const responsePromise = getCells({ "min-row": 2, "min-col": 1, "max-col": 2, }); and i got all the cells i need, but now im doing it with the new way and it isnt working

theoephraim commented 4 years ago

Can you provide more details? What does the call look like? Are you getting an error?

telgueta commented 4 years ago

Before I used the get cells inside a variable, so then I could use reduce on it. But Now when I assign the loadcells function to a constant, it return me undefined

theoephraim commented 4 years ago

Yes things changed in the newer version of the module. Read the docs. You load a range of cells and can then access them.