Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ragaeeb/shamela/llms.txt
Use this file to discover all available pages before exploring further.
Function Signature
Description
Resolves the relationships within theMasterData object, returning a flat list of books where author and category IDs have been replaced with their respective objects. It also parses complex fields like metadata and pdf_links from JSON strings into structured objects.
This transformation makes the data easier to work with by eliminating the need for manual ID lookups and JSON parsing.
Parameters
The master data object returned from
getMaster() containing authors, books, categories, and version informationReturns
Returns an array ofDenormalizedBook objects:
Example
Use Cases
- Building Search Interfaces: Filter and search books without manual ID lookups
- Creating Library Catalogs: Display books with full author and category information
- Data Analysis: Analyze book collections with easy access to relationships
- API Responses: Serve denormalized data to clients for better performance
Performance Notes
- This function processes all books in the master database
- For large datasets (10,000+ books), consider caching the result
- The transformation is synchronous and completes quickly (typically < 100ms)
Related
- getMaster() - Retrieve master database
- getBook() - Get individual book data
- getCoverUrl() - Generate cover URLs for denormalized books