is it possible using the client read all blocks? I...
# ask-community
g
is it possible using the client read all blocks? I just need to retrieve all blocks name-id pairs
d
client.read_block_documents
Have you tried this?
g
yes, just found. I have one doubt about it, it has block_schema_type parameter, if I want to get all json blocks, should I set block_schema_type=“JSON” or block_schema_type=“json”?
d
literally takes 4 lines of code to test 😅
client.read_block_schemas()
*Edited
g
it is to be sure I’m doing right way. Although it takes 4 lines, both gives same results: all the blocks are returned, clearly not working
d
I think best to see what this returns and pass it into the read block docs