Can't get size of resources in my plugin

Hello,

I’m trying to make a plugin which calculate the full size of a note and its resources.

I’m using const resources = await joplin.data.get(['notes', noteId, 'resources']);

to get all resources and i manage to get them correctly

I’m able to find their id and count the number of resources but the size is always empty.

Is it normal ?

Thanks

Sorry I have found the answer : i need to list the fields I want to be able to get “size” or other non trivial items of the resource. Sorry for the question

2 Likes

Glad you found a solution :+1: