[{"data":1,"prerenderedAt":2896},["ShallowReactive",2],{"navigation-landing-en":3,"navigation-nuxt-auto-en":180,"navigation-nuxt-protokit-en":338,"/docs/nuxt-auto/auto-api/nested-relationships-en":444,"/docs/nuxt-auto/auto-api/nested-relationships-surround-en":2891},[4,8,13,28,41,51,64,77,94,110,134,150,157,172],{"title":5,"path":6,"stem":7},"Overview","/docs/landing","0.docs/1.landing/001.index",{"title":9,"path":10,"stem":11,"badge":12},"Built-in Features","/docs/landing/built-in-features","0.docs/1.landing/002.built-in-features","New",{"title":14,"path":15,"stem":16,"children":17,"icon":27},"Content Foundation","/docs/landing/content","0.docs/1.landing/02.content/1.index",[18,19,23],{"title":5,"path":15,"stem":16},{"title":20,"path":21,"stem":22},"Details","/docs/landing/content/details","0.docs/1.landing/02.content/2.details",{"title":24,"path":25,"stem":26},"Technical","/docs/landing/content/technical","0.docs/1.landing/02.content/4.technical","i-heroicons-document-text",{"title":29,"path":30,"stem":31,"children":32,"icon":40},"Regional Content","/docs/landing/regional","0.docs/1.landing/03.regional/1.index",[33,34,37],{"title":5,"path":30,"stem":31},{"title":20,"path":35,"stem":36},"/docs/landing/regional/details","0.docs/1.landing/03.regional/2.details",{"title":24,"path":38,"stem":39},"/docs/landing/regional/technical","0.docs/1.landing/03.regional/4.technical","i-heroicons-globe-alt",{"title":42,"path":43,"stem":44,"children":45,"icon":50},"Multi-language","/docs/landing/multilang","0.docs/1.landing/04.multilang/1.index",[46,47],{"title":5,"path":43,"stem":44},{"title":20,"path":48,"stem":49},"/docs/landing/multilang/details","0.docs/1.landing/04.multilang/2.details","i-heroicons-language",{"title":52,"path":53,"stem":54,"children":55,"icon":63},"Blog","/docs/landing/blog","0.docs/1.landing/05.blog/1.index",[56,57,60],{"title":5,"path":53,"stem":54},{"title":20,"path":58,"stem":59},"/docs/landing/blog/details","0.docs/1.landing/05.blog/2.details",{"title":24,"path":61,"stem":62},"/docs/landing/blog/technical","0.docs/1.landing/05.blog/4.technical","i-heroicons-pencil-square",{"title":65,"path":66,"stem":67,"children":68,"icon":76},"Documentation","/docs/landing/docs","0.docs/1.landing/06.docs/1.index",[69,70,73],{"title":5,"path":66,"stem":67},{"title":20,"path":71,"stem":72},"/docs/landing/docs/details","0.docs/1.landing/06.docs/2.details",{"title":24,"path":74,"stem":75},"/docs/landing/docs/technical","0.docs/1.landing/06.docs/4.technical","i-heroicons-book-open",{"title":78,"path":79,"stem":80,"children":81,"icon":93},"Forms","/docs/landing/forms","0.docs/1.landing/07.forms/1.index",[82,83,86,90],{"title":5,"path":79,"stem":80},{"title":20,"path":84,"stem":85},"/docs/landing/forms/details","0.docs/1.landing/07.forms/2.details",{"title":87,"path":88,"stem":89},"Admin","/docs/landing/forms/admin","0.docs/1.landing/07.forms/3.admin",{"title":24,"path":91,"stem":92},"/docs/landing/forms/technical","0.docs/1.landing/07.forms/4.technical","i-heroicons-clipboard-document-list",{"title":95,"path":96,"stem":97,"children":98,"icon":109},"Email","/docs/landing/email","0.docs/1.landing/08.email/1.index",[99,100,103,106],{"title":5,"path":96,"stem":97},{"title":20,"path":101,"stem":102},"/docs/landing/email/details","0.docs/1.landing/08.email/2.details",{"title":87,"path":104,"stem":105},"/docs/landing/email/admin","0.docs/1.landing/08.email/3.admin",{"title":24,"path":107,"stem":108},"/docs/landing/email/technical","0.docs/1.landing/08.email/4.technical","i-heroicons-envelope",{"title":111,"path":112,"stem":113,"children":114,"icon":133},"Feedback Platform","/docs/landing/feedback","0.docs/1.landing/09.feedback/1.index",[115,116,119,122,125,129],{"title":5,"path":112,"stem":113},{"title":20,"path":117,"stem":118},"/docs/landing/feedback/details","0.docs/1.landing/09.feedback/2.details",{"title":87,"path":120,"stem":121},"/docs/landing/feedback/admin","0.docs/1.landing/09.feedback/3.admin",{"title":24,"path":123,"stem":124},"/docs/landing/feedback/technical","0.docs/1.landing/09.feedback/4.technical",{"title":126,"path":127,"stem":128},"Compare vs SaaS","/docs/landing/feedback/compare","0.docs/1.landing/09.feedback/5.compare",{"title":130,"path":131,"stem":132},"FAQ","/docs/landing/feedback/faq","0.docs/1.landing/09.feedback/6.faq","i-heroicons-chat-bubble-left-right",{"title":135,"path":136,"stem":137,"children":138,"icon":149},"Storage","/docs/landing/storage","0.docs/1.landing/10.storage/1.index",[139,140,143,146],{"title":5,"path":136,"stem":137},{"title":20,"path":141,"stem":142},"/docs/landing/storage/details","0.docs/1.landing/10.storage/2.details",{"title":87,"path":144,"stem":145},"/docs/landing/storage/admin","0.docs/1.landing/10.storage/3.admin",{"title":24,"path":147,"stem":148},"/docs/landing/storage/technical","0.docs/1.landing/10.storage/4.technical","i-heroicons-circle-stack",{"title":151,"path":152,"stem":153,"children":154,"icon":156},"Offline First","/docs/landing/offline-first","0.docs/1.landing/11.offline-first/1.index",[155],{"title":151,"path":152,"stem":153},"i-heroicons-users",{"title":158,"path":159,"stem":160,"children":161,"icon":156},"Yjs Sync","/docs/landing/yjs-sync","0.docs/1.landing/12.yjs-sync/1.index",[162,163,166,169],{"title":5,"path":159,"stem":160},{"title":20,"path":164,"stem":165},"/docs/landing/yjs-sync/details","0.docs/1.landing/12.yjs-sync/2.details",{"title":87,"path":167,"stem":168},"/docs/landing/yjs-sync/admin","0.docs/1.landing/12.yjs-sync/3.admin",{"title":24,"path":170,"stem":171},"/docs/landing/yjs-sync/technical","0.docs/1.landing/12.yjs-sync/4.technical",{"title":173,"path":174,"stem":175,"children":176,"badge":178,"icon":179},"Newsletter","/docs/landing/newsletter","0.docs/1.landing/13.newsletter/index",[177],{"title":173,"path":174,"stem":175,"badge":178},"Coming Soon","i-lucide-send",[181,184,202,298],{"title":5,"path":182,"stem":183},"/docs/nuxt-auto","0.docs/3.nuxt-auto/index",{"title":185,"path":186,"stem":187,"children":188,"page":201},"Getting Started","/docs/nuxt-auto/getting-started","0.docs/3.nuxt-auto/1.getting-started",[189,193,197],{"title":190,"path":191,"stem":192},"Introduction","/docs/nuxt-auto/getting-started/introduction","0.docs/3.nuxt-auto/1.getting-started/1.introduction",{"title":194,"path":195,"stem":196},"Installation","/docs/nuxt-auto/getting-started/installation","0.docs/3.nuxt-auto/1.getting-started/2.installation",{"title":198,"path":199,"stem":200},"Quick Start","/docs/nuxt-auto/getting-started/quick-start","0.docs/3.nuxt-auto/1.getting-started/3.quick-start",false,{"title":203,"path":204,"stem":205,"children":206,"page":201},"Auto API","/docs/nuxt-auto/auto-api","0.docs/3.nuxt-auto/2.auto-api",[207,210,214,218,222,226,230,234,238,242,246,250,254,258,262,266,270,274,278,282,286,290,294],{"title":185,"path":208,"stem":209},"/docs/nuxt-auto/auto-api/getting-started","0.docs/3.nuxt-auto/2.auto-api/1.getting-started",{"title":211,"path":212,"stem":213},"Aggregations","/docs/nuxt-auto/auto-api/aggregations","0.docs/3.nuxt-auto/2.auto-api/10.aggregations",{"title":215,"path":216,"stem":217},"Lifecycle Hooks","/docs/nuxt-auto/auto-api/lifecycle-hooks","0.docs/3.nuxt-auto/2.auto-api/11.lifecycle-hooks",{"title":219,"path":220,"stem":221},"Many-to-Many (M2M) Relationships","/docs/nuxt-auto/auto-api/m2m-relationships","0.docs/3.nuxt-auto/2.auto-api/12.m2m-relationships",{"title":223,"path":224,"stem":225},"Plugin System","/docs/nuxt-auto/auto-api/plugin-system","0.docs/3.nuxt-auto/2.auto-api/13.plugin-system",{"title":227,"path":228,"stem":229},"Database Adapters","/docs/nuxt-auto/auto-api/database-adapters","0.docs/3.nuxt-auto/2.auto-api/14.database-adapters",{"title":231,"path":232,"stem":233},"Custom Endpoints","/docs/nuxt-auto/auto-api/custom-endpoints","0.docs/3.nuxt-auto/2.auto-api/15.custom-endpoints",{"title":235,"path":236,"stem":237},"Multi-Tenancy","/docs/nuxt-auto/auto-api/multi-tenancy","0.docs/3.nuxt-auto/2.auto-api/16.multi-tenancy",{"title":239,"path":240,"stem":241},"Validation","/docs/nuxt-auto/auto-api/validation","0.docs/3.nuxt-auto/2.auto-api/2.validation",{"title":243,"path":244,"stem":245},"Rate Limiting","/docs/nuxt-auto/auto-api/rate-limiting","0.docs/3.nuxt-auto/2.auto-api/20.rate-limiting",{"title":247,"path":248,"stem":249},"Request Metadata Plugin","/docs/nuxt-auto/auto-api/request-metadata","0.docs/3.nuxt-auto/2.auto-api/21.request-metadata",{"title":251,"path":252,"stem":253},"Plugin Catalog","/docs/nuxt-auto/auto-api/plugin-catalog","0.docs/3.nuxt-auto/2.auto-api/22.plugin-catalog",{"title":255,"path":256,"stem":257},"Handler Overrides","/docs/nuxt-auto/auto-api/handler-overrides","0.docs/3.nuxt-auto/2.auto-api/3.handler-overrides",{"title":259,"path":260,"stem":261},"Cloudflare D1","/docs/nuxt-auto/auto-api/cloudflare-d1","0.docs/3.nuxt-auto/2.auto-api/30.cloudflare-d1",{"title":263,"path":264,"stem":265},"SQLite to D1 Migration","/docs/nuxt-auto/auto-api/migration-sqlite-d1","0.docs/3.nuxt-auto/2.auto-api/31.migration-sqlite-d1",{"title":267,"path":268,"stem":269},"Frontend Composables","/docs/nuxt-auto/auto-api/frontend-composables","0.docs/3.nuxt-auto/2.auto-api/32.frontend-composables",{"title":271,"path":272,"stem":273},"Testing","/docs/nuxt-auto/auto-api/testing","0.docs/3.nuxt-auto/2.auto-api/33.testing",{"title":275,"path":276,"stem":277},"Pagination","/docs/nuxt-auto/auto-api/pagination","0.docs/3.nuxt-auto/2.auto-api/4.pagination",{"title":279,"path":280,"stem":281},"Soft Deletes","/docs/nuxt-auto/auto-api/soft-deletes","0.docs/3.nuxt-auto/2.auto-api/5.soft-deletes",{"title":283,"path":284,"stem":285},"Authentication & Authorization","/docs/nuxt-auto/auto-api/authentication-authorization","0.docs/3.nuxt-auto/2.auto-api/6.authentication-authorization",{"title":287,"path":288,"stem":289},"Better-Auth Integration","/docs/nuxt-auto/auto-api/better-auth","0.docs/3.nuxt-auto/2.auto-api/7.better-auth",{"title":291,"path":292,"stem":293},"Nested Relations","/docs/nuxt-auto/auto-api/nested-relationships","0.docs/3.nuxt-auto/2.auto-api/8.nested-relationships",{"title":295,"path":296,"stem":297},"Bulk Operations","/docs/nuxt-auto/auto-api/bulk-operations","0.docs/3.nuxt-auto/2.auto-api/9.bulk-operations",{"title":299,"path":300,"stem":301,"children":302,"page":201},"Auto Admin","/docs/nuxt-auto/auto-admin","0.docs/3.nuxt-auto/3.auto-admin",[303,306,310,314,318,322,326,330,334],{"title":185,"path":304,"stem":305},"/docs/nuxt-auto/auto-admin/getting-started","0.docs/3.nuxt-auto/3.auto-admin/1.getting-started",{"title":307,"path":308,"stem":309},"Configuration & Theming","/docs/nuxt-auto/auto-admin/configuration-theming","0.docs/3.nuxt-auto/3.auto-admin/2.configuration-theming",{"title":311,"path":312,"stem":313},"Resource Configuration","/docs/nuxt-auto/auto-admin/resource-configuration","0.docs/3.nuxt-auto/3.auto-admin/3.resource-configuration",{"title":315,"path":316,"stem":317},"Form Fields & Widgets","/docs/nuxt-auto/auto-admin/form-fields-widgets","0.docs/3.nuxt-auto/3.auto-admin/4.form-fields-widgets",{"title":319,"path":320,"stem":321},"Permissions","/docs/nuxt-auto/auto-admin/permissions","0.docs/3.nuxt-auto/3.auto-admin/5.permissions",{"title":323,"path":324,"stem":325},"Custom Pages","/docs/nuxt-auto/auto-admin/custom-pages","0.docs/3.nuxt-auto/3.auto-admin/6.custom-pages",{"title":327,"path":328,"stem":329},"M2M Relationships","/docs/nuxt-auto/auto-admin/m2m-relationships","0.docs/3.nuxt-auto/3.auto-admin/7.m2m-relationships",{"title":331,"path":332,"stem":333},"Custom Actions","/docs/nuxt-auto/auto-admin/custom-actions","0.docs/3.nuxt-auto/3.auto-admin/8.custom-actions",{"title":335,"path":336,"stem":337},"Composables","/docs/nuxt-auto/auto-admin/composables","0.docs/3.nuxt-auto/3.auto-admin/9.composables",[339,342,355,382,400,415,425],{"title":5,"path":340,"stem":341},"/docs/nuxt-protokit","0.docs/4.nuxt-protokit/index",{"title":185,"path":343,"stem":344,"children":345,"icon":354},"/docs/nuxt-protokit/getting-started","0.docs/4.nuxt-protokit/1.getting-started/1.index",[346,347,351],{"title":190,"path":343,"stem":344},{"title":348,"path":349,"stem":350},"Core Concepts","/docs/nuxt-protokit/getting-started/concepts","0.docs/4.nuxt-protokit/1.getting-started/2.concepts",{"title":198,"path":352,"stem":353},"/docs/nuxt-protokit/getting-started/quick-start","0.docs/4.nuxt-protokit/1.getting-started/3.quick-start","i-lucide-rocket",{"title":356,"path":357,"stem":358,"children":359,"icon":381},"Schemas","/docs/nuxt-protokit/schemas","0.docs/4.nuxt-protokit/2.schemas/1.index",[360,361,365,369,373,377],{"title":5,"path":357,"stem":358},{"title":362,"path":363,"stem":364},"Field Types","/docs/nuxt-protokit/schemas/fields","0.docs/4.nuxt-protokit/2.schemas/2.fields",{"title":366,"path":367,"stem":368},"Collections","/docs/nuxt-protokit/schemas/collections","0.docs/4.nuxt-protokit/2.schemas/3.collections",{"title":370,"path":371,"stem":372},"Derived & Computed","/docs/nuxt-protokit/schemas/derived-computed","0.docs/4.nuxt-protokit/2.schemas/4.derived-computed",{"title":374,"path":375,"stem":376},"Connections","/docs/nuxt-protokit/schemas/connections","0.docs/4.nuxt-protokit/2.schemas/5.connections",{"title":378,"path":379,"stem":380},"Visualizations & Layouts","/docs/nuxt-protokit/schemas/visualizations","0.docs/4.nuxt-protokit/2.schemas/6.visualizations","i-lucide-file-code",{"title":335,"path":383,"stem":384,"children":385,"icon":399},"/docs/nuxt-protokit/composables","0.docs/4.nuxt-protokit/3.composables/1.index",[386,387,391,395],{"title":5,"path":383,"stem":384},{"title":388,"path":389,"stem":390},"usePrototype","/docs/nuxt-protokit/composables/use-prototype","0.docs/4.nuxt-protokit/3.composables/2.use-prototype",{"title":392,"path":393,"stem":394},"useProtoDoc","/docs/nuxt-protokit/composables/use-proto-doc","0.docs/4.nuxt-protokit/3.composables/3.use-proto-doc",{"title":396,"path":397,"stem":398},"useProtoCollection","/docs/nuxt-protokit/composables/use-proto-collection","0.docs/4.nuxt-protokit/3.composables/4.use-proto-collection","i-lucide-layers",{"title":401,"path":402,"stem":403,"children":404,"icon":414},"Components","/docs/nuxt-protokit/components","0.docs/4.nuxt-protokit/4.components/1.index",[405,406,410],{"title":5,"path":402,"stem":403},{"title":407,"path":408,"stem":409},"ProtoTool","/docs/nuxt-protokit/components/proto-tool","0.docs/4.nuxt-protokit/4.components/2.proto-tool",{"title":411,"path":412,"stem":413},"ProtoCrudModal","/docs/nuxt-protokit/components/proto-crud-modal","0.docs/4.nuxt-protokit/4.components/3.proto-crud-modal","i-lucide-puzzle",{"title":151,"path":416,"stem":417,"children":418,"icon":424},"/docs/nuxt-protokit/offline-first","0.docs/4.nuxt-protokit/5.offline-first/1.index",[419,420],{"title":151,"path":416,"stem":417},{"title":421,"path":422,"stem":423},"Corruption Recovery","/docs/nuxt-protokit/offline-first/corruption-recovery","0.docs/4.nuxt-protokit/5.offline-first/2.corruption-recovery","i-lucide-wifi-off",{"title":426,"icon":427,"path":428,"stem":429,"children":430},"Advanced","i-lucide-graduation-cap","/docs/nuxt-protokit/advanced","0.docs/4.nuxt-protokit/6.advanced/1.index",[431,432,436,440],{"title":5,"path":428,"stem":429},{"title":433,"path":434,"stem":435},"Multi-Tool Apps","/docs/nuxt-protokit/advanced/building-a-toolkit","0.docs/4.nuxt-protokit/6.advanced/1.building-a-toolkit",{"title":437,"path":438,"stem":439},"Schema Patterns","/docs/nuxt-protokit/advanced/custom-schema-patterns","0.docs/4.nuxt-protokit/6.advanced/2.custom-schema-patterns",{"title":441,"path":442,"stem":443},"Custom Fields & Viz","/docs/nuxt-protokit/advanced/extensibility","0.docs/4.nuxt-protokit/6.advanced/3.extensibility",{"page":445,"fallbackPage":2887},{"id":446,"title":291,"body":447,"description":457,"extension":2886,"links":2887,"meta":2888,"navigation":2887,"ogImage":2887,"path":292,"seo":2889,"stem":293,"__hash__":2890},"nuxt_auto/0.docs/3.nuxt-auto/2.auto-api/8.nested-relationships.md",{"type":448,"value":449,"toc":2856},"minimark",[450,454,458,463,466,779,783,786,941,945,948,1050,1055,1058,1073,1077,1080,1177,1180,1189,1193,1196,1331,1335,1338,1572,1576,1579,1749,1753,1759,1897,1901,1904,1907,1927,1931,1934,1961,1964,1998,2002,2006,2009,2013,2016,2038,2042,2045,2056,2101,2105,2108,2157,2161,2165,2248,2252,2312,2316,2368,2372,2375,2476,2480,2483,2609,2613,2616,2705,2709,2748,2752,2755,2849,2852],[451,452,291],"h1",{"id":453},"nested-relations",[455,456,457],"p",{},"Nuxt Auto API supports advanced nested relation loading with field selection, filtering, and pagination at each level of nesting.",[459,460,462],"h2",{"id":461},"basic-nested-relations","Basic Nested Relations",[455,464,465],{},"The simplest form uses dot notation to load nested relations:",[467,468,473],"pre",{"className":469,"code":470,"language":471,"meta":472,"style":472},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","// GET /api/users?include=posts.comments.author\n\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"Hello World\",\n          \"comments\": [\n            {\n              \"id\": 1,\n              \"body\": \"Great post!\",\n              \"author\": {\n                \"id\": 2,\n                \"name\": \"Jane Smith\"\n              }\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n","typescript","",[474,475,476,485,492,499,516,522,543,565,580,586,602,623,637,643,659,680,695,712,731,737,743,749,755,761,767,773],"code",{"__ignoreMap":472},[477,478,481],"span",{"class":479,"line":480},"line",1,[477,482,484],{"class":483},"sHwdD","// GET /api/users?include=posts.comments.author\n",[477,486,488],{"class":479,"line":487},2,[477,489,491],{"emptyLinePlaceholder":490},true,"\n",[477,493,495],{"class":479,"line":494},3,[477,496,498],{"class":497},"sMK4o","{\n",[477,500,502,505,509,512],{"class":479,"line":501},4,[477,503,504],{"class":497},"  \"",[477,506,508],{"class":507},"sfazB","data",[477,510,511],{"class":497},"\"",[477,513,515],{"class":514},"swJcz",": [\n",[477,517,519],{"class":479,"line":518},5,[477,520,521],{"class":497},"    {\n",[477,523,525,528,531,533,536,540],{"class":479,"line":524},6,[477,526,527],{"class":497},"      \"",[477,529,530],{"class":514},"id",[477,532,511],{"class":497},[477,534,535],{"class":497},":",[477,537,539],{"class":538},"sbssI"," 1",[477,541,542],{"class":497},",\n",[477,544,546,548,551,553,555,558,561,563],{"class":479,"line":545},7,[477,547,527],{"class":497},[477,549,550],{"class":514},"name",[477,552,511],{"class":497},[477,554,535],{"class":497},[477,556,557],{"class":497}," \"",[477,559,560],{"class":507},"John Doe",[477,562,511],{"class":497},[477,564,542],{"class":497},[477,566,568,570,573,575,577],{"class":479,"line":567},8,[477,569,527],{"class":497},[477,571,572],{"class":514},"posts",[477,574,511],{"class":497},[477,576,535],{"class":497},[477,578,579],{"class":514}," [\n",[477,581,583],{"class":479,"line":582},9,[477,584,585],{"class":497},"        {\n",[477,587,589,592,594,596,598,600],{"class":479,"line":588},10,[477,590,591],{"class":497},"          \"",[477,593,530],{"class":514},[477,595,511],{"class":497},[477,597,535],{"class":497},[477,599,539],{"class":538},[477,601,542],{"class":497},[477,603,605,607,610,612,614,616,619,621],{"class":479,"line":604},11,[477,606,591],{"class":497},[477,608,609],{"class":514},"title",[477,611,511],{"class":497},[477,613,535],{"class":497},[477,615,557],{"class":497},[477,617,618],{"class":507},"Hello World",[477,620,511],{"class":497},[477,622,542],{"class":497},[477,624,626,628,631,633,635],{"class":479,"line":625},12,[477,627,591],{"class":497},[477,629,630],{"class":514},"comments",[477,632,511],{"class":497},[477,634,535],{"class":497},[477,636,579],{"class":514},[477,638,640],{"class":479,"line":639},13,[477,641,642],{"class":497},"            {\n",[477,644,646,649,651,653,655,657],{"class":479,"line":645},14,[477,647,648],{"class":497},"              \"",[477,650,530],{"class":514},[477,652,511],{"class":497},[477,654,535],{"class":497},[477,656,539],{"class":538},[477,658,542],{"class":497},[477,660,662,664,667,669,671,673,676,678],{"class":479,"line":661},15,[477,663,648],{"class":497},[477,665,666],{"class":514},"body",[477,668,511],{"class":497},[477,670,535],{"class":497},[477,672,557],{"class":497},[477,674,675],{"class":507},"Great post!",[477,677,511],{"class":497},[477,679,542],{"class":497},[477,681,683,685,688,690,692],{"class":479,"line":682},16,[477,684,648],{"class":497},[477,686,687],{"class":514},"author",[477,689,511],{"class":497},[477,691,535],{"class":497},[477,693,694],{"class":497}," {\n",[477,696,698,701,703,705,707,710],{"class":479,"line":697},17,[477,699,700],{"class":497},"                \"",[477,702,530],{"class":514},[477,704,511],{"class":497},[477,706,535],{"class":497},[477,708,709],{"class":538}," 2",[477,711,542],{"class":497},[477,713,715,717,719,721,723,725,728],{"class":479,"line":714},18,[477,716,700],{"class":497},[477,718,550],{"class":514},[477,720,511],{"class":497},[477,722,535],{"class":497},[477,724,557],{"class":497},[477,726,727],{"class":507},"Jane Smith",[477,729,730],{"class":497},"\"\n",[477,732,734],{"class":479,"line":733},19,[477,735,736],{"class":497},"              }\n",[477,738,740],{"class":479,"line":739},20,[477,741,742],{"class":497},"            }\n",[477,744,746],{"class":479,"line":745},21,[477,747,748],{"class":514},"          ]\n",[477,750,752],{"class":479,"line":751},22,[477,753,754],{"class":497},"        }\n",[477,756,758],{"class":479,"line":757},23,[477,759,760],{"class":514},"      ]\n",[477,762,764],{"class":479,"line":763},24,[477,765,766],{"class":497},"    }\n",[477,768,770],{"class":479,"line":769},25,[477,771,772],{"class":514},"  ]\n",[477,774,776],{"class":479,"line":775},26,[477,777,778],{"class":497},"}\n",[459,780,782],{"id":781},"field-selection","Field Selection",[455,784,785],{},"Select specific fields from relations using bracket syntax:",[467,787,789],{"className":469,"code":788,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts[id,title,createdAt]\n\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"Hello World\",\n          \"createdAt\": \"2024-01-01T00:00:00Z\"\n          // Only selected fields included\n        }\n      ]\n    }\n  ]\n}\n",[474,790,791,796,800,804,814,818,832,850,862,866,880,898,916,921,925,929,933,937],{"__ignoreMap":472},[477,792,793],{"class":479,"line":480},[477,794,795],{"class":483},"// GET /api/users?include=posts[id,title,createdAt]\n",[477,797,798],{"class":479,"line":487},[477,799,491],{"emptyLinePlaceholder":490},[477,801,802],{"class":479,"line":494},[477,803,498],{"class":497},[477,805,806,808,810,812],{"class":479,"line":501},[477,807,504],{"class":497},[477,809,508],{"class":507},[477,811,511],{"class":497},[477,813,515],{"class":514},[477,815,816],{"class":479,"line":518},[477,817,521],{"class":497},[477,819,820,822,824,826,828,830],{"class":479,"line":524},[477,821,527],{"class":497},[477,823,530],{"class":514},[477,825,511],{"class":497},[477,827,535],{"class":497},[477,829,539],{"class":538},[477,831,542],{"class":497},[477,833,834,836,838,840,842,844,846,848],{"class":479,"line":545},[477,835,527],{"class":497},[477,837,550],{"class":514},[477,839,511],{"class":497},[477,841,535],{"class":497},[477,843,557],{"class":497},[477,845,560],{"class":507},[477,847,511],{"class":497},[477,849,542],{"class":497},[477,851,852,854,856,858,860],{"class":479,"line":567},[477,853,527],{"class":497},[477,855,572],{"class":514},[477,857,511],{"class":497},[477,859,535],{"class":497},[477,861,579],{"class":514},[477,863,864],{"class":479,"line":582},[477,865,585],{"class":497},[477,867,868,870,872,874,876,878],{"class":479,"line":588},[477,869,591],{"class":497},[477,871,530],{"class":514},[477,873,511],{"class":497},[477,875,535],{"class":497},[477,877,539],{"class":538},[477,879,542],{"class":497},[477,881,882,884,886,888,890,892,894,896],{"class":479,"line":604},[477,883,591],{"class":497},[477,885,609],{"class":514},[477,887,511],{"class":497},[477,889,535],{"class":497},[477,891,557],{"class":497},[477,893,618],{"class":507},[477,895,511],{"class":497},[477,897,542],{"class":497},[477,899,900,902,905,907,909,911,914],{"class":479,"line":625},[477,901,591],{"class":497},[477,903,904],{"class":514},"createdAt",[477,906,511],{"class":497},[477,908,535],{"class":497},[477,910,557],{"class":497},[477,912,913],{"class":507},"2024-01-01T00:00:00Z",[477,915,730],{"class":497},[477,917,918],{"class":479,"line":639},[477,919,920],{"class":483},"          // Only selected fields included\n",[477,922,923],{"class":479,"line":645},[477,924,754],{"class":497},[477,926,927],{"class":479,"line":661},[477,928,760],{"class":514},[477,930,931],{"class":479,"line":682},[477,932,766],{"class":497},[477,934,935],{"class":479,"line":697},[477,936,772],{"class":514},[477,938,939],{"class":479,"line":714},[477,940,778],{"class":497},[459,942,944],{"id":943},"filtering-relations","Filtering Relations",[455,946,947],{},"Filter related records using curly brace syntax:",[467,949,951],{"className":469,"code":950,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts{filter:{published:true}}\n\n// Only published posts will be included\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [\n        // Only posts where published = true\n      ]\n    }\n  ]\n}\n",[474,952,953,958,962,967,971,981,985,999,1017,1029,1034,1038,1042,1046],{"__ignoreMap":472},[477,954,955],{"class":479,"line":480},[477,956,957],{"class":483},"// GET /api/users?include=posts{filter:{published:true}}\n",[477,959,960],{"class":479,"line":487},[477,961,491],{"emptyLinePlaceholder":490},[477,963,964],{"class":479,"line":494},[477,965,966],{"class":483},"// Only published posts will be included\n",[477,968,969],{"class":479,"line":501},[477,970,498],{"class":497},[477,972,973,975,977,979],{"class":479,"line":518},[477,974,504],{"class":497},[477,976,508],{"class":507},[477,978,511],{"class":497},[477,980,515],{"class":514},[477,982,983],{"class":479,"line":524},[477,984,521],{"class":497},[477,986,987,989,991,993,995,997],{"class":479,"line":545},[477,988,527],{"class":497},[477,990,530],{"class":514},[477,992,511],{"class":497},[477,994,535],{"class":497},[477,996,539],{"class":538},[477,998,542],{"class":497},[477,1000,1001,1003,1005,1007,1009,1011,1013,1015],{"class":479,"line":567},[477,1002,527],{"class":497},[477,1004,550],{"class":514},[477,1006,511],{"class":497},[477,1008,535],{"class":497},[477,1010,557],{"class":497},[477,1012,560],{"class":507},[477,1014,511],{"class":497},[477,1016,542],{"class":497},[477,1018,1019,1021,1023,1025,1027],{"class":479,"line":582},[477,1020,527],{"class":497},[477,1022,572],{"class":514},[477,1024,511],{"class":497},[477,1026,535],{"class":497},[477,1028,579],{"class":514},[477,1030,1031],{"class":479,"line":588},[477,1032,1033],{"class":483},"        // Only posts where published = true\n",[477,1035,1036],{"class":479,"line":604},[477,1037,760],{"class":514},[477,1039,1040],{"class":479,"line":625},[477,1041,766],{"class":497},[477,1043,1044],{"class":479,"line":639},[477,1045,772],{"class":514},[477,1047,1048],{"class":479,"line":645},[477,1049,778],{"class":497},[1051,1052,1054],"h3",{"id":1053},"advanced-filtering","Advanced Filtering",[455,1056,1057],{},"Use the same filter operators as the main list endpoint:",[467,1059,1061],{"className":469,"code":1060,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts{filter:{createdAt:{$gte:\"2024-01-01\"}}}\n// GET /api/users?include=posts{filter:{title:{$contains:\"nuxt\"}}}\n",[474,1062,1063,1068],{"__ignoreMap":472},[477,1064,1065],{"class":479,"line":480},[477,1066,1067],{"class":483},"// GET /api/users?include=posts{filter:{createdAt:{$gte:\"2024-01-01\"}}}\n",[477,1069,1070],{"class":479,"line":487},[477,1071,1072],{"class":483},"// GET /api/users?include=posts{filter:{title:{$contains:\"nuxt\"}}}\n",[459,1074,1076],{"id":1075},"pagination-on-relations","Pagination on Relations",[455,1078,1079],{},"Limit and offset related records:",[467,1081,1083],{"className":469,"code":1082,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts{limit:5}\n\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [\n        // Only first 5 posts\n      ]\n    }\n  ]\n}\n",[474,1084,1085,1090,1094,1098,1108,1112,1126,1144,1156,1161,1165,1169,1173],{"__ignoreMap":472},[477,1086,1087],{"class":479,"line":480},[477,1088,1089],{"class":483},"// GET /api/users?include=posts{limit:5}\n",[477,1091,1092],{"class":479,"line":487},[477,1093,491],{"emptyLinePlaceholder":490},[477,1095,1096],{"class":479,"line":494},[477,1097,498],{"class":497},[477,1099,1100,1102,1104,1106],{"class":479,"line":501},[477,1101,504],{"class":497},[477,1103,508],{"class":507},[477,1105,511],{"class":497},[477,1107,515],{"class":514},[477,1109,1110],{"class":479,"line":518},[477,1111,521],{"class":497},[477,1113,1114,1116,1118,1120,1122,1124],{"class":479,"line":524},[477,1115,527],{"class":497},[477,1117,530],{"class":514},[477,1119,511],{"class":497},[477,1121,535],{"class":497},[477,1123,539],{"class":538},[477,1125,542],{"class":497},[477,1127,1128,1130,1132,1134,1136,1138,1140,1142],{"class":479,"line":545},[477,1129,527],{"class":497},[477,1131,550],{"class":514},[477,1133,511],{"class":497},[477,1135,535],{"class":497},[477,1137,557],{"class":497},[477,1139,560],{"class":507},[477,1141,511],{"class":497},[477,1143,542],{"class":497},[477,1145,1146,1148,1150,1152,1154],{"class":479,"line":567},[477,1147,527],{"class":497},[477,1149,572],{"class":514},[477,1151,511],{"class":497},[477,1153,535],{"class":497},[477,1155,579],{"class":514},[477,1157,1158],{"class":479,"line":582},[477,1159,1160],{"class":483},"        // Only first 5 posts\n",[477,1162,1163],{"class":479,"line":588},[477,1164,760],{"class":514},[477,1166,1167],{"class":479,"line":604},[477,1168,766],{"class":497},[477,1170,1171],{"class":479,"line":625},[477,1172,772],{"class":514},[477,1174,1175],{"class":479,"line":639},[477,1176,778],{"class":497},[455,1178,1179],{},"With offset:",[467,1181,1183],{"className":469,"code":1182,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts{limit:5,offset:10}\n",[474,1184,1185],{"__ignoreMap":472},[477,1186,1187],{"class":479,"line":480},[477,1188,1182],{"class":483},[459,1190,1192],{"id":1191},"combining-features","Combining Features",[455,1194,1195],{},"Combine field selection, filtering, and pagination:",[467,1197,1199],{"className":469,"code":1198,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts[id,title]{limit:10,filter:{published:true}}\n\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"Hello World\"\n          // Only id and title, only published, max 10\n        }\n      ]\n    }\n  ]\n}\n",[474,1200,1201,1206,1210,1214,1224,1228,1242,1260,1272,1276,1290,1306,1311,1315,1319,1323,1327],{"__ignoreMap":472},[477,1202,1203],{"class":479,"line":480},[477,1204,1205],{"class":483},"// GET /api/users?include=posts[id,title]{limit:10,filter:{published:true}}\n",[477,1207,1208],{"class":479,"line":487},[477,1209,491],{"emptyLinePlaceholder":490},[477,1211,1212],{"class":479,"line":494},[477,1213,498],{"class":497},[477,1215,1216,1218,1220,1222],{"class":479,"line":501},[477,1217,504],{"class":497},[477,1219,508],{"class":507},[477,1221,511],{"class":497},[477,1223,515],{"class":514},[477,1225,1226],{"class":479,"line":518},[477,1227,521],{"class":497},[477,1229,1230,1232,1234,1236,1238,1240],{"class":479,"line":524},[477,1231,527],{"class":497},[477,1233,530],{"class":514},[477,1235,511],{"class":497},[477,1237,535],{"class":497},[477,1239,539],{"class":538},[477,1241,542],{"class":497},[477,1243,1244,1246,1248,1250,1252,1254,1256,1258],{"class":479,"line":545},[477,1245,527],{"class":497},[477,1247,550],{"class":514},[477,1249,511],{"class":497},[477,1251,535],{"class":497},[477,1253,557],{"class":497},[477,1255,560],{"class":507},[477,1257,511],{"class":497},[477,1259,542],{"class":497},[477,1261,1262,1264,1266,1268,1270],{"class":479,"line":567},[477,1263,527],{"class":497},[477,1265,572],{"class":514},[477,1267,511],{"class":497},[477,1269,535],{"class":497},[477,1271,579],{"class":514},[477,1273,1274],{"class":479,"line":582},[477,1275,585],{"class":497},[477,1277,1278,1280,1282,1284,1286,1288],{"class":479,"line":588},[477,1279,591],{"class":497},[477,1281,530],{"class":514},[477,1283,511],{"class":497},[477,1285,535],{"class":497},[477,1287,539],{"class":538},[477,1289,542],{"class":497},[477,1291,1292,1294,1296,1298,1300,1302,1304],{"class":479,"line":604},[477,1293,591],{"class":497},[477,1295,609],{"class":514},[477,1297,511],{"class":497},[477,1299,535],{"class":497},[477,1301,557],{"class":497},[477,1303,618],{"class":507},[477,1305,730],{"class":497},[477,1307,1308],{"class":479,"line":625},[477,1309,1310],{"class":483},"          // Only id and title, only published, max 10\n",[477,1312,1313],{"class":479,"line":639},[477,1314,754],{"class":497},[477,1316,1317],{"class":479,"line":645},[477,1318,760],{"class":514},[477,1320,1321],{"class":479,"line":661},[477,1322,766],{"class":497},[477,1324,1325],{"class":479,"line":682},[477,1326,772],{"class":514},[477,1328,1329],{"class":479,"line":697},[477,1330,778],{"class":497},[459,1332,1334],{"id":1333},"deep-nesting","Deep Nesting",[455,1336,1337],{},"Combine all features with deep nesting:",[467,1339,1341],{"className":469,"code":1340,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts[id,title]{limit:5,filter:{published:true}}.comments[id,body]{limit:3}.author[id,name]\n\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"Hello World\",\n          \"comments\": [\n            {\n              \"id\": 1,\n              \"body\": \"Great post!\",\n              \"author\": {\n                \"id\": 2,\n                \"name\": \"Jane Smith\"\n              }\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}\n",[474,1342,1343,1348,1352,1356,1366,1370,1384,1402,1414,1418,1432,1450,1462,1466,1480,1498,1510,1524,1540,1544,1548,1552,1556,1560,1564,1568],{"__ignoreMap":472},[477,1344,1345],{"class":479,"line":480},[477,1346,1347],{"class":483},"// GET /api/users?include=posts[id,title]{limit:5,filter:{published:true}}.comments[id,body]{limit:3}.author[id,name]\n",[477,1349,1350],{"class":479,"line":487},[477,1351,491],{"emptyLinePlaceholder":490},[477,1353,1354],{"class":479,"line":494},[477,1355,498],{"class":497},[477,1357,1358,1360,1362,1364],{"class":479,"line":501},[477,1359,504],{"class":497},[477,1361,508],{"class":507},[477,1363,511],{"class":497},[477,1365,515],{"class":514},[477,1367,1368],{"class":479,"line":518},[477,1369,521],{"class":497},[477,1371,1372,1374,1376,1378,1380,1382],{"class":479,"line":524},[477,1373,527],{"class":497},[477,1375,530],{"class":514},[477,1377,511],{"class":497},[477,1379,535],{"class":497},[477,1381,539],{"class":538},[477,1383,542],{"class":497},[477,1385,1386,1388,1390,1392,1394,1396,1398,1400],{"class":479,"line":545},[477,1387,527],{"class":497},[477,1389,550],{"class":514},[477,1391,511],{"class":497},[477,1393,535],{"class":497},[477,1395,557],{"class":497},[477,1397,560],{"class":507},[477,1399,511],{"class":497},[477,1401,542],{"class":497},[477,1403,1404,1406,1408,1410,1412],{"class":479,"line":567},[477,1405,527],{"class":497},[477,1407,572],{"class":514},[477,1409,511],{"class":497},[477,1411,535],{"class":497},[477,1413,579],{"class":514},[477,1415,1416],{"class":479,"line":582},[477,1417,585],{"class":497},[477,1419,1420,1422,1424,1426,1428,1430],{"class":479,"line":588},[477,1421,591],{"class":497},[477,1423,530],{"class":514},[477,1425,511],{"class":497},[477,1427,535],{"class":497},[477,1429,539],{"class":538},[477,1431,542],{"class":497},[477,1433,1434,1436,1438,1440,1442,1444,1446,1448],{"class":479,"line":604},[477,1435,591],{"class":497},[477,1437,609],{"class":514},[477,1439,511],{"class":497},[477,1441,535],{"class":497},[477,1443,557],{"class":497},[477,1445,618],{"class":507},[477,1447,511],{"class":497},[477,1449,542],{"class":497},[477,1451,1452,1454,1456,1458,1460],{"class":479,"line":625},[477,1453,591],{"class":497},[477,1455,630],{"class":514},[477,1457,511],{"class":497},[477,1459,535],{"class":497},[477,1461,579],{"class":514},[477,1463,1464],{"class":479,"line":639},[477,1465,642],{"class":497},[477,1467,1468,1470,1472,1474,1476,1478],{"class":479,"line":645},[477,1469,648],{"class":497},[477,1471,530],{"class":514},[477,1473,511],{"class":497},[477,1475,535],{"class":497},[477,1477,539],{"class":538},[477,1479,542],{"class":497},[477,1481,1482,1484,1486,1488,1490,1492,1494,1496],{"class":479,"line":661},[477,1483,648],{"class":497},[477,1485,666],{"class":514},[477,1487,511],{"class":497},[477,1489,535],{"class":497},[477,1491,557],{"class":497},[477,1493,675],{"class":507},[477,1495,511],{"class":497},[477,1497,542],{"class":497},[477,1499,1500,1502,1504,1506,1508],{"class":479,"line":682},[477,1501,648],{"class":497},[477,1503,687],{"class":514},[477,1505,511],{"class":497},[477,1507,535],{"class":497},[477,1509,694],{"class":497},[477,1511,1512,1514,1516,1518,1520,1522],{"class":479,"line":697},[477,1513,700],{"class":497},[477,1515,530],{"class":514},[477,1517,511],{"class":497},[477,1519,535],{"class":497},[477,1521,709],{"class":538},[477,1523,542],{"class":497},[477,1525,1526,1528,1530,1532,1534,1536,1538],{"class":479,"line":714},[477,1527,700],{"class":497},[477,1529,550],{"class":514},[477,1531,511],{"class":497},[477,1533,535],{"class":497},[477,1535,557],{"class":497},[477,1537,727],{"class":507},[477,1539,730],{"class":497},[477,1541,1542],{"class":479,"line":733},[477,1543,736],{"class":497},[477,1545,1546],{"class":479,"line":739},[477,1547,742],{"class":497},[477,1549,1550],{"class":479,"line":745},[477,1551,748],{"class":514},[477,1553,1554],{"class":479,"line":751},[477,1555,754],{"class":497},[477,1557,1558],{"class":479,"line":757},[477,1559,760],{"class":514},[477,1561,1562],{"class":479,"line":763},[477,1563,766],{"class":497},[477,1565,1566],{"class":479,"line":769},[477,1567,772],{"class":514},[477,1569,1570],{"class":479,"line":775},[477,1571,778],{"class":497},[459,1573,1575],{"id":1574},"multiple-relations","Multiple Relations",[455,1577,1578],{},"Include multiple relations at the same level:",[467,1580,1582],{"className":469,"code":1581,"language":471,"meta":472,"style":472},"// GET /api/users?include=posts[id,title],comments[id,body],profile[bio,avatar]\n\n{\n  \"data\": [\n    {\n      \"id\": 1,\n      \"name\": \"John Doe\",\n      \"posts\": [...],\n      \"comments\": [...],\n      \"profile\": {\n        \"bio\": \"...\",\n        \"avatar\": \"...\"\n      }\n    }\n  ]\n}\n",[474,1583,1584,1589,1593,1597,1607,1611,1625,1643,1664,1682,1695,1715,1732,1737,1741,1745],{"__ignoreMap":472},[477,1585,1586],{"class":479,"line":480},[477,1587,1588],{"class":483},"// GET /api/users?include=posts[id,title],comments[id,body],profile[bio,avatar]\n",[477,1590,1591],{"class":479,"line":487},[477,1592,491],{"emptyLinePlaceholder":490},[477,1594,1595],{"class":479,"line":494},[477,1596,498],{"class":497},[477,1598,1599,1601,1603,1605],{"class":479,"line":501},[477,1600,504],{"class":497},[477,1602,508],{"class":507},[477,1604,511],{"class":497},[477,1606,515],{"class":514},[477,1608,1609],{"class":479,"line":518},[477,1610,521],{"class":497},[477,1612,1613,1615,1617,1619,1621,1623],{"class":479,"line":524},[477,1614,527],{"class":497},[477,1616,530],{"class":514},[477,1618,511],{"class":497},[477,1620,535],{"class":497},[477,1622,539],{"class":538},[477,1624,542],{"class":497},[477,1626,1627,1629,1631,1633,1635,1637,1639,1641],{"class":479,"line":545},[477,1628,527],{"class":497},[477,1630,550],{"class":514},[477,1632,511],{"class":497},[477,1634,535],{"class":497},[477,1636,557],{"class":497},[477,1638,560],{"class":507},[477,1640,511],{"class":497},[477,1642,542],{"class":497},[477,1644,1645,1647,1649,1651,1653,1656,1659,1662],{"class":479,"line":567},[477,1646,527],{"class":497},[477,1648,572],{"class":514},[477,1650,511],{"class":497},[477,1652,535],{"class":497},[477,1654,1655],{"class":514}," [",[477,1657,1658],{"class":497},"...",[477,1660,1661],{"class":514},"]",[477,1663,542],{"class":497},[477,1665,1666,1668,1670,1672,1674,1676,1678,1680],{"class":479,"line":582},[477,1667,527],{"class":497},[477,1669,630],{"class":514},[477,1671,511],{"class":497},[477,1673,535],{"class":497},[477,1675,1655],{"class":514},[477,1677,1658],{"class":497},[477,1679,1661],{"class":514},[477,1681,542],{"class":497},[477,1683,1684,1686,1689,1691,1693],{"class":479,"line":588},[477,1685,527],{"class":497},[477,1687,1688],{"class":514},"profile",[477,1690,511],{"class":497},[477,1692,535],{"class":497},[477,1694,694],{"class":497},[477,1696,1697,1700,1703,1705,1707,1709,1711,1713],{"class":479,"line":604},[477,1698,1699],{"class":497},"        \"",[477,1701,1702],{"class":514},"bio",[477,1704,511],{"class":497},[477,1706,535],{"class":497},[477,1708,557],{"class":497},[477,1710,1658],{"class":507},[477,1712,511],{"class":497},[477,1714,542],{"class":497},[477,1716,1717,1719,1722,1724,1726,1728,1730],{"class":479,"line":625},[477,1718,1699],{"class":497},[477,1720,1721],{"class":514},"avatar",[477,1723,511],{"class":497},[477,1725,535],{"class":497},[477,1727,557],{"class":497},[477,1729,1658],{"class":507},[477,1731,730],{"class":497},[477,1733,1734],{"class":479,"line":639},[477,1735,1736],{"class":497},"      }\n",[477,1738,1739],{"class":479,"line":645},[477,1740,766],{"class":497},[477,1742,1743],{"class":479,"line":661},[477,1744,772],{"class":514},[477,1746,1747],{"class":479,"line":682},[477,1748,778],{"class":497},[459,1750,1752],{"id":1751},"configuration","Configuration",[455,1754,1755,1756,535],{},"Configure nested relations behavior in ",[474,1757,1758],{},"nuxt.config.ts",[467,1760,1762],{"className":469,"code":1761,"language":471,"meta":472,"style":472},"export default defineNuxtConfig({\n  autoApi: {\n    relations: {\n      // Maximum nesting depth (default: 3)\n      maxDepth: 5,\n\n      // Allow field selection (default: true)\n      allowFieldSelection: true,\n\n      // Allow filtering on relations (default: true)\n      allowFiltering: true,\n\n      // Allow pagination on relations (default: true)\n      allowPagination: true,\n    }\n  }\n})\n",[474,1763,1764,1783,1792,1801,1806,1818,1822,1827,1840,1844,1849,1860,1864,1869,1880,1884,1889],{"__ignoreMap":472},[477,1765,1766,1770,1773,1777,1781],{"class":479,"line":480},[477,1767,1769],{"class":1768},"s7zQu","export",[477,1771,1772],{"class":1768}," default",[477,1774,1776],{"class":1775},"s2Zo4"," defineNuxtConfig",[477,1778,1780],{"class":1779},"sTEyZ","(",[477,1782,498],{"class":497},[477,1784,1785,1788,1790],{"class":479,"line":487},[477,1786,1787],{"class":514},"  autoApi",[477,1789,535],{"class":497},[477,1791,694],{"class":497},[477,1793,1794,1797,1799],{"class":479,"line":494},[477,1795,1796],{"class":514},"    relations",[477,1798,535],{"class":497},[477,1800,694],{"class":497},[477,1802,1803],{"class":479,"line":501},[477,1804,1805],{"class":483},"      // Maximum nesting depth (default: 3)\n",[477,1807,1808,1811,1813,1816],{"class":479,"line":518},[477,1809,1810],{"class":514},"      maxDepth",[477,1812,535],{"class":497},[477,1814,1815],{"class":538}," 5",[477,1817,542],{"class":497},[477,1819,1820],{"class":479,"line":524},[477,1821,491],{"emptyLinePlaceholder":490},[477,1823,1824],{"class":479,"line":545},[477,1825,1826],{"class":483},"      // Allow field selection (default: true)\n",[477,1828,1829,1832,1834,1838],{"class":479,"line":567},[477,1830,1831],{"class":514},"      allowFieldSelection",[477,1833,535],{"class":497},[477,1835,1837],{"class":1836},"sfNiH"," true",[477,1839,542],{"class":497},[477,1841,1842],{"class":479,"line":582},[477,1843,491],{"emptyLinePlaceholder":490},[477,1845,1846],{"class":479,"line":588},[477,1847,1848],{"class":483},"      // Allow filtering on relations (default: true)\n",[477,1850,1851,1854,1856,1858],{"class":479,"line":604},[477,1852,1853],{"class":514},"      allowFiltering",[477,1855,535],{"class":497},[477,1857,1837],{"class":1836},[477,1859,542],{"class":497},[477,1861,1862],{"class":479,"line":625},[477,1863,491],{"emptyLinePlaceholder":490},[477,1865,1866],{"class":479,"line":639},[477,1867,1868],{"class":483},"      // Allow pagination on relations (default: true)\n",[477,1870,1871,1874,1876,1878],{"class":479,"line":645},[477,1872,1873],{"class":514},"      allowPagination",[477,1875,535],{"class":497},[477,1877,1837],{"class":1836},[477,1879,542],{"class":497},[477,1881,1882],{"class":479,"line":661},[477,1883,766],{"class":497},[477,1885,1886],{"class":479,"line":682},[477,1887,1888],{"class":497},"  }\n",[477,1890,1891,1894],{"class":479,"line":697},[477,1892,1893],{"class":497},"}",[477,1895,1896],{"class":1779},")\n",[459,1898,1900],{"id":1899},"max-depth-protection","Max Depth Protection",[455,1902,1903],{},"To prevent performance issues and circular dependencies, nested relations are limited to a maximum depth (default: 3 levels).",[455,1905,1906],{},"Exceeding the max depth will log a warning and stop further nesting:",[467,1908,1910],{"className":469,"code":1909,"language":471,"meta":472,"style":472},"// If maxDepth is 3, this will only nest 3 levels deep\n// GET /api/a?include=b.c.d.e.f\n// Will load: a -> b -> c -> d (stops here)\n",[474,1911,1912,1917,1922],{"__ignoreMap":472},[477,1913,1914],{"class":479,"line":480},[477,1915,1916],{"class":483},"// If maxDepth is 3, this will only nest 3 levels deep\n",[477,1918,1919],{"class":479,"line":487},[477,1920,1921],{"class":483},"// GET /api/a?include=b.c.d.e.f\n",[477,1923,1924],{"class":479,"line":494},[477,1925,1926],{"class":483},"// Will load: a -> b -> c -> d (stops here)\n",[459,1928,1930],{"id":1929},"authorization-on-nested-relations","Authorization on Nested Relations",[455,1932,1933],{},"Authorization checks apply at each level:",[1935,1936,1937,1949,1955],"ul",{},[1938,1939,1940,1944,1945,1948],"li",{},[1941,1942,1943],"strong",{},"Collection-level",": User must have ",[474,1946,1947],{},"read"," permission for each related resource",[1938,1950,1951,1954],{},[1941,1952,1953],{},"Object-level",": Object-level authorization functions execute for each related record",[1938,1956,1957,1960],{},[1941,1958,1959],{},"Field-level",": Field permissions apply to nested relation fields",[455,1962,1963],{},"Example:",[467,1965,1967],{"className":469,"code":1966,"language":471,"meta":472,"style":472},"// If user doesn't have permission to read 'posts', this will fail:\n// GET /api/users?include=posts\n\n// If user can't read certain fields in posts, they'll be filtered out:\n// GET /api/users?include=posts[id,title,secret]\n// 'secret' field will be omitted if user doesn't have permission\n",[474,1968,1969,1974,1979,1983,1988,1993],{"__ignoreMap":472},[477,1970,1971],{"class":479,"line":480},[477,1972,1973],{"class":483},"// If user doesn't have permission to read 'posts', this will fail:\n",[477,1975,1976],{"class":479,"line":487},[477,1977,1978],{"class":483},"// GET /api/users?include=posts\n",[477,1980,1981],{"class":479,"line":494},[477,1982,491],{"emptyLinePlaceholder":490},[477,1984,1985],{"class":479,"line":501},[477,1986,1987],{"class":483},"// If user can't read certain fields in posts, they'll be filtered out:\n",[477,1989,1990],{"class":479,"line":518},[477,1991,1992],{"class":483},"// GET /api/users?include=posts[id,title,secret]\n",[477,1994,1995],{"class":479,"line":524},[477,1996,1997],{"class":483},"// 'secret' field will be omitted if user doesn't have permission\n",[459,1999,2001],{"id":2000},"performance-considerations","Performance Considerations",[1051,2003,2005],{"id":2004},"database-queries","Database Queries",[455,2007,2008],{},"Each level of nesting may result in additional database queries. The exact number depends on your database client and Drizzle's query optimization.",[1051,2010,2012],{"id":2011},"indexes","Indexes",[455,2014,2015],{},"For optimal performance with filtering on relations:",[467,2017,2021],{"className":2018,"code":2019,"language":2020,"meta":472,"style":472},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","-- Index the fields you filter by\nCREATE INDEX idx_posts_published ON posts(published);\nCREATE INDEX idx_posts_created_at ON posts(created_at);\n","sql",[474,2022,2023,2028,2033],{"__ignoreMap":472},[477,2024,2025],{"class":479,"line":480},[477,2026,2027],{},"-- Index the fields you filter by\n",[477,2029,2030],{"class":479,"line":487},[477,2031,2032],{},"CREATE INDEX idx_posts_published ON posts(published);\n",[477,2034,2035],{"class":479,"line":494},[477,2036,2037],{},"CREATE INDEX idx_posts_created_at ON posts(created_at);\n",[1051,2039,2041],{"id":2040},"field-selection-benefits","Field Selection Benefits",[455,2043,2044],{},"Selecting only needed fields reduces:",[1935,2046,2047,2050,2053],{},[1938,2048,2049],{},"Network bandwidth",[1938,2051,2052],{},"JSON serialization time",[1938,2054,2055],{},"Client memory usage",[467,2057,2059],{"className":469,"code":2058,"language":471,"meta":472,"style":472},"// Good: Only fetch what you need\ninclude=posts[id,title]\n\n// Less efficient: Fetch everything\ninclude=posts\n",[474,2060,2061,2066,2083,2087,2092],{"__ignoreMap":472},[477,2062,2063],{"class":479,"line":480},[477,2064,2065],{"class":483},"// Good: Only fetch what you need\n",[477,2067,2068,2071,2074,2077,2080],{"class":479,"line":487},[477,2069,2070],{"class":1779},"include",[477,2072,2073],{"class":497},"=",[477,2075,2076],{"class":1779},"posts[id",[477,2078,2079],{"class":497},",",[477,2081,2082],{"class":1779},"title]\n",[477,2084,2085],{"class":479,"line":494},[477,2086,491],{"emptyLinePlaceholder":490},[477,2088,2089],{"class":479,"line":501},[477,2090,2091],{"class":483},"// Less efficient: Fetch everything\n",[477,2093,2094,2096,2098],{"class":479,"line":518},[477,2095,2070],{"class":1779},[477,2097,2073],{"class":497},[477,2099,2100],{"class":1779},"posts\n",[1051,2102,2104],{"id":2103},"pagination-benefits","Pagination Benefits",[455,2106,2107],{},"Limit relation results to avoid loading huge datasets:",[467,2109,2111],{"className":469,"code":2110,"language":471,"meta":472,"style":472},"// Good: Limit related records\ninclude=posts{limit:10}\n\n// Potentially slow: Load all posts for each user\ninclude=posts\n",[474,2112,2113,2118,2140,2144,2149],{"__ignoreMap":472},[477,2114,2115],{"class":479,"line":480},[477,2116,2117],{"class":483},"// Good: Limit related records\n",[477,2119,2120,2122,2124,2126,2129,2133,2135,2138],{"class":479,"line":487},[477,2121,2070],{"class":1779},[477,2123,2073],{"class":497},[477,2125,572],{"class":1779},[477,2127,2128],{"class":497},"{",[477,2130,2132],{"class":2131},"sBMFI","limit",[477,2134,535],{"class":497},[477,2136,2137],{"class":538},"10",[477,2139,778],{"class":497},[477,2141,2142],{"class":479,"line":494},[477,2143,491],{"emptyLinePlaceholder":490},[477,2145,2146],{"class":479,"line":501},[477,2147,2148],{"class":483},"// Potentially slow: Load all posts for each user\n",[477,2150,2151,2153,2155],{"class":479,"line":518},[477,2152,2070],{"class":1779},[477,2154,2073],{"class":497},[477,2156,2100],{"class":1779},[459,2158,2160],{"id":2159},"common-patterns","Common Patterns",[1051,2162,2164],{"id":2163},"blog-posts-with-recent-comments","Blog Posts with Recent Comments",[467,2166,2168],{"className":469,"code":2167,"language":471,"meta":472,"style":472},"GET /api/posts?include=comments[id,body,createdAt]{limit:5,filter:{createdAt:{$gte:\"2024-01-01\"}}}.author[name,avatar]\n",[474,2169,2170],{"__ignoreMap":472},[477,2171,2172,2175,2178,2181,2183,2185,2188,2190,2192,2195,2197,2199,2201,2204,2206,2208,2210,2213,2215,2218,2221,2223,2225,2228,2230,2232,2235,2237,2240,2243,2245],{"class":479,"line":480},[477,2173,2174],{"class":1779},"GET ",[477,2176,2177],{"class":497},"/",[477,2179,2180],{"class":1779},"api",[477,2182,2177],{"class":497},[477,2184,572],{"class":1779},[477,2186,2187],{"class":497},"?",[477,2189,2070],{"class":1779},[477,2191,2073],{"class":497},[477,2193,2194],{"class":1779},"comments[id",[477,2196,2079],{"class":497},[477,2198,666],{"class":1779},[477,2200,2079],{"class":497},[477,2202,2203],{"class":1779},"createdAt]",[477,2205,2128],{"class":497},[477,2207,2132],{"class":514},[477,2209,535],{"class":497},[477,2211,2212],{"class":538},"5",[477,2214,2079],{"class":497},[477,2216,2217],{"class":514},"filter",[477,2219,2220],{"class":497},":{",[477,2222,904],{"class":514},[477,2224,2220],{"class":497},[477,2226,2227],{"class":514},"$gte",[477,2229,535],{"class":497},[477,2231,511],{"class":497},[477,2233,2234],{"class":507},"2024-01-01",[477,2236,511],{"class":497},[477,2238,2239],{"class":497},"}}}.",[477,2241,2242],{"class":1779},"author[name",[477,2244,2079],{"class":497},[477,2246,2247],{"class":1779},"avatar]\n",[1051,2249,2251],{"id":2250},"users-with-recent-activity","Users with Recent Activity",[467,2253,2255],{"className":469,"code":2254,"language":471,"meta":472,"style":472},"GET /api/users?include=posts[id,title]{limit:3},comments[id,body]{limit:5}\n",[474,2256,2257],{"__ignoreMap":472},[477,2258,2259,2261,2263,2265,2267,2270,2272,2274,2276,2278,2280,2283,2285,2287,2289,2292,2295,2297,2299,2302,2304,2306,2308,2310],{"class":479,"line":480},[477,2260,2174],{"class":1779},[477,2262,2177],{"class":497},[477,2264,2180],{"class":1779},[477,2266,2177],{"class":497},[477,2268,2269],{"class":1779},"users",[477,2271,2187],{"class":497},[477,2273,2070],{"class":1779},[477,2275,2073],{"class":497},[477,2277,2076],{"class":1779},[477,2279,2079],{"class":497},[477,2281,2282],{"class":1779},"title]",[477,2284,2128],{"class":497},[477,2286,2132],{"class":514},[477,2288,535],{"class":497},[477,2290,2291],{"class":538},"3",[477,2293,2294],{"class":497},"},",[477,2296,2194],{"class":1779},[477,2298,2079],{"class":497},[477,2300,2301],{"class":1779},"body]",[477,2303,2128],{"class":497},[477,2305,2132],{"class":514},[477,2307,535],{"class":497},[477,2309,2212],{"class":538},[477,2311,778],{"class":497},[1051,2313,2315],{"id":2314},"nested-categories","Nested Categories",[467,2317,2319],{"className":469,"code":2318,"language":471,"meta":472,"style":472},"GET /api/categories?include=subcategories.products[id,name,price]{limit:10}\n",[474,2320,2321],{"__ignoreMap":472},[477,2322,2323,2325,2327,2329,2331,2334,2336,2338,2340,2343,2346,2349,2351,2353,2355,2358,2360,2362,2364,2366],{"class":479,"line":480},[477,2324,2174],{"class":1779},[477,2326,2177],{"class":497},[477,2328,2180],{"class":1779},[477,2330,2177],{"class":497},[477,2332,2333],{"class":1779},"categories",[477,2335,2187],{"class":497},[477,2337,2070],{"class":1779},[477,2339,2073],{"class":497},[477,2341,2342],{"class":1779},"subcategories",[477,2344,2345],{"class":497},".",[477,2347,2348],{"class":1779},"products[id",[477,2350,2079],{"class":497},[477,2352,550],{"class":1779},[477,2354,2079],{"class":497},[477,2356,2357],{"class":1779},"price]",[477,2359,2128],{"class":497},[477,2361,2132],{"class":514},[477,2363,535],{"class":497},[477,2365,2137],{"class":538},[477,2367,778],{"class":497},[459,2369,2371],{"id":2370},"error-handling","Error Handling",[455,2373,2374],{},"Invalid include syntax returns a 400 error:",[467,2376,2378],{"className":469,"code":2377,"language":471,"meta":472,"style":472},"// Invalid: Unknown relation\nGET /api/users?include=nonexistent\n// Response: 400 Bad Request - \"Unknown relation: nonexistent\"\n\n// Invalid: Exceeds max depth\nGET /api/users?include=a.b.c.d.e.f.g\n// Response: Warning logged, nesting stops at max depth\n",[474,2379,2380,2385,2406,2411,2415,2420,2471],{"__ignoreMap":472},[477,2381,2382],{"class":479,"line":480},[477,2383,2384],{"class":483},"// Invalid: Unknown relation\n",[477,2386,2387,2389,2391,2393,2395,2397,2399,2401,2403],{"class":479,"line":487},[477,2388,2174],{"class":1779},[477,2390,2177],{"class":497},[477,2392,2180],{"class":1779},[477,2394,2177],{"class":497},[477,2396,2269],{"class":1779},[477,2398,2187],{"class":497},[477,2400,2070],{"class":1779},[477,2402,2073],{"class":497},[477,2404,2405],{"class":1779},"nonexistent\n",[477,2407,2408],{"class":479,"line":494},[477,2409,2410],{"class":483},"// Response: 400 Bad Request - \"Unknown relation: nonexistent\"\n",[477,2412,2413],{"class":479,"line":501},[477,2414,491],{"emptyLinePlaceholder":490},[477,2416,2417],{"class":479,"line":518},[477,2418,2419],{"class":483},"// Invalid: Exceeds max depth\n",[477,2421,2422,2424,2426,2428,2430,2432,2434,2436,2438,2441,2443,2446,2448,2451,2453,2456,2458,2461,2463,2466,2468],{"class":479,"line":524},[477,2423,2174],{"class":1779},[477,2425,2177],{"class":497},[477,2427,2180],{"class":1779},[477,2429,2177],{"class":497},[477,2431,2269],{"class":1779},[477,2433,2187],{"class":497},[477,2435,2070],{"class":1779},[477,2437,2073],{"class":497},[477,2439,2440],{"class":1779},"a",[477,2442,2345],{"class":497},[477,2444,2445],{"class":1779},"b",[477,2447,2345],{"class":497},[477,2449,2450],{"class":1779},"c",[477,2452,2345],{"class":497},[477,2454,2455],{"class":1779},"d",[477,2457,2345],{"class":497},[477,2459,2460],{"class":1779},"e",[477,2462,2345],{"class":497},[477,2464,2465],{"class":1779},"f",[477,2467,2345],{"class":497},[477,2469,2470],{"class":1779},"g\n",[477,2472,2473],{"class":479,"line":545},[477,2474,2475],{"class":483},"// Response: Warning logged, nesting stops at max depth\n",[459,2477,2479],{"id":2478},"typescript-support","TypeScript Support",[455,2481,2482],{},"The frontend composables infer nested types:",[467,2484,2486],{"className":469,"code":2485,"language":471,"meta":472,"style":472},"const { data } = await useAutoApiFetch('users', {\n  query: {\n    include: 'posts.comments.author'\n  }\n})\n\n// TypeScript knows data includes nested relations\ndata.value[0].posts[0].comments[0].author.name\n",[474,2487,2488,2524,2533,2549,2553,2559,2563,2568],{"__ignoreMap":472},[477,2489,2490,2494,2497,2500,2502,2505,2508,2511,2513,2516,2518,2520,2522],{"class":479,"line":480},[477,2491,2493],{"class":2492},"spNyl","const",[477,2495,2496],{"class":497}," {",[477,2498,2499],{"class":1779}," data ",[477,2501,1893],{"class":497},[477,2503,2504],{"class":497}," =",[477,2506,2507],{"class":1768}," await",[477,2509,2510],{"class":1775}," useAutoApiFetch",[477,2512,1780],{"class":1779},[477,2514,2515],{"class":497},"'",[477,2517,2269],{"class":507},[477,2519,2515],{"class":497},[477,2521,2079],{"class":497},[477,2523,694],{"class":497},[477,2525,2526,2529,2531],{"class":479,"line":487},[477,2527,2528],{"class":514},"  query",[477,2530,535],{"class":497},[477,2532,694],{"class":497},[477,2534,2535,2538,2540,2543,2546],{"class":479,"line":494},[477,2536,2537],{"class":514},"    include",[477,2539,535],{"class":497},[477,2541,2542],{"class":497}," '",[477,2544,2545],{"class":507},"posts.comments.author",[477,2547,2548],{"class":497},"'\n",[477,2550,2551],{"class":479,"line":501},[477,2552,1888],{"class":497},[477,2554,2555,2557],{"class":479,"line":518},[477,2556,1893],{"class":497},[477,2558,1896],{"class":1779},[477,2560,2561],{"class":479,"line":524},[477,2562,491],{"emptyLinePlaceholder":490},[477,2564,2565],{"class":479,"line":545},[477,2566,2567],{"class":483},"// TypeScript knows data includes nested relations\n",[477,2569,2570,2572,2574,2577,2580,2582,2584,2587,2589,2591,2593,2596,2598,2600,2602,2604,2606],{"class":479,"line":567},[477,2571,508],{"class":1779},[477,2573,2345],{"class":497},[477,2575,2576],{"class":1779},"value[",[477,2578,2579],{"class":538},"0",[477,2581,1661],{"class":1779},[477,2583,2345],{"class":497},[477,2585,2586],{"class":1779},"posts[",[477,2588,2579],{"class":538},[477,2590,1661],{"class":1779},[477,2592,2345],{"class":497},[477,2594,2595],{"class":1779},"comments[",[477,2597,2579],{"class":538},[477,2599,1661],{"class":1779},[477,2601,2345],{"class":497},[477,2603,687],{"class":1779},[477,2605,2345],{"class":497},[477,2607,2608],{"class":1779},"name\n",[459,2610,2612],{"id":2611},"comparison-with-graphql","Comparison with GraphQL",[455,2614,2615],{},"While not as flexible as GraphQL, nested relations provide similar capabilities:",[2617,2618,2619,2634],"table",{},[2620,2621,2622],"thead",{},[2623,2624,2625,2629,2631],"tr",{},[2626,2627,2628],"th",{},"Feature",[2626,2630,291],{},[2626,2632,2633],{},"GraphQL",[2635,2636,2637,2648,2657,2666,2674,2684,2694],"tbody",{},[2623,2638,2639,2643,2646],{},[2640,2641,2642],"td",{},"Field selection",[2640,2644,2645],{},"✅",[2640,2647,2645],{},[2623,2649,2650,2653,2655],{},[2640,2651,2652],{},"Nested loading",[2640,2654,2645],{},[2640,2656,2645],{},[2623,2658,2659,2662,2664],{},[2640,2660,2661],{},"Filtering",[2640,2663,2645],{},[2640,2665,2645],{},[2623,2667,2668,2670,2672],{},[2640,2669,275],{},[2640,2671,2645],{},[2640,2673,2645],{},[2623,2675,2676,2679,2682],{},[2640,2677,2678],{},"Type safety",[2640,2680,2681],{},"✅ (TypeScript)",[2640,2683,2645],{},[2623,2685,2686,2689,2691],{},[2640,2687,2688],{},"No schema required",[2640,2690,2645],{},[2640,2692,2693],{},"❌",[2623,2695,2696,2699,2702],{},[2640,2697,2698],{},"Learning curve",[2640,2700,2701],{},"Low",[2640,2703,2704],{},"Medium",[459,2706,2708],{"id":2707},"best-practices","Best Practices",[2710,2711,2712,2718,2724,2730,2736,2742],"ol",{},[1938,2713,2714,2717],{},[1941,2715,2716],{},"Always select fields",": Don't load more data than needed",[1938,2719,2720,2723],{},[1941,2721,2722],{},"Use pagination",": Limit related records to prevent performance issues",[1938,2725,2726,2729],{},[1941,2727,2728],{},"Filter early",": Apply filters at the relation level when possible",[1938,2731,2732,2735],{},[1941,2733,2734],{},"Monitor depth",": Keep nesting to 2-3 levels for best performance",[1938,2737,2738,2741],{},[1941,2739,2740],{},"Index filter fields",": Create database indexes for filtered fields",[1938,2743,2744,2747],{},[1941,2745,2746],{},"Cache responses",": Use HTTP caching for frequently accessed nested data",[459,2749,2751],{"id":2750},"migration-from-simple-includes","Migration from Simple Includes",[455,2753,2754],{},"Existing code with simple includes continues to work:",[467,2756,2758],{"className":469,"code":2757,"language":471,"meta":472,"style":472},"// Old syntax (still works)\nGET /api/users?include=posts,comments\n\n// New enhanced syntax (more powerful)\nGET /api/users?include=posts[id,title]{limit:10},comments[id,body]{limit:5}\n",[474,2759,2760,2765,2790,2794,2799],{"__ignoreMap":472},[477,2761,2762],{"class":479,"line":480},[477,2763,2764],{"class":483},"// Old syntax (still works)\n",[477,2766,2767,2769,2771,2773,2775,2777,2779,2781,2783,2785,2787],{"class":479,"line":487},[477,2768,2174],{"class":1779},[477,2770,2177],{"class":497},[477,2772,2180],{"class":1779},[477,2774,2177],{"class":497},[477,2776,2269],{"class":1779},[477,2778,2187],{"class":497},[477,2780,2070],{"class":1779},[477,2782,2073],{"class":497},[477,2784,572],{"class":1779},[477,2786,2079],{"class":497},[477,2788,2789],{"class":1779},"comments\n",[477,2791,2792],{"class":479,"line":494},[477,2793,491],{"emptyLinePlaceholder":490},[477,2795,2796],{"class":479,"line":501},[477,2797,2798],{"class":483},"// New enhanced syntax (more powerful)\n",[477,2800,2801,2803,2805,2807,2809,2811,2813,2815,2817,2819,2821,2823,2825,2827,2829,2831,2833,2835,2837,2839,2841,2843,2845,2847],{"class":479,"line":518},[477,2802,2174],{"class":1779},[477,2804,2177],{"class":497},[477,2806,2180],{"class":1779},[477,2808,2177],{"class":497},[477,2810,2269],{"class":1779},[477,2812,2187],{"class":497},[477,2814,2070],{"class":1779},[477,2816,2073],{"class":497},[477,2818,2076],{"class":1779},[477,2820,2079],{"class":497},[477,2822,2282],{"class":1779},[477,2824,2128],{"class":497},[477,2826,2132],{"class":514},[477,2828,535],{"class":497},[477,2830,2137],{"class":538},[477,2832,2294],{"class":497},[477,2834,2194],{"class":1779},[477,2836,2079],{"class":497},[477,2838,2301],{"class":1779},[477,2840,2128],{"class":497},[477,2842,2132],{"class":514},[477,2844,535],{"class":497},[477,2846,2212],{"class":538},[477,2848,778],{"class":497},[455,2850,2851],{},"The system automatically detects and handles both syntaxes.",[2853,2854,2855],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}",{"title":472,"searchDepth":487,"depth":487,"links":2857},[2858,2859,2860,2863,2864,2865,2866,2867,2868,2869,2870,2876,2881,2882,2883,2884,2885],{"id":461,"depth":487,"text":462},{"id":781,"depth":487,"text":782},{"id":943,"depth":487,"text":944,"children":2861},[2862],{"id":1053,"depth":494,"text":1054},{"id":1075,"depth":487,"text":1076},{"id":1191,"depth":487,"text":1192},{"id":1333,"depth":487,"text":1334},{"id":1574,"depth":487,"text":1575},{"id":1751,"depth":487,"text":1752},{"id":1899,"depth":487,"text":1900},{"id":1929,"depth":487,"text":1930},{"id":2000,"depth":487,"text":2001,"children":2871},[2872,2873,2874,2875],{"id":2004,"depth":494,"text":2005},{"id":2011,"depth":494,"text":2012},{"id":2040,"depth":494,"text":2041},{"id":2103,"depth":494,"text":2104},{"id":2159,"depth":487,"text":2160,"children":2877},[2878,2879,2880],{"id":2163,"depth":494,"text":2164},{"id":2250,"depth":494,"text":2251},{"id":2314,"depth":494,"text":2315},{"id":2370,"depth":487,"text":2371},{"id":2478,"depth":487,"text":2479},{"id":2611,"depth":487,"text":2612},{"id":2707,"depth":487,"text":2708},{"id":2750,"depth":487,"text":2751},"md",null,{},{"title":291,"description":457},"Uu7IkJ1UQQZQEittrg8lNtz_U8bXUinkyxILv4Ug9sU",[2892,2894],{"title":287,"path":288,"stem":289,"description":2893,"children":-1},"Integrate @websideproject/nuxt-auto-api with better-auth for a complete authentication solution with sessions, OAuth, organizations, and more.",{"title":295,"path":296,"stem":297,"description":2895,"children":-1},"Nuxt Auto API provides atomic bulk operations for creating, updating, and deleting multiple records in a single request.",1772977478654]