[{"data":1,"prerenderedAt":4133},["ShallowReactive",2],{"navigation":3,"\u002Fsearch\u002Fincludes-and-aggregates":307,"\u002Fsearch\u002Fincludes-and-aggregates-surround":4128},{"3.x":4,"2.x":203},[5,32,61,99,121,147,165],{"title":6,"icon":7,"path":8,"stem":9,"children":10,"page":31},"Getting Started","i-heroicons-star","\u002Fgetting-started","1.getting-started",[11,15,19,23,27],{"title":12,"path":13,"stem":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":16,"path":17,"stem":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":20,"path":21,"stem":22},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":24,"path":25,"stem":26},"Configuration","\u002Fgetting-started\u002Fconfiguration","1.getting-started\u002F4.configuration",{"title":28,"path":29,"stem":30},"Upgrade guide","\u002Fgetting-started\u002Fupgrade-guide","1.getting-started\u002F5.upgrade-guide",false,{"title":33,"icon":34,"path":35,"stem":36,"children":37,"page":31},"Resources","i-heroicons-document-text","\u002Fresources","2.resources",[38,41,45,49,53,57],{"title":33,"path":39,"stem":40},"\u002Fresources\u002Fresources","2.resources\u002F1.resources",{"title":42,"path":43,"stem":44},"Fields","\u002Fresources\u002Ffields","2.resources\u002F2.fields",{"title":46,"path":47,"stem":48},"Relationships","\u002Fresources\u002Frelations","2.resources\u002F3.relations",{"title":50,"path":51,"stem":52},"Validation","\u002Fresources\u002Fvalidation","2.resources\u002F4.validation",{"title":54,"path":55,"stem":56},"Perimeter","\u002Fresources\u002Fperimeter","2.resources\u002F5.perimeter",{"title":58,"path":59,"stem":60},"Limits","\u002Fresources\u002Flimits","2.resources\u002F6.limits",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":31},"Search","i-heroicons-magnifying-glass","\u002Fsearch","3.search",[67,71,75,79,83,87,91,95],{"title":68,"path":69,"stem":70},"Search overview","\u002Fsearch\u002Foverview","3.search\u002F1.overview",{"title":72,"path":73,"stem":74},"Search filters","\u002Fsearch\u002Ffilters","3.search\u002F2.filters",{"title":76,"path":77,"stem":78},"Sorts and selects","\u002Fsearch\u002Fsorts-and-selects","3.search\u002F3.sorts-and-selects",{"title":80,"path":81,"stem":82},"Includes and aggregates","\u002Fsearch\u002Fincludes-and-aggregates","3.search\u002F4.includes-and-aggregates",{"title":84,"path":85,"stem":86},"Scopes and instructions","\u002Fsearch\u002Fscopes-and-instructions","3.search\u002F5.scopes-and-instructions",{"title":88,"path":89,"stem":90},"Text search","\u002Fsearch\u002Ftext-search","3.search\u002F6.text-search",{"title":92,"path":93,"stem":94},"Search engines","\u002Fsearch\u002Fsearch-engines","3.search\u002F7.search-engines",{"title":96,"path":97,"stem":98},"Searching outside HTTP","\u002Fsearch\u002Foutside-http","3.search\u002F8.outside-http",{"title":100,"icon":101,"path":102,"stem":103,"children":104,"page":31},"Writing","i-heroicons-pencil-square","\u002Fwriting","4.writing",[105,109,113,117],{"title":106,"path":107,"stem":108},"Mutate","\u002Fwriting\u002Fmutate","4.writing\u002F1.mutate",{"title":110,"path":111,"stem":112},"Writing relations","\u002Fwriting\u002Frelations","4.writing\u002F2.relations",{"title":114,"path":115,"stem":116},"Versioned rows","\u002Fwriting\u002Fversioned-rows","4.writing\u002F3.versioned-rows",{"title":118,"path":119,"stem":120},"Deleting and restoring","\u002Fwriting\u002Fdeleting","4.writing\u002F4.deleting",{"title":122,"icon":123,"path":124,"stem":125,"children":126,"page":31},"Actions and Metrics","i-heroicons-bolt","\u002Factions-and-metrics","5.actions-and-metrics",[127,131,135,139,143],{"title":128,"path":129,"stem":130},"Actions","\u002Factions-and-metrics\u002Factions","5.actions-and-metrics\u002F1.actions",{"title":132,"path":133,"stem":134},"Queued Actions","\u002Factions-and-metrics\u002Fqueued-actions","5.actions-and-metrics\u002F2.queued-actions",{"title":136,"path":137,"stem":138},"Confirmation","\u002Factions-and-metrics\u002Fconfirmation","5.actions-and-metrics\u002F3.confirmation",{"title":140,"path":141,"stem":142},"Metrics","\u002Factions-and-metrics\u002Fmetrics","5.actions-and-metrics\u002F4.metrics",{"title":144,"path":145,"stem":146},"Exports","\u002Factions-and-metrics\u002Fexports","5.actions-and-metrics\u002F5.exports",{"title":148,"icon":149,"path":150,"stem":151,"children":152,"page":31},"Authorization","i-heroicons-lock-closed","\u002Fauthorization","6.authorization",[153,157,161],{"title":154,"path":155,"stem":156},"Policies","\u002Fauthorization\u002Fpolicies","6.authorization\u002F1.policies",{"title":158,"path":159,"stem":160},"Gates","\u002Fauthorization\u002Fgates","6.authorization\u002F2.gates",{"title":162,"path":163,"stem":164},"Decision Cache","\u002Fauthorization\u002Fdecision-cache","6.authorization\u002F3.decision-cache",{"title":166,"icon":167,"path":168,"stem":169,"children":170,"page":31},"Digging Deeper","i-heroicons-list-bullet","\u002Fdigging-deeper","7.digging-deeper",[171,175,179,183,187,191,195,199],{"title":172,"path":173,"stem":174},"Details","\u002Fdigging-deeper\u002Fdetails","7.digging-deeper\u002F1.details",{"title":176,"path":177,"stem":178},"Events and Hooks","\u002Fdigging-deeper\u002Fevents-and-hooks","7.digging-deeper\u002F2.events-and-hooks",{"title":180,"path":181,"stem":182},"Custom Responses","\u002Fdigging-deeper\u002Fresponses","7.digging-deeper\u002F3.responses",{"title":184,"path":185,"stem":186},"OpenAPI Documentation","\u002Fdigging-deeper\u002Fopenapi","7.digging-deeper\u002F4.openapi",{"title":188,"path":189,"stem":190},"Precognition","\u002Fdigging-deeper\u002Fprecognition","7.digging-deeper\u002F5.precognition",{"title":192,"path":193,"stem":194},"Artisan Commands","\u002Fdigging-deeper\u002Fartisan","7.digging-deeper\u002F6.artisan",{"title":196,"path":197,"stem":198},"Laravel Boost Skill","\u002Fdigging-deeper\u002Fai-skill","7.digging-deeper\u002F7.ai-skill",{"title":200,"path":201,"stem":202},"Translations","\u002Fdigging-deeper\u002Ftranslations","7.digging-deeper\u002F8.translations",[204,215,237,260,297],{"title":6,"icon":7,"path":205,"stem":206,"children":207,"page":31},"\u002F2.x\u002Fgetting-started","2.x\u002F1.getting-started",[208,211],{"title":16,"path":209,"stem":210},"\u002F2.x\u002Fgetting-started\u002Finstallation","2.x\u002F1.getting-started\u002F1.installation",{"title":212,"path":213,"stem":214},"Upgrade Guide","\u002F2.x\u002Fgetting-started\u002Fupgrade-guide","2.x\u002F1.getting-started\u002F2.upgrade-guide",{"title":216,"icon":217,"path":218,"stem":219,"children":220,"page":31},"Endpoints","i-heroicons-arrow-uturn-left","\u002F2.x\u002Fendpoints","2.x\u002F2.endpoints",[221,224,227,230,233],{"title":172,"path":222,"stem":223},"\u002F2.x\u002Fendpoints\u002Fdetails","2.x\u002F2.endpoints\u002F1.details",{"title":62,"path":225,"stem":226},"\u002F2.x\u002Fendpoints\u002Fsearch","2.x\u002F2.endpoints\u002F2.search",{"title":106,"path":228,"stem":229},"\u002F2.x\u002Fendpoints\u002Fmutate","2.x\u002F2.endpoints\u002F3.mutate",{"title":128,"path":231,"stem":232},"\u002F2.x\u002Fendpoints\u002Factions","2.x\u002F2.endpoints\u002F4.actions",{"title":234,"path":235,"stem":236},"Delete","\u002F2.x\u002Fendpoints\u002Fdelete","2.x\u002F2.endpoints\u002F5.delete",{"title":33,"icon":34,"path":238,"stem":239,"children":240,"page":31},"\u002F2.x\u002Fresources","2.x\u002F3.resources",[241,245,249,252,256],{"title":242,"path":243,"stem":244},"Basics","\u002F2.x\u002Fresources\u002Fbasics","2.x\u002F3.resources\u002F1.basics",{"title":246,"path":247,"stem":248},"Exposed Data","\u002F2.x\u002Fresources\u002Fexposed-data","2.x\u002F3.resources\u002F2.exposed-data",{"title":46,"path":250,"stem":251},"\u002F2.x\u002Fresources\u002Frelationships","2.x\u002F3.resources\u002F3.relationships",{"title":253,"path":254,"stem":255},"Validations","\u002F2.x\u002Fresources\u002Fvalidations","2.x\u002F3.resources\u002F4.validations",{"title":257,"path":258,"stem":259},"Interactions","\u002F2.x\u002Fresources\u002Finteractions","2.x\u002F3.resources\u002F5.interactions",{"title":166,"icon":167,"path":261,"stem":262,"children":263,"page":31},"\u002F2.x\u002Fdigging-deeper","2.x\u002F4.digging-deeper",[264,267,271,274,278,282,286,290,294],{"title":128,"path":265,"stem":266},"\u002F2.x\u002Fdigging-deeper\u002Factions","2.x\u002F4.digging-deeper\u002F1.actions",{"title":268,"path":269,"stem":270},"Hooks","\u002F2.x\u002Fdigging-deeper\u002Fhooks","2.x\u002F4.digging-deeper\u002F2.hooks",{"title":158,"path":272,"stem":273},"\u002F2.x\u002Fdigging-deeper\u002Fgates","2.x\u002F4.digging-deeper\u002F3.gates",{"title":275,"path":276,"stem":277},"Authorizations","\u002F2.x\u002Fdigging-deeper\u002Fauthorizations","2.x\u002F4.digging-deeper\u002F4.authorizations",{"title":279,"path":280,"stem":281},"Full Text Search","\u002F2.x\u002Fdigging-deeper\u002Ffull-text-search","2.x\u002F4.digging-deeper\u002F5.full-text-search",{"title":283,"path":284,"stem":285},"Instructions","\u002F2.x\u002Fdigging-deeper\u002Finstructions","2.x\u002F4.digging-deeper\u002F6.instructions",{"title":287,"path":288,"stem":289},"Responses","\u002F2.x\u002Fdigging-deeper\u002Fresponses","2.x\u002F4.digging-deeper\u002F7.responses",{"title":291,"path":292,"stem":293},"Documentation","\u002F2.x\u002Fdigging-deeper\u002Fdocumentation","2.x\u002F4.digging-deeper\u002F8.documentation",{"title":188,"path":295,"stem":296},"\u002F2.x\u002Fdigging-deeper\u002Fprecognition","2.x\u002F4.digging-deeper\u002F9.precognition",{"title":298,"icon":299,"path":300,"stem":301,"children":302,"page":31},"Integrations","i-lucide-puzzle","\u002F2.x\u002Fintegrations","2.x\u002F5.integrations",[303],{"title":304,"path":305,"stem":306},"Flutter","\u002F2.x\u002Fintegrations\u002Fflutter","2.x\u002F5.integrations\u002F1.flutter",{"id":308,"title":80,"body":309,"description":4121,"extension":4122,"links":4123,"meta":4124,"navigation":431,"path":81,"seo":4125,"sitemap":4126,"stem":82,"__hash__":4127},"docs3x\u002F3.search\u002F4.includes-and-aggregates.md",{"type":310,"value":311,"toc":4104},"minimark",[312,316,683,688,768,1107,1110,1223,1315,1320,1323,1508,1579,1621,1635,1708,1712,1740,1850,2189,2219,2223,2351,2402,2405,2410,2642,2706,2710,2727,2790,2801,2805,2817,3007,3101,3123,3126,3387,3582,3673,3677,3748,3752,3820,3824,3899,3937,3940,4011,4027,4030,4100],[313,314,315],"p",{},"Includes load the related rows of each row, each include with its own search. Aggregates add one value per row, computed over a relation. Both run in SQL, also next to a text search on a search engine.",[317,318,324],"pre",{"className":319,"code":320,"filename":321,"language":322,"meta":323,"style":323},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use Lomkit\\Rest\\Fields\\ID;\nuse Lomkit\\Rest\\Fields\\Text;\nuse Lomkit\\Rest\\Relations\\BelongsToMany;\nuse Lomkit\\Rest\\Relations\\HasMany;\n\nclass CategoryResource extends Resource\n{\n    public static string $model = Category::class;\n\n    public function fields(): array\n    {\n        return [ID::make('id'), Text::make('name')];\n    }\n\n    public function relations(): array\n    {\n        return [\n            HasMany::make('products', ProductResource::class),\n            BelongsToMany::make('featuredProducts', ProductResource::class),\n        ];\n    }\n}\n","app\u002FRest\u002FResources\u002FCategoryResource.php","php","",[325,326,327,359,381,404,426,433,450,456,487,492,510,516,567,573,578,592,597,605,637,666,672,677],"code",{"__ignoreMap":323},[328,329,332,336,340,344,347,349,351,353,356],"span",{"class":330,"line":331},"line",1,[328,333,335],{"class":334},"sbssI","use",[328,337,339],{"class":338},"sTEyZ"," Lomkit",[328,341,343],{"class":342},"sMK4o","\\",[328,345,346],{"class":338},"Rest",[328,348,343],{"class":342},[328,350,42],{"class":338},[328,352,343],{"class":342},[328,354,355],{"class":338},"ID",[328,357,358],{"class":342},";\n",[328,360,362,364,366,368,370,372,374,376,379],{"class":330,"line":361},2,[328,363,335],{"class":334},[328,365,339],{"class":338},[328,367,343],{"class":342},[328,369,346],{"class":338},[328,371,343],{"class":342},[328,373,42],{"class":338},[328,375,343],{"class":342},[328,377,378],{"class":338},"Text",[328,380,358],{"class":342},[328,382,384,386,388,390,392,394,397,399,402],{"class":330,"line":383},3,[328,385,335],{"class":334},[328,387,339],{"class":338},[328,389,343],{"class":342},[328,391,346],{"class":338},[328,393,343],{"class":342},[328,395,396],{"class":338},"Relations",[328,398,343],{"class":342},[328,400,401],{"class":338},"BelongsToMany",[328,403,358],{"class":342},[328,405,407,409,411,413,415,417,419,421,424],{"class":330,"line":406},4,[328,408,335],{"class":334},[328,410,339],{"class":338},[328,412,343],{"class":342},[328,414,346],{"class":338},[328,416,343],{"class":342},[328,418,396],{"class":338},[328,420,343],{"class":342},[328,422,423],{"class":338},"HasMany",[328,425,358],{"class":342},[328,427,429],{"class":330,"line":428},5,[328,430,432],{"emptyLinePlaceholder":431},true,"\n",[328,434,436,440,444,447],{"class":330,"line":435},6,[328,437,439],{"class":438},"spNyl","class",[328,441,443],{"class":442},"sBMFI"," CategoryResource",[328,445,446],{"class":438}," extends",[328,448,449],{"class":442}," Resource\n",[328,451,453],{"class":330,"line":452},7,[328,454,455],{"class":342},"{\n",[328,457,459,462,465,468,471,474,477,480,483,485],{"class":330,"line":458},8,[328,460,461],{"class":438},"    public",[328,463,464],{"class":438}," static",[328,466,467],{"class":334}," string",[328,469,470],{"class":342}," $",[328,472,473],{"class":338},"model ",[328,475,476],{"class":342},"=",[328,478,479],{"class":442}," Category",[328,481,482],{"class":342},"::",[328,484,439],{"class":334},[328,486,358],{"class":342},[328,488,490],{"class":330,"line":489},9,[328,491,432],{"emptyLinePlaceholder":431},[328,493,495,497,500,504,507],{"class":330,"line":494},10,[328,496,461],{"class":438},[328,498,499],{"class":438}," function",[328,501,503],{"class":502},"s2Zo4"," fields",[328,505,506],{"class":342},"():",[328,508,509],{"class":334}," array\n",[328,511,513],{"class":330,"line":512},11,[328,514,515],{"class":342},"    {\n",[328,517,519,523,526,528,530,533,536,539,543,545,548,551,553,555,557,559,562,564],{"class":330,"line":518},12,[328,520,522],{"class":521},"s7zQu","        return",[328,524,525],{"class":342}," [",[328,527,355],{"class":442},[328,529,482],{"class":342},[328,531,532],{"class":502},"make",[328,534,535],{"class":342},"(",[328,537,538],{"class":342},"'",[328,540,542],{"class":541},"sfazB","id",[328,544,538],{"class":342},[328,546,547],{"class":342},"),",[328,549,550],{"class":442}," Text",[328,552,482],{"class":342},[328,554,532],{"class":502},[328,556,535],{"class":342},[328,558,538],{"class":342},[328,560,561],{"class":541},"name",[328,563,538],{"class":342},[328,565,566],{"class":342},")];\n",[328,568,570],{"class":330,"line":569},13,[328,571,572],{"class":342},"    }\n",[328,574,576],{"class":330,"line":575},14,[328,577,432],{"emptyLinePlaceholder":431},[328,579,581,583,585,588,590],{"class":330,"line":580},15,[328,582,461],{"class":438},[328,584,499],{"class":438},[328,586,587],{"class":502}," relations",[328,589,506],{"class":342},[328,591,509],{"class":334},[328,593,595],{"class":330,"line":594},16,[328,596,515],{"class":342},[328,598,600,602],{"class":330,"line":599},17,[328,601,522],{"class":521},[328,603,604],{"class":342}," [\n",[328,606,608,611,613,615,617,619,622,624,627,630,632,634],{"class":330,"line":607},18,[328,609,610],{"class":442},"            HasMany",[328,612,482],{"class":342},[328,614,532],{"class":502},[328,616,535],{"class":342},[328,618,538],{"class":342},[328,620,621],{"class":541},"products",[328,623,538],{"class":342},[328,625,626],{"class":342},",",[328,628,629],{"class":442}," ProductResource",[328,631,482],{"class":342},[328,633,439],{"class":334},[328,635,636],{"class":342},"),\n",[328,638,640,643,645,647,649,651,654,656,658,660,662,664],{"class":330,"line":639},19,[328,641,642],{"class":442},"            BelongsToMany",[328,644,482],{"class":342},[328,646,532],{"class":502},[328,648,535],{"class":342},[328,650,538],{"class":342},[328,652,653],{"class":541},"featuredProducts",[328,655,538],{"class":342},[328,657,626],{"class":342},[328,659,629],{"class":442},[328,661,482],{"class":342},[328,663,439],{"class":334},[328,665,636],{"class":342},[328,667,669],{"class":330,"line":668},20,[328,670,671],{"class":342},"        ];\n",[328,673,675],{"class":330,"line":674},21,[328,676,572],{"class":342},[328,678,680],{"class":330,"line":679},22,[328,681,682],{"class":342},"}\n",[684,685,687],"h2",{"id":686},"includes","Includes",[317,689,694],{"className":690,"code":691,"filename":692,"language":693,"meta":323,"style":323},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"search\": {\n    \"includes\": [\n      {\"relation\": \"category\"}\n    ]\n  }\n}\n","POST \u002Fapi\u002Fproducts\u002Fsearch","json",[325,695,696,700,717,730,754,759,764],{"__ignoreMap":323},[328,697,698],{"class":330,"line":331},[328,699,455],{"class":342},[328,701,702,705,708,711,714],{"class":330,"line":361},[328,703,704],{"class":342},"  \"",[328,706,707],{"class":438},"search",[328,709,710],{"class":342},"\"",[328,712,713],{"class":342},":",[328,715,716],{"class":342}," {\n",[328,718,719,722,724,726,728],{"class":330,"line":383},[328,720,721],{"class":342},"    \"",[328,723,686],{"class":442},[328,725,710],{"class":342},[328,727,713],{"class":342},[328,729,604],{"class":342},[328,731,732,735,737,740,742,744,747,750,752],{"class":330,"line":406},[328,733,734],{"class":342},"      {",[328,736,710],{"class":342},[328,738,739],{"class":334},"relation",[328,741,710],{"class":342},[328,743,713],{"class":342},[328,745,746],{"class":342}," \"",[328,748,749],{"class":541},"category",[328,751,710],{"class":342},[328,753,682],{"class":342},[328,755,756],{"class":330,"line":428},[328,757,758],{"class":342},"    ]\n",[328,760,761],{"class":330,"line":435},[328,762,763],{"class":342},"  }\n",[328,765,766],{"class":330,"line":452},[328,767,682],{"class":342},[317,769,772],{"className":690,"code":770,"filename":771,"language":693,"meta":323,"style":323},"{\n  \"current_page\": 1,\n  \"data\": [\n    {\"id\": 2, \"category_id\": 1, \"name\": \"Floor lamp\", \"price\": 129, \"category\": {\"id\": 1, \"name\": \"Lighting\"}},\n    {\"id\": 1, \"category_id\": 1, \"name\": \"Desk lamp\", \"price\": 39, \"category\": {\"id\": 1, \"name\": \"Lighting\"}}\n  ],\n  \"from\": 1,\n  \"last_page\": 1,\n  \"per_page\": 50,\n  \"to\": 2,\n  \"total\": 2,\n  \"meta\": {}\n}\n","200 OK",[325,773,774,778,795,808,911,1008,1013,1028,1043,1059,1074,1089,1103],{"__ignoreMap":323},[328,775,776],{"class":330,"line":331},[328,777,455],{"class":342},[328,779,780,782,785,787,789,792],{"class":330,"line":361},[328,781,704],{"class":342},[328,783,784],{"class":438},"current_page",[328,786,710],{"class":342},[328,788,713],{"class":342},[328,790,791],{"class":334}," 1",[328,793,794],{"class":342},",\n",[328,796,797,799,802,804,806],{"class":330,"line":383},[328,798,704],{"class":342},[328,800,801],{"class":438},"data",[328,803,710],{"class":342},[328,805,713],{"class":342},[328,807,604],{"class":342},[328,809,810,813,815,817,819,821,824,826,828,831,833,835,837,839,841,843,845,847,849,852,854,856,858,861,863,865,868,870,872,874,876,878,881,883,885,887,889,891,893,895,897,899,901,903,906,908],{"class":330,"line":406},[328,811,812],{"class":342},"    {",[328,814,710],{"class":342},[328,816,542],{"class":442},[328,818,710],{"class":342},[328,820,713],{"class":342},[328,822,823],{"class":334}," 2",[328,825,626],{"class":342},[328,827,746],{"class":342},[328,829,830],{"class":442},"category_id",[328,832,710],{"class":342},[328,834,713],{"class":342},[328,836,791],{"class":334},[328,838,626],{"class":342},[328,840,746],{"class":342},[328,842,561],{"class":442},[328,844,710],{"class":342},[328,846,713],{"class":342},[328,848,746],{"class":342},[328,850,851],{"class":541},"Floor lamp",[328,853,710],{"class":342},[328,855,626],{"class":342},[328,857,746],{"class":342},[328,859,860],{"class":442},"price",[328,862,710],{"class":342},[328,864,713],{"class":342},[328,866,867],{"class":334}," 129",[328,869,626],{"class":342},[328,871,746],{"class":342},[328,873,749],{"class":442},[328,875,710],{"class":342},[328,877,713],{"class":342},[328,879,880],{"class":342}," {",[328,882,710],{"class":342},[328,884,542],{"class":334},[328,886,710],{"class":342},[328,888,713],{"class":342},[328,890,791],{"class":334},[328,892,626],{"class":342},[328,894,746],{"class":342},[328,896,561],{"class":334},[328,898,710],{"class":342},[328,900,713],{"class":342},[328,902,746],{"class":342},[328,904,905],{"class":541},"Lighting",[328,907,710],{"class":342},[328,909,910],{"class":342},"}},\n",[328,912,913,915,917,919,921,923,925,927,929,931,933,935,937,939,941,943,945,947,949,952,954,956,958,960,962,964,967,969,971,973,975,977,979,981,983,985,987,989,991,993,995,997,999,1001,1003,1005],{"class":330,"line":428},[328,914,812],{"class":342},[328,916,710],{"class":342},[328,918,542],{"class":442},[328,920,710],{"class":342},[328,922,713],{"class":342},[328,924,791],{"class":334},[328,926,626],{"class":342},[328,928,746],{"class":342},[328,930,830],{"class":442},[328,932,710],{"class":342},[328,934,713],{"class":342},[328,936,791],{"class":334},[328,938,626],{"class":342},[328,940,746],{"class":342},[328,942,561],{"class":442},[328,944,710],{"class":342},[328,946,713],{"class":342},[328,948,746],{"class":342},[328,950,951],{"class":541},"Desk lamp",[328,953,710],{"class":342},[328,955,626],{"class":342},[328,957,746],{"class":342},[328,959,860],{"class":442},[328,961,710],{"class":342},[328,963,713],{"class":342},[328,965,966],{"class":334}," 39",[328,968,626],{"class":342},[328,970,746],{"class":342},[328,972,749],{"class":442},[328,974,710],{"class":342},[328,976,713],{"class":342},[328,978,880],{"class":342},[328,980,710],{"class":342},[328,982,542],{"class":334},[328,984,710],{"class":342},[328,986,713],{"class":342},[328,988,791],{"class":334},[328,990,626],{"class":342},[328,992,746],{"class":342},[328,994,561],{"class":334},[328,996,710],{"class":342},[328,998,713],{"class":342},[328,1000,746],{"class":342},[328,1002,905],{"class":541},[328,1004,710],{"class":342},[328,1006,1007],{"class":342},"}}\n",[328,1009,1010],{"class":330,"line":435},[328,1011,1012],{"class":342},"  ],\n",[328,1014,1015,1017,1020,1022,1024,1026],{"class":330,"line":452},[328,1016,704],{"class":342},[328,1018,1019],{"class":438},"from",[328,1021,710],{"class":342},[328,1023,713],{"class":342},[328,1025,791],{"class":334},[328,1027,794],{"class":342},[328,1029,1030,1032,1035,1037,1039,1041],{"class":330,"line":458},[328,1031,704],{"class":342},[328,1033,1034],{"class":438},"last_page",[328,1036,710],{"class":342},[328,1038,713],{"class":342},[328,1040,791],{"class":334},[328,1042,794],{"class":342},[328,1044,1045,1047,1050,1052,1054,1057],{"class":330,"line":489},[328,1046,704],{"class":342},[328,1048,1049],{"class":438},"per_page",[328,1051,710],{"class":342},[328,1053,713],{"class":342},[328,1055,1056],{"class":334}," 50",[328,1058,794],{"class":342},[328,1060,1061,1063,1066,1068,1070,1072],{"class":330,"line":494},[328,1062,704],{"class":342},[328,1064,1065],{"class":438},"to",[328,1067,710],{"class":342},[328,1069,713],{"class":342},[328,1071,823],{"class":334},[328,1073,794],{"class":342},[328,1075,1076,1078,1081,1083,1085,1087],{"class":330,"line":512},[328,1077,704],{"class":342},[328,1079,1080],{"class":438},"total",[328,1082,710],{"class":342},[328,1084,713],{"class":342},[328,1086,823],{"class":334},[328,1088,794],{"class":342},[328,1090,1091,1093,1096,1098,1100],{"class":330,"line":518},[328,1092,704],{"class":342},[328,1094,1095],{"class":438},"meta",[328,1097,710],{"class":342},[328,1099,713],{"class":342},[328,1101,1102],{"class":342}," {}\n",[328,1104,1105],{"class":330,"line":569},[328,1106,682],{"class":342},[313,1108,1109],{},"An include takes the keys of a search, read on the related resource:",[1111,1112,1113,1126],"table",{},[1114,1115,1116],"thead",{},[1117,1118,1119,1123],"tr",{},[1120,1121,1122],"th",{},"Key",[1120,1124,1125],{},"Use",[1127,1128,1129,1142,1157,1186,1200,1209],"tbody",{},[1117,1130,1131,1136],{},[1132,1133,1134],"td",{},[325,1135,739],{},[1132,1137,1138,1139],{},"A relation that the resource declares, or a dotted path such as ",[325,1140,1141],{},"products.category",[1117,1143,1144,1149],{},[1132,1145,1146],{},[325,1147,1148],{},"alias",[1132,1150,1151,1152],{},"The key of the include in the row, see ",[1153,1154,1156],"a",{"href":1155},"#aliases","Aliases",[1117,1158,1159,1183],{},[1132,1160,1161,1164,1165,1164,1168,1164,1171,1164,1174,1164,1177,1164,1180],{},[325,1162,1163],{},"filters",", ",[325,1166,1167],{},"sorts",[325,1169,1170],{},"selects",[325,1172,1173],{},"scopes",[325,1175,1176],{},"instructions",[325,1178,1179],{},"aggregates",[325,1181,1182],{},"gates",[1132,1184,1185],{},"As in a search, with the fields, scopes and instructions of the related resource",[1117,1187,1188,1193],{},[1132,1189,1190],{},[325,1191,1192],{},"limit",[1132,1194,1195,1196,1199],{},"The most related rows for each parent row, one of the ",[325,1197,1198],{},"limits()"," of the related resource",[1117,1201,1202,1206],{},[1132,1203,1204],{},[325,1205,686],{},[1132,1207,1208],{},"Nested includes",[1117,1210,1211,1216],{},[1132,1212,1213],{},[325,1214,1215],{},"types",[1132,1217,1218,1219,1222],{},"The search of each target of a ",[325,1220,1221],{},"MorphTo"," relation",[1224,1225,1226,1243,1265,1277,1287,1298,1309],"ul",{},[1227,1228,1229,1164,1232,1235,1236,1239,1240],"li",{},[325,1230,1231],{},"page",[325,1233,1234],{},"text"," and ",[325,1237,1238],{},"trashed"," give a 422 in an include: ",[325,1241,1242],{},"The search.includes.0.text field is prohibited.",[1227,1244,1245,1246,1248,1249,1252,1253,1256,1257,1260,1261,1264],{},"A missing ",[325,1247,739],{}," gives ",[325,1250,1251],{},"The search.includes.0.relation field is required.",", and an undeclared one ",[325,1254,1255],{},"The search.includes.0.relation field is not a valid or allowed relation for this resource."," A path that ends with ",[325,1258,1259],{},"pivot",", such as ",[325,1262,1263],{},"tags.pivot",", gives a 422 too.",[1227,1266,1267,1270,1271,1273,1274,1276],{},[325,1268,1269],{},"create"," in the ",[325,1272,1182],{}," of an include gives a 422, and so does ",[325,1275,1182],{}," in an include whose resource turns its gates off.",[1227,1278,1279,1280,1282,1283,1286],{},"An include without alias renders under the name of its relation in snake case: ",[325,1281,653],{}," renders as ",[325,1284,1285],{},"featured_products",".",[1227,1288,1289,1290,1293,1294,1297],{},"A row returns only the relations that the search includes. A relation that the model loads by itself (",[325,1291,1292],{},"$with",", a hook) stays loaded for policies, hooks and ",[325,1295,1296],{},"map()",", and is not returned.",[1227,1299,1300,1301,1304,1305,1308],{},"Each resource that an include reaches needs ",[325,1302,1303],{},"viewAny",", checked before validation, and its ",[325,1306,1307],{},"perimeterQuery()"," applies to the related rows.",[1227,1310,1311,1312,1314],{},"When ",[325,1313,686],{}," lists one relation twice without an alias, the response renders the last entry.",[1316,1317,1319],"h3",{"id":1318},"limits-per-parent","Limits per parent",[313,1321,1322],{},"An include returns at most a set number of rows for each parent row:",[317,1324,1327],{"className":690,"code":1325,"filename":1326,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"includes\": [\n      {\n        \"relation\": \"products\",\n        \"selects\": [{\"field\": \"id\"}, {\"field\": \"name\"}],\n        \"sorts\": [{\"field\": \"price\", \"direction\": \"desc\"}],\n        \"limit\": 50\n      }\n    ]\n  }\n}\n","POST \u002Fapi\u002Fcategories\u002Fsearch",[325,1328,1329,1333,1345,1357,1362,1381,1432,1478,1491,1496,1500,1504],{"__ignoreMap":323},[328,1330,1331],{"class":330,"line":331},[328,1332,455],{"class":342},[328,1334,1335,1337,1339,1341,1343],{"class":330,"line":361},[328,1336,704],{"class":342},[328,1338,707],{"class":438},[328,1340,710],{"class":342},[328,1342,713],{"class":342},[328,1344,716],{"class":342},[328,1346,1347,1349,1351,1353,1355],{"class":330,"line":383},[328,1348,721],{"class":342},[328,1350,686],{"class":442},[328,1352,710],{"class":342},[328,1354,713],{"class":342},[328,1356,604],{"class":342},[328,1358,1359],{"class":330,"line":406},[328,1360,1361],{"class":342},"      {\n",[328,1363,1364,1367,1369,1371,1373,1375,1377,1379],{"class":330,"line":428},[328,1365,1366],{"class":342},"        \"",[328,1368,739],{"class":334},[328,1370,710],{"class":342},[328,1372,713],{"class":342},[328,1374,746],{"class":342},[328,1376,621],{"class":541},[328,1378,710],{"class":342},[328,1380,794],{"class":342},[328,1382,1383,1385,1387,1389,1391,1394,1396,1400,1402,1404,1406,1408,1410,1413,1415,1417,1419,1421,1423,1425,1427,1429],{"class":330,"line":435},[328,1384,1366],{"class":342},[328,1386,1170],{"class":334},[328,1388,710],{"class":342},[328,1390,713],{"class":342},[328,1392,1393],{"class":342}," [{",[328,1395,710],{"class":342},[328,1397,1399],{"class":1398},"swJcz","field",[328,1401,710],{"class":342},[328,1403,713],{"class":342},[328,1405,746],{"class":342},[328,1407,542],{"class":541},[328,1409,710],{"class":342},[328,1411,1412],{"class":342},"},",[328,1414,880],{"class":342},[328,1416,710],{"class":342},[328,1418,1399],{"class":1398},[328,1420,710],{"class":342},[328,1422,713],{"class":342},[328,1424,746],{"class":342},[328,1426,561],{"class":541},[328,1428,710],{"class":342},[328,1430,1431],{"class":342},"}],\n",[328,1433,1434,1436,1438,1440,1442,1444,1446,1448,1450,1452,1454,1456,1458,1460,1462,1465,1467,1469,1471,1474,1476],{"class":330,"line":452},[328,1435,1366],{"class":342},[328,1437,1167],{"class":334},[328,1439,710],{"class":342},[328,1441,713],{"class":342},[328,1443,1393],{"class":342},[328,1445,710],{"class":342},[328,1447,1399],{"class":1398},[328,1449,710],{"class":342},[328,1451,713],{"class":342},[328,1453,746],{"class":342},[328,1455,860],{"class":541},[328,1457,710],{"class":342},[328,1459,626],{"class":342},[328,1461,746],{"class":342},[328,1463,1464],{"class":1398},"direction",[328,1466,710],{"class":342},[328,1468,713],{"class":342},[328,1470,746],{"class":342},[328,1472,1473],{"class":541},"desc",[328,1475,710],{"class":342},[328,1477,1431],{"class":342},[328,1479,1480,1482,1484,1486,1488],{"class":330,"line":458},[328,1481,1366],{"class":342},[328,1483,1192],{"class":334},[328,1485,710],{"class":342},[328,1487,713],{"class":342},[328,1489,1490],{"class":334}," 50\n",[328,1492,1493],{"class":330,"line":489},[328,1494,1495],{"class":342},"      }\n",[328,1497,1498],{"class":330,"line":494},[328,1499,758],{"class":342},[328,1501,1502],{"class":330,"line":512},[328,1503,763],{"class":342},[328,1505,1506],{"class":330,"line":518},[328,1507,682],{"class":342},[1224,1509,1510,1520,1530,1553,1571],{},[1227,1511,1512,1513,1515,1516,1519],{},"The limit is the ",[325,1514,1192],{}," of the include, or else the ",[325,1517,1518],{},"$includeLimit"," of the related resource, 10 by default.",[1227,1521,1522,1523,1525,1526,1529],{},"The rows kept are the first ones in the order of the include: its ",[325,1524,1167],{},", or else the ",[325,1527,1528],{},"defaultOrderBy()"," of its resource, then the key.",[1227,1531,1532,1533,1235,1536,1538,1539,1164,1542,1544,1545,1548,1549,1552],{},"This applies to every include other than ",[325,1534,1535],{},"BelongsTo",[325,1537,1221],{},": ",[325,1540,1541],{},"HasOne",[325,1543,423],{},", the many-to-many relations, the through relations and the ",[325,1546,1547],{},"*OfMany"," relations, at every level, in a search, in the search of an action and in the ",[325,1550,1551],{},"response"," block of a mutation.",[1227,1554,1555,1557,1558,1560,1561,1564,1565,1567,1568,1286],{},[325,1556,1192],{}," must be one of the ",[325,1559,1198],{}," of the related resource: ",[325,1562,1563],{},"The selected search.includes.0.limit is invalid."," ",[325,1566,1518],{}," must be one of them too, otherwise the first read of the limits throws ",[325,1569,1570],{},"InvalidResourceException",[1227,1572,1573,1574,1576,1577,1286],{},"An include that needs more rows sends a higher ",[325,1575,1192],{},", or the resource sets a higher ",[325,1578,1518],{},[317,1580,1582],{"className":319,"code":1581,"language":322,"meta":323,"style":323},"class ProductResource extends Resource\n{\n    public int $includeLimit = 25;\n}\n",[325,1583,1584,1594,1598,1617],{"__ignoreMap":323},[328,1585,1586,1588,1590,1592],{"class":330,"line":331},[328,1587,439],{"class":438},[328,1589,629],{"class":442},[328,1591,446],{"class":438},[328,1593,449],{"class":442},[328,1595,1596],{"class":330,"line":361},[328,1597,455],{"class":342},[328,1599,1600,1602,1605,1607,1610,1612,1615],{"class":330,"line":383},[328,1601,461],{"class":438},[328,1603,1604],{"class":334}," int",[328,1606,470],{"class":342},[328,1608,1609],{"class":338},"includeLimit ",[328,1611,476],{"class":342},[328,1613,1614],{"class":334}," 25",[328,1616,358],{"class":342},[328,1618,1619],{"class":330,"line":406},[328,1620,682],{"class":342},[313,1622,1623,1624,1626,1627,1629,1630,1235,1632,1634],{},"A ",[325,1625,1535],{}," or ",[325,1628,1221],{}," include loads the one related row of each parent row, without limit and without order. ",[325,1631,1192],{},[325,1633,1167],{}," there give a 422:",[317,1636,1639],{"className":690,"code":1637,"filename":1638,"language":693,"meta":323,"style":323},"{\n  \"message\": \"The search.includes.0.limit field is prohibited: this relation loads at most one record per parent.\",\n  \"errors\": {\n    \"search.includes.0.limit\": [\"The search.includes.0.limit field is prohibited: this relation loads at most one record per parent.\"]\n  }\n}\n","422 Unprocessable Content",[325,1640,1641,1645,1665,1678,1700,1704],{"__ignoreMap":323},[328,1642,1643],{"class":330,"line":331},[328,1644,455],{"class":342},[328,1646,1647,1649,1652,1654,1656,1658,1661,1663],{"class":330,"line":361},[328,1648,704],{"class":342},[328,1650,1651],{"class":438},"message",[328,1653,710],{"class":342},[328,1655,713],{"class":342},[328,1657,746],{"class":342},[328,1659,1660],{"class":541},"The search.includes.0.limit field is prohibited: this relation loads at most one record per parent.",[328,1662,710],{"class":342},[328,1664,794],{"class":342},[328,1666,1667,1669,1672,1674,1676],{"class":330,"line":383},[328,1668,704],{"class":342},[328,1670,1671],{"class":438},"errors",[328,1673,710],{"class":342},[328,1675,713],{"class":342},[328,1677,716],{"class":342},[328,1679,1680,1682,1685,1687,1689,1691,1693,1695,1697],{"class":330,"line":406},[328,1681,721],{"class":342},[328,1683,1684],{"class":442},"search.includes.0.limit",[328,1686,710],{"class":342},[328,1688,713],{"class":342},[328,1690,525],{"class":342},[328,1692,710],{"class":342},[328,1694,1660],{"class":541},[328,1696,710],{"class":342},[328,1698,1699],{"class":342},"]\n",[328,1701,1702],{"class":330,"line":428},[328,1703,763],{"class":342},[328,1705,1706],{"class":330,"line":435},[328,1707,682],{"class":342},[1316,1709,1711],{"id":1710},"more-rows","More rows",[313,1713,1714,1715,1164,1717,1164,1720,1164,1722,1164,1725,1626,1728,1731,1732,1735,1736,1739],{},"A row whose level includes a to-many relation (",[325,1716,423],{},[325,1718,1719],{},"MorphMany",[325,1721,401],{},[325,1723,1724],{},"MorphToMany",[325,1726,1727],{},"MorphedByMany",[325,1729,1730],{},"HasManyThrough",") ends with ",[325,1733,1734],{},"@more",": the keys of those includes that have more rows than they returned, ",[325,1737,1738],{},"[]"," when none.",[317,1741,1743],{"className":690,"code":1742,"filename":1326,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"includes\": [\n      {\"relation\": \"products\", \"selects\": [{\"field\": \"id\"}, {\"field\": \"name\"}]}\n    ]\n  }\n}\n",[325,1744,1745,1749,1761,1773,1838,1842,1846],{"__ignoreMap":323},[328,1746,1747],{"class":330,"line":331},[328,1748,455],{"class":342},[328,1750,1751,1753,1755,1757,1759],{"class":330,"line":361},[328,1752,704],{"class":342},[328,1754,707],{"class":438},[328,1756,710],{"class":342},[328,1758,713],{"class":342},[328,1760,716],{"class":342},[328,1762,1763,1765,1767,1769,1771],{"class":330,"line":383},[328,1764,721],{"class":342},[328,1766,686],{"class":442},[328,1768,710],{"class":342},[328,1770,713],{"class":342},[328,1772,604],{"class":342},[328,1774,1775,1777,1779,1781,1783,1785,1787,1789,1791,1793,1795,1797,1799,1801,1803,1805,1807,1809,1811,1813,1815,1817,1819,1821,1823,1825,1827,1829,1831,1833,1835],{"class":330,"line":406},[328,1776,734],{"class":342},[328,1778,710],{"class":342},[328,1780,739],{"class":334},[328,1782,710],{"class":342},[328,1784,713],{"class":342},[328,1786,746],{"class":342},[328,1788,621],{"class":541},[328,1790,710],{"class":342},[328,1792,626],{"class":342},[328,1794,746],{"class":342},[328,1796,1170],{"class":334},[328,1798,710],{"class":342},[328,1800,713],{"class":342},[328,1802,1393],{"class":342},[328,1804,710],{"class":342},[328,1806,1399],{"class":1398},[328,1808,710],{"class":342},[328,1810,713],{"class":342},[328,1812,746],{"class":342},[328,1814,542],{"class":541},[328,1816,710],{"class":342},[328,1818,1412],{"class":342},[328,1820,880],{"class":342},[328,1822,710],{"class":342},[328,1824,1399],{"class":1398},[328,1826,710],{"class":342},[328,1828,713],{"class":342},[328,1830,746],{"class":342},[328,1832,561],{"class":541},[328,1834,710],{"class":342},[328,1836,1837],{"class":342},"}]}\n",[328,1839,1840],{"class":330,"line":428},[328,1841,758],{"class":342},[328,1843,1844],{"class":330,"line":435},[328,1845,763],{"class":342},[328,1847,1848],{"class":330,"line":452},[328,1849,682],{"class":342},[317,1851,1853],{"className":690,"code":1852,"filename":771,"language":693,"meta":323,"style":323},"{\n  \"current_page\": 1,\n  \"data\": [\n    {\"id\": 2, \"name\": \"Furniture\", \"products\": [{\"id\": 14, \"name\": \"Desk\"}, {\"id\": 13, \"name\": \"Chair\"}], \"@more\": []},\n    {\"id\": 1, \"name\": \"Lighting\", \"products\": [{\"id\": 12, \"name\": \"Wall lamp\"}, ...], \"@more\": [\"products\"]}\n  ],\n  \"from\": 1,\n  \"last_page\": 1,\n  \"per_page\": 50,\n  \"to\": 2,\n  \"total\": 2,\n  \"meta\": {}\n}\n",[325,1854,1855,1859,1873,1885,2002,2099,2103,2117,2131,2145,2159,2173,2185],{"__ignoreMap":323},[328,1856,1857],{"class":330,"line":331},[328,1858,455],{"class":342},[328,1860,1861,1863,1865,1867,1869,1871],{"class":330,"line":361},[328,1862,704],{"class":342},[328,1864,784],{"class":438},[328,1866,710],{"class":342},[328,1868,713],{"class":342},[328,1870,791],{"class":334},[328,1872,794],{"class":342},[328,1874,1875,1877,1879,1881,1883],{"class":330,"line":383},[328,1876,704],{"class":342},[328,1878,801],{"class":438},[328,1880,710],{"class":342},[328,1882,713],{"class":342},[328,1884,604],{"class":342},[328,1886,1887,1889,1891,1893,1895,1897,1899,1901,1903,1905,1907,1909,1911,1914,1916,1918,1920,1922,1924,1926,1928,1930,1932,1934,1936,1939,1941,1943,1945,1947,1949,1951,1954,1956,1958,1960,1962,1964,1966,1968,1971,1973,1975,1977,1979,1981,1983,1986,1988,1991,1993,1995,1997,1999],{"class":330,"line":406},[328,1888,812],{"class":342},[328,1890,710],{"class":342},[328,1892,542],{"class":442},[328,1894,710],{"class":342},[328,1896,713],{"class":342},[328,1898,823],{"class":334},[328,1900,626],{"class":342},[328,1902,746],{"class":342},[328,1904,561],{"class":442},[328,1906,710],{"class":342},[328,1908,713],{"class":342},[328,1910,746],{"class":342},[328,1912,1913],{"class":541},"Furniture",[328,1915,710],{"class":342},[328,1917,626],{"class":342},[328,1919,746],{"class":342},[328,1921,621],{"class":442},[328,1923,710],{"class":342},[328,1925,713],{"class":342},[328,1927,1393],{"class":342},[328,1929,710],{"class":342},[328,1931,542],{"class":334},[328,1933,710],{"class":342},[328,1935,713],{"class":342},[328,1937,1938],{"class":334}," 14",[328,1940,626],{"class":342},[328,1942,746],{"class":342},[328,1944,561],{"class":334},[328,1946,710],{"class":342},[328,1948,713],{"class":342},[328,1950,746],{"class":342},[328,1952,1953],{"class":541},"Desk",[328,1955,710],{"class":342},[328,1957,1412],{"class":342},[328,1959,880],{"class":342},[328,1961,710],{"class":342},[328,1963,542],{"class":334},[328,1965,710],{"class":342},[328,1967,713],{"class":342},[328,1969,1970],{"class":334}," 13",[328,1972,626],{"class":342},[328,1974,746],{"class":342},[328,1976,561],{"class":334},[328,1978,710],{"class":342},[328,1980,713],{"class":342},[328,1982,746],{"class":342},[328,1984,1985],{"class":541},"Chair",[328,1987,710],{"class":342},[328,1989,1990],{"class":342},"}],",[328,1992,746],{"class":342},[328,1994,1734],{"class":442},[328,1996,710],{"class":342},[328,1998,713],{"class":342},[328,2000,2001],{"class":342}," []},\n",[328,2003,2004,2006,2008,2010,2012,2014,2016,2018,2020,2022,2024,2026,2028,2030,2032,2034,2036,2038,2040,2042,2044,2046,2048,2050,2052,2055,2057,2059,2061,2063,2065,2067,2070,2072,2074,2077,2080,2082,2084,2086,2088,2090,2092,2094,2096],{"class":330,"line":428},[328,2005,812],{"class":342},[328,2007,710],{"class":342},[328,2009,542],{"class":442},[328,2011,710],{"class":342},[328,2013,713],{"class":342},[328,2015,791],{"class":334},[328,2017,626],{"class":342},[328,2019,746],{"class":342},[328,2021,561],{"class":442},[328,2023,710],{"class":342},[328,2025,713],{"class":342},[328,2027,746],{"class":342},[328,2029,905],{"class":541},[328,2031,710],{"class":342},[328,2033,626],{"class":342},[328,2035,746],{"class":342},[328,2037,621],{"class":442},[328,2039,710],{"class":342},[328,2041,713],{"class":342},[328,2043,1393],{"class":342},[328,2045,710],{"class":342},[328,2047,542],{"class":334},[328,2049,710],{"class":342},[328,2051,713],{"class":342},[328,2053,2054],{"class":334}," 12",[328,2056,626],{"class":342},[328,2058,746],{"class":342},[328,2060,561],{"class":334},[328,2062,710],{"class":342},[328,2064,713],{"class":342},[328,2066,746],{"class":342},[328,2068,2069],{"class":541},"Wall lamp",[328,2071,710],{"class":342},[328,2073,1412],{"class":342},[328,2075,2076],{"class":338}," ...",[328,2078,2079],{"class":342},"],",[328,2081,746],{"class":342},[328,2083,1734],{"class":442},[328,2085,710],{"class":342},[328,2087,713],{"class":342},[328,2089,525],{"class":342},[328,2091,710],{"class":342},[328,2093,621],{"class":541},[328,2095,710],{"class":342},[328,2097,2098],{"class":342},"]}\n",[328,2100,2101],{"class":330,"line":435},[328,2102,1012],{"class":342},[328,2104,2105,2107,2109,2111,2113,2115],{"class":330,"line":452},[328,2106,704],{"class":342},[328,2108,1019],{"class":438},[328,2110,710],{"class":342},[328,2112,713],{"class":342},[328,2114,791],{"class":334},[328,2116,794],{"class":342},[328,2118,2119,2121,2123,2125,2127,2129],{"class":330,"line":458},[328,2120,704],{"class":342},[328,2122,1034],{"class":438},[328,2124,710],{"class":342},[328,2126,713],{"class":342},[328,2128,791],{"class":334},[328,2130,794],{"class":342},[328,2132,2133,2135,2137,2139,2141,2143],{"class":330,"line":489},[328,2134,704],{"class":342},[328,2136,1049],{"class":438},[328,2138,710],{"class":342},[328,2140,713],{"class":342},[328,2142,1056],{"class":334},[328,2144,794],{"class":342},[328,2146,2147,2149,2151,2153,2155,2157],{"class":330,"line":494},[328,2148,704],{"class":342},[328,2150,1065],{"class":438},[328,2152,710],{"class":342},[328,2154,713],{"class":342},[328,2156,823],{"class":334},[328,2158,794],{"class":342},[328,2160,2161,2163,2165,2167,2169,2171],{"class":330,"line":512},[328,2162,704],{"class":342},[328,2164,1080],{"class":438},[328,2166,710],{"class":342},[328,2168,713],{"class":342},[328,2170,823],{"class":334},[328,2172,794],{"class":342},[328,2174,2175,2177,2179,2181,2183],{"class":330,"line":518},[328,2176,704],{"class":342},[328,2178,1095],{"class":438},[328,2180,710],{"class":342},[328,2182,713],{"class":342},[328,2184,1102],{"class":342},[328,2186,2187],{"class":330,"line":569},[328,2188,682],{"class":342},[1224,2190,2191,2197,2206],{},[1227,2192,2193,2194,2196],{},"Read ",[325,2195,1734],{}," to tell a client that a list is not complete, and fetch the rest with a search on the related resource.",[1227,2198,2199,2200,2203,2204,1286],{},"Each such include reads one more row for each parent and drops it before ",[325,2201,2202],{},"searched()",", the gates and ",[325,2205,1296],{},[1227,2207,2208,2211,2212,2215,2216,2218],{},[325,2209,2210],{},"rest.search.more_key"," in ",[325,2213,2214],{},"config\u002Frest.php"," renames the key. A resource that declares a field of that name throws ",[325,2217,1570],{},", and an include or aggregate alias of that name gives a 422.",[1316,2220,2222],{"id":2221},"nested-and-dotted-includes","Nested and dotted includes",[317,2224,2227],{"className":690,"code":2225,"filename":2226,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"includes\": [\n      {\"relation\": \"posts\", \"includes\": [{\"relation\": \"comments\", \"limit\": 25}]},\n      {\"relation\": \"tags.posts\"}\n    ]\n  }\n}\n","POST \u002Fapi\u002Fauthors\u002Fsearch",[325,2228,2229,2233,2245,2257,2318,2339,2343,2347],{"__ignoreMap":323},[328,2230,2231],{"class":330,"line":331},[328,2232,455],{"class":342},[328,2234,2235,2237,2239,2241,2243],{"class":330,"line":361},[328,2236,704],{"class":342},[328,2238,707],{"class":438},[328,2240,710],{"class":342},[328,2242,713],{"class":342},[328,2244,716],{"class":342},[328,2246,2247,2249,2251,2253,2255],{"class":330,"line":383},[328,2248,721],{"class":342},[328,2250,686],{"class":442},[328,2252,710],{"class":342},[328,2254,713],{"class":342},[328,2256,604],{"class":342},[328,2258,2259,2261,2263,2265,2267,2269,2271,2274,2276,2278,2280,2282,2284,2286,2288,2290,2292,2294,2296,2298,2301,2303,2305,2307,2309,2311,2313,2315],{"class":330,"line":406},[328,2260,734],{"class":342},[328,2262,710],{"class":342},[328,2264,739],{"class":334},[328,2266,710],{"class":342},[328,2268,713],{"class":342},[328,2270,746],{"class":342},[328,2272,2273],{"class":541},"posts",[328,2275,710],{"class":342},[328,2277,626],{"class":342},[328,2279,746],{"class":342},[328,2281,686],{"class":334},[328,2283,710],{"class":342},[328,2285,713],{"class":342},[328,2287,1393],{"class":342},[328,2289,710],{"class":342},[328,2291,739],{"class":1398},[328,2293,710],{"class":342},[328,2295,713],{"class":342},[328,2297,746],{"class":342},[328,2299,2300],{"class":541},"comments",[328,2302,710],{"class":342},[328,2304,626],{"class":342},[328,2306,746],{"class":342},[328,2308,1192],{"class":1398},[328,2310,710],{"class":342},[328,2312,713],{"class":342},[328,2314,1614],{"class":334},[328,2316,2317],{"class":342},"}]},\n",[328,2319,2320,2322,2324,2326,2328,2330,2332,2335,2337],{"class":330,"line":428},[328,2321,734],{"class":342},[328,2323,710],{"class":342},[328,2325,739],{"class":334},[328,2327,710],{"class":342},[328,2329,713],{"class":342},[328,2331,746],{"class":342},[328,2333,2334],{"class":541},"tags.posts",[328,2336,710],{"class":342},[328,2338,682],{"class":342},[328,2340,2341],{"class":330,"line":435},[328,2342,758],{"class":342},[328,2344,2345],{"class":330,"line":452},[328,2346,763],{"class":342},[328,2348,2349],{"class":330,"line":458},[328,2350,682],{"class":342},[1224,2352,2353,2364,2390,2395],{},[1227,2354,2355,2356,2359,2360,2363],{},"Includes nest up to ",[325,2357,2358],{},"rest.limits.depths.includes"," levels, 3 by default, and each relation of a dotted include counts: ",[325,2361,2362],{},"author.posts"," takes two levels.",[1227,2365,2366,2367,2211,2369,2372,2373,2375,2376,2378,2379,2381,2382,2384,2385,1235,2387,2389],{},"The relation that a dotted include goes through, such as ",[325,2368,2273],{},[325,2370,2371],{},"posts.comments",", is limited like an include: each parent row keeps the first ",[325,2374,1518],{}," rows of the relation, in the ",[325,2377,1528],{}," of its resource, and its ",[325,2380,1307],{}," applies. List ",[325,2383,2273],{}," as an include of its own, with its ",[325,2386,1192],{},[325,2388,1167],{},", to choose its rows.",[1227,2391,2392,2393,1286],{},"An include that a dotted include goes through keeps its own filters, sorts, scopes, limit and nested includes, whatever their order in ",[325,2394,686],{},[1227,2396,2397,2398,2401],{},"An owner that its perimeter hides renders ",[325,2399,2400],{},"null",", and the rows below a hidden row are not rendered.",[1316,2403,1156],{"id":2404},"aliases",[313,2406,2407,2409],{},[325,2408,1148],{}," renames the key of an include, so that one relation can show several times under different searches:",[317,2411,2413],{"className":690,"code":2412,"filename":1326,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"includes\": [\n      {\"relation\": \"products\", \"alias\": \"cheap_products\", \"filters\": [{\"field\": \"price\", \"operator\": \"\u003C\", \"value\": 50}]},\n      {\"relation\": \"products\", \"alias\": \"premium_products\", \"filters\": [{\"field\": \"price\", \"operator\": \">=\", \"value\": 500}]}\n    ]\n  }\n}\n",[325,2414,2415,2419,2431,2443,2537,2630,2634,2638],{"__ignoreMap":323},[328,2416,2417],{"class":330,"line":331},[328,2418,455],{"class":342},[328,2420,2421,2423,2425,2427,2429],{"class":330,"line":361},[328,2422,704],{"class":342},[328,2424,707],{"class":438},[328,2426,710],{"class":342},[328,2428,713],{"class":342},[328,2430,716],{"class":342},[328,2432,2433,2435,2437,2439,2441],{"class":330,"line":383},[328,2434,721],{"class":342},[328,2436,686],{"class":442},[328,2438,710],{"class":342},[328,2440,713],{"class":342},[328,2442,604],{"class":342},[328,2444,2445,2447,2449,2451,2453,2455,2457,2459,2461,2463,2465,2467,2469,2471,2473,2476,2478,2480,2482,2484,2486,2488,2490,2492,2494,2496,2498,2500,2502,2504,2506,2508,2511,2513,2515,2517,2520,2522,2524,2526,2529,2531,2533,2535],{"class":330,"line":406},[328,2446,734],{"class":342},[328,2448,710],{"class":342},[328,2450,739],{"class":334},[328,2452,710],{"class":342},[328,2454,713],{"class":342},[328,2456,746],{"class":342},[328,2458,621],{"class":541},[328,2460,710],{"class":342},[328,2462,626],{"class":342},[328,2464,746],{"class":342},[328,2466,1148],{"class":334},[328,2468,710],{"class":342},[328,2470,713],{"class":342},[328,2472,746],{"class":342},[328,2474,2475],{"class":541},"cheap_products",[328,2477,710],{"class":342},[328,2479,626],{"class":342},[328,2481,746],{"class":342},[328,2483,1163],{"class":334},[328,2485,710],{"class":342},[328,2487,713],{"class":342},[328,2489,1393],{"class":342},[328,2491,710],{"class":342},[328,2493,1399],{"class":1398},[328,2495,710],{"class":342},[328,2497,713],{"class":342},[328,2499,746],{"class":342},[328,2501,860],{"class":541},[328,2503,710],{"class":342},[328,2505,626],{"class":342},[328,2507,746],{"class":342},[328,2509,2510],{"class":1398},"operator",[328,2512,710],{"class":342},[328,2514,713],{"class":342},[328,2516,746],{"class":342},[328,2518,2519],{"class":541},"\u003C",[328,2521,710],{"class":342},[328,2523,626],{"class":342},[328,2525,746],{"class":342},[328,2527,2528],{"class":1398},"value",[328,2530,710],{"class":342},[328,2532,713],{"class":342},[328,2534,1056],{"class":334},[328,2536,2317],{"class":342},[328,2538,2539,2541,2543,2545,2547,2549,2551,2553,2555,2557,2559,2561,2563,2565,2567,2570,2572,2574,2576,2578,2580,2582,2584,2586,2588,2590,2592,2594,2596,2598,2600,2602,2604,2606,2608,2610,2613,2615,2617,2619,2621,2623,2625,2628],{"class":330,"line":428},[328,2540,734],{"class":342},[328,2542,710],{"class":342},[328,2544,739],{"class":334},[328,2546,710],{"class":342},[328,2548,713],{"class":342},[328,2550,746],{"class":342},[328,2552,621],{"class":541},[328,2554,710],{"class":342},[328,2556,626],{"class":342},[328,2558,746],{"class":342},[328,2560,1148],{"class":334},[328,2562,710],{"class":342},[328,2564,713],{"class":342},[328,2566,746],{"class":342},[328,2568,2569],{"class":541},"premium_products",[328,2571,710],{"class":342},[328,2573,626],{"class":342},[328,2575,746],{"class":342},[328,2577,1163],{"class":334},[328,2579,710],{"class":342},[328,2581,713],{"class":342},[328,2583,1393],{"class":342},[328,2585,710],{"class":342},[328,2587,1399],{"class":1398},[328,2589,710],{"class":342},[328,2591,713],{"class":342},[328,2593,746],{"class":342},[328,2595,860],{"class":541},[328,2597,710],{"class":342},[328,2599,626],{"class":342},[328,2601,746],{"class":342},[328,2603,2510],{"class":1398},[328,2605,710],{"class":342},[328,2607,713],{"class":342},[328,2609,746],{"class":342},[328,2611,2612],{"class":541},">=",[328,2614,710],{"class":342},[328,2616,626],{"class":342},[328,2618,746],{"class":342},[328,2620,2528],{"class":1398},[328,2622,710],{"class":342},[328,2624,713],{"class":342},[328,2626,2627],{"class":334}," 500",[328,2629,1837],{"class":342},[328,2631,2632],{"class":330,"line":435},[328,2633,758],{"class":342},[328,2635,2636],{"class":330,"line":452},[328,2637,763],{"class":342},[328,2639,2640],{"class":330,"line":458},[328,2641,682],{"class":342},[1224,2643,2644,2651,2672,2678,2689],{},[1227,2645,2646,2647,2650],{},"An alias looks like an identifier, ",[325,2648,2649],{},"^[A-Za-z_][A-Za-z0-9_]*$",", and is used as written.",[1227,2652,2653,2654,1235,2657,2660,2661,1538,2663,1164,2666,1164,2669],{},"It must differ from the fields of the resource, ",[325,2655,2656],{},"writeOnly()",[325,2658,2659],{},"virtual()"," fields included, its relations, the keys of the other includes and aggregates of the same search, the gates key and ",[325,2662,1734],{},[325,2664,2665],{},"The search.includes.0.alias conflicts with a field of this resource.",[325,2667,2668],{},"The search.includes.0.alias is already used by an aggregate.",[325,2670,2671],{},"The search.includes.1.alias is already used by another include.",[1227,2673,2674,2675],{},"An include without alias whose key is the name of a field, a reserved key or the key of an aggregate gets ",[325,2676,2677],{},"The search.includes.0.alias field is required, because the key posts is already used.",[1227,2679,2680,2681,2683,2684,1538,2686],{},"A dotted ",[325,2682,739],{}," refuses ",[325,2685,1148],{},[325,2687,2688],{},"The search.includes.0.alias is not allowed on a nested relation, use a nested include instead.",[1227,2690,2691,2692,2694,2695,2698,2699,2701,2702,2705],{},"Inside a ",[325,2693,1221],{}," include, the type key (",[325,2696,2697],{},"@type",") is reserved. Inside a many-to-many include, the pivot key (",[325,2700,1259],{},", or the name given to ",[325,2703,2704],{},"as()"," in snake case) is reserved.",[1316,2707,2709],{"id":2708},"many-to-many-rows","Many-to-many rows",[313,2711,2712,2713,1164,2715,1626,2717,2719,2720,2722,2723,2726],{},"The rows of a ",[325,2714,401],{},[325,2716,1724],{},[325,2718,1727],{}," include hold ",[325,2721,1259],{},", with the selectable pivot fields of the relation, ",[325,2724,2725],{},"{}"," when there are none:",[317,2728,2730],{"className":690,"code":2729,"language":693,"meta":323,"style":323},"{\"id\": 1, \"name\": \"Mathematics\", \"pivot\": {\"weight\": 3}}\n",[325,2731,2732],{"__ignoreMap":323},[328,2733,2734,2737,2739,2741,2743,2745,2747,2749,2751,2753,2755,2757,2759,2762,2764,2766,2768,2770,2772,2774,2776,2778,2781,2783,2785,2788],{"class":330,"line":331},[328,2735,2736],{"class":342},"{",[328,2738,710],{"class":342},[328,2740,542],{"class":438},[328,2742,710],{"class":342},[328,2744,713],{"class":342},[328,2746,791],{"class":334},[328,2748,626],{"class":342},[328,2750,746],{"class":342},[328,2752,561],{"class":438},[328,2754,710],{"class":342},[328,2756,713],{"class":342},[328,2758,746],{"class":342},[328,2760,2761],{"class":541},"Mathematics",[328,2763,710],{"class":342},[328,2765,626],{"class":342},[328,2767,746],{"class":342},[328,2769,1259],{"class":438},[328,2771,710],{"class":342},[328,2773,713],{"class":342},[328,2775,880],{"class":342},[328,2777,710],{"class":342},[328,2779,2780],{"class":442},"weight",[328,2782,710],{"class":342},[328,2784,713],{"class":342},[328,2786,2787],{"class":334}," 3",[328,2789,1007],{"class":342},[313,2791,1623,2792,1626,2794,2797,2798,1286],{},[325,2793,2656],{},[325,2795,2796],{},"selectable(false)"," pivot field is not returned. See ",[1153,2799,396],{"href":2800},"\u002Fwriting\u002Frelations#pivot-fields",[1316,2802,2804],{"id":2803},"morphto-includes","MorphTo includes",[313,2806,1623,2807,2809,2810,2812,2813,2816],{},[325,2808,1221],{}," include returns each target with its type first, under ",[325,2811,2697],{}," (",[325,2814,2815],{},"rest.morph.type_key","): the morph-map alias of its model, or its class name.",[317,2818,2821],{"className":690,"code":2819,"filename":2820,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"includes\": [\n      {\n        \"relation\": \"labelable\",\n        \"types\": {\n          \"book\": {\"selects\": [{\"field\": \"title\"}], \"aggregates\": [{\"relation\": \"labels\", \"type\": \"count\"}]},\n          \"shelf\": {}\n        }\n      }\n    ]\n  }\n}\n","POST \u002Fapi\u002Flabels\u002Fsearch",[325,2822,2823,2827,2839,2851,2855,2874,2886,2973,2986,2991,2995,2999,3003],{"__ignoreMap":323},[328,2824,2825],{"class":330,"line":331},[328,2826,455],{"class":342},[328,2828,2829,2831,2833,2835,2837],{"class":330,"line":361},[328,2830,704],{"class":342},[328,2832,707],{"class":438},[328,2834,710],{"class":342},[328,2836,713],{"class":342},[328,2838,716],{"class":342},[328,2840,2841,2843,2845,2847,2849],{"class":330,"line":383},[328,2842,721],{"class":342},[328,2844,686],{"class":442},[328,2846,710],{"class":342},[328,2848,713],{"class":342},[328,2850,604],{"class":342},[328,2852,2853],{"class":330,"line":406},[328,2854,1361],{"class":342},[328,2856,2857,2859,2861,2863,2865,2867,2870,2872],{"class":330,"line":428},[328,2858,1366],{"class":342},[328,2860,739],{"class":334},[328,2862,710],{"class":342},[328,2864,713],{"class":342},[328,2866,746],{"class":342},[328,2868,2869],{"class":541},"labelable",[328,2871,710],{"class":342},[328,2873,794],{"class":342},[328,2875,2876,2878,2880,2882,2884],{"class":330,"line":435},[328,2877,1366],{"class":342},[328,2879,1215],{"class":334},[328,2881,710],{"class":342},[328,2883,713],{"class":342},[328,2885,716],{"class":342},[328,2887,2888,2891,2894,2896,2898,2900,2902,2905,2907,2909,2911,2913,2915,2917,2919,2921,2924,2926,2928,2930,2932,2934,2936,2938,2940,2942,2944,2946,2948,2951,2953,2955,2957,2960,2962,2964,2966,2969,2971],{"class":330,"line":452},[328,2889,2890],{"class":342},"          \"",[328,2892,2893],{"class":1398},"book",[328,2895,710],{"class":342},[328,2897,713],{"class":342},[328,2899,880],{"class":342},[328,2901,710],{"class":342},[328,2903,1170],{"class":2904},"su27w",[328,2906,710],{"class":342},[328,2908,713],{"class":342},[328,2910,1393],{"class":342},[328,2912,710],{"class":342},[328,2914,1399],{"class":502},[328,2916,710],{"class":342},[328,2918,713],{"class":342},[328,2920,746],{"class":342},[328,2922,2923],{"class":541},"title",[328,2925,710],{"class":342},[328,2927,1990],{"class":342},[328,2929,746],{"class":342},[328,2931,1179],{"class":2904},[328,2933,710],{"class":342},[328,2935,713],{"class":342},[328,2937,1393],{"class":342},[328,2939,710],{"class":342},[328,2941,739],{"class":502},[328,2943,710],{"class":342},[328,2945,713],{"class":342},[328,2947,746],{"class":342},[328,2949,2950],{"class":541},"labels",[328,2952,710],{"class":342},[328,2954,626],{"class":342},[328,2956,746],{"class":342},[328,2958,2959],{"class":502},"type",[328,2961,710],{"class":342},[328,2963,713],{"class":342},[328,2965,746],{"class":342},[328,2967,2968],{"class":541},"count",[328,2970,710],{"class":342},[328,2972,2317],{"class":342},[328,2974,2975,2977,2980,2982,2984],{"class":330,"line":458},[328,2976,2890],{"class":342},[328,2978,2979],{"class":1398},"shelf",[328,2981,710],{"class":342},[328,2983,713],{"class":342},[328,2985,1102],{"class":342},[328,2987,2988],{"class":330,"line":489},[328,2989,2990],{"class":342},"        }\n",[328,2992,2993],{"class":330,"line":494},[328,2994,1495],{"class":342},[328,2996,2997],{"class":330,"line":512},[328,2998,758],{"class":342},[328,3000,3001],{"class":330,"line":518},[328,3002,763],{"class":342},[328,3004,3005],{"class":330,"line":569},[328,3006,682],{"class":342},[317,3008,3010],{"className":690,"code":3009,"language":693,"meta":323,"style":323},"{\"id\": 1, \"text\": \"Classic\", \"labelable\": {\"@type\": \"book\", \"title\": \"Dune\", \"labels_count\": 2}}\n",[325,3011,3012],{"__ignoreMap":323},[328,3013,3014,3016,3018,3020,3022,3024,3026,3028,3030,3032,3034,3036,3038,3041,3043,3045,3047,3049,3051,3053,3055,3057,3059,3061,3063,3065,3067,3069,3071,3073,3075,3077,3079,3081,3084,3086,3088,3090,3093,3095,3097,3099],{"class":330,"line":331},[328,3015,2736],{"class":342},[328,3017,710],{"class":342},[328,3019,542],{"class":438},[328,3021,710],{"class":342},[328,3023,713],{"class":342},[328,3025,791],{"class":334},[328,3027,626],{"class":342},[328,3029,746],{"class":342},[328,3031,1234],{"class":438},[328,3033,710],{"class":342},[328,3035,713],{"class":342},[328,3037,746],{"class":342},[328,3039,3040],{"class":541},"Classic",[328,3042,710],{"class":342},[328,3044,626],{"class":342},[328,3046,746],{"class":342},[328,3048,2869],{"class":438},[328,3050,710],{"class":342},[328,3052,713],{"class":342},[328,3054,880],{"class":342},[328,3056,710],{"class":342},[328,3058,2697],{"class":442},[328,3060,710],{"class":342},[328,3062,713],{"class":342},[328,3064,746],{"class":342},[328,3066,2893],{"class":541},[328,3068,710],{"class":342},[328,3070,626],{"class":342},[328,3072,746],{"class":342},[328,3074,2923],{"class":442},[328,3076,710],{"class":342},[328,3078,713],{"class":342},[328,3080,746],{"class":342},[328,3082,3083],{"class":541},"Dune",[328,3085,710],{"class":342},[328,3087,626],{"class":342},[328,3089,746],{"class":342},[328,3091,3092],{"class":442},"labels_count",[328,3094,710],{"class":342},[328,3096,713],{"class":342},[328,3098,823],{"class":334},[328,3100,1007],{"class":342},[1224,3102,3103,3114,3120],{},[1227,3104,3105,3106,3108,3109,3111,3112,1286],{},"With several targets, ",[325,3107,1215],{}," holds the search of each type. Without ",[325,3110,1215],{},", every target loads and needs ",[325,3113,1303],{},[1227,3115,3116,3117,3119],{},"A row whose stored type is not a target, or not a listed type, returns ",[325,3118,2400],{},", without a query.",[1227,3121,3122],{},"Filters, aggregates and nested includes apply on the query of the target.",[684,3124,3125],{"id":1179},"Aggregates",[317,3127,3129],{"className":690,"code":3128,"filename":1326,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"aggregates\": [\n      {\"relation\": \"products\", \"type\": \"count\"},\n      {\"relation\": \"products\", \"type\": \"max\", \"field\": \"price\"},\n      {\"relation\": \"products\", \"type\": \"min\", \"field\": \"price\", \"alias\": \"cheapest\", \"filters\": [{\"field\": \"price\", \"operator\": \">\", \"value\": 0}]}\n    ]\n  }\n}\n",[325,3130,3131,3135,3147,3159,3196,3249,3375,3379,3383],{"__ignoreMap":323},[328,3132,3133],{"class":330,"line":331},[328,3134,455],{"class":342},[328,3136,3137,3139,3141,3143,3145],{"class":330,"line":361},[328,3138,704],{"class":342},[328,3140,707],{"class":438},[328,3142,710],{"class":342},[328,3144,713],{"class":342},[328,3146,716],{"class":342},[328,3148,3149,3151,3153,3155,3157],{"class":330,"line":383},[328,3150,721],{"class":342},[328,3152,1179],{"class":442},[328,3154,710],{"class":342},[328,3156,713],{"class":342},[328,3158,604],{"class":342},[328,3160,3161,3163,3165,3167,3169,3171,3173,3175,3177,3179,3181,3183,3185,3187,3189,3191,3193],{"class":330,"line":406},[328,3162,734],{"class":342},[328,3164,710],{"class":342},[328,3166,739],{"class":334},[328,3168,710],{"class":342},[328,3170,713],{"class":342},[328,3172,746],{"class":342},[328,3174,621],{"class":541},[328,3176,710],{"class":342},[328,3178,626],{"class":342},[328,3180,746],{"class":342},[328,3182,2959],{"class":334},[328,3184,710],{"class":342},[328,3186,713],{"class":342},[328,3188,746],{"class":342},[328,3190,2968],{"class":541},[328,3192,710],{"class":342},[328,3194,3195],{"class":342},"},\n",[328,3197,3198,3200,3202,3204,3206,3208,3210,3212,3214,3216,3218,3220,3222,3224,3226,3229,3231,3233,3235,3237,3239,3241,3243,3245,3247],{"class":330,"line":428},[328,3199,734],{"class":342},[328,3201,710],{"class":342},[328,3203,739],{"class":334},[328,3205,710],{"class":342},[328,3207,713],{"class":342},[328,3209,746],{"class":342},[328,3211,621],{"class":541},[328,3213,710],{"class":342},[328,3215,626],{"class":342},[328,3217,746],{"class":342},[328,3219,2959],{"class":334},[328,3221,710],{"class":342},[328,3223,713],{"class":342},[328,3225,746],{"class":342},[328,3227,3228],{"class":541},"max",[328,3230,710],{"class":342},[328,3232,626],{"class":342},[328,3234,746],{"class":342},[328,3236,1399],{"class":334},[328,3238,710],{"class":342},[328,3240,713],{"class":342},[328,3242,746],{"class":342},[328,3244,860],{"class":541},[328,3246,710],{"class":342},[328,3248,3195],{"class":342},[328,3250,3251,3253,3255,3257,3259,3261,3263,3265,3267,3269,3271,3273,3275,3277,3279,3282,3284,3286,3288,3290,3292,3294,3296,3298,3300,3302,3304,3306,3308,3310,3312,3315,3317,3319,3321,3323,3325,3327,3329,3331,3333,3335,3337,3339,3341,3343,3345,3347,3349,3351,3353,3355,3358,3360,3362,3364,3366,3368,3370,3373],{"class":330,"line":435},[328,3252,734],{"class":342},[328,3254,710],{"class":342},[328,3256,739],{"class":334},[328,3258,710],{"class":342},[328,3260,713],{"class":342},[328,3262,746],{"class":342},[328,3264,621],{"class":541},[328,3266,710],{"class":342},[328,3268,626],{"class":342},[328,3270,746],{"class":342},[328,3272,2959],{"class":334},[328,3274,710],{"class":342},[328,3276,713],{"class":342},[328,3278,746],{"class":342},[328,3280,3281],{"class":541},"min",[328,3283,710],{"class":342},[328,3285,626],{"class":342},[328,3287,746],{"class":342},[328,3289,1399],{"class":334},[328,3291,710],{"class":342},[328,3293,713],{"class":342},[328,3295,746],{"class":342},[328,3297,860],{"class":541},[328,3299,710],{"class":342},[328,3301,626],{"class":342},[328,3303,746],{"class":342},[328,3305,1148],{"class":334},[328,3307,710],{"class":342},[328,3309,713],{"class":342},[328,3311,746],{"class":342},[328,3313,3314],{"class":541},"cheapest",[328,3316,710],{"class":342},[328,3318,626],{"class":342},[328,3320,746],{"class":342},[328,3322,1163],{"class":334},[328,3324,710],{"class":342},[328,3326,713],{"class":342},[328,3328,1393],{"class":342},[328,3330,710],{"class":342},[328,3332,1399],{"class":1398},[328,3334,710],{"class":342},[328,3336,713],{"class":342},[328,3338,746],{"class":342},[328,3340,860],{"class":541},[328,3342,710],{"class":342},[328,3344,626],{"class":342},[328,3346,746],{"class":342},[328,3348,2510],{"class":1398},[328,3350,710],{"class":342},[328,3352,713],{"class":342},[328,3354,746],{"class":342},[328,3356,3357],{"class":541},">",[328,3359,710],{"class":342},[328,3361,626],{"class":342},[328,3363,746],{"class":342},[328,3365,2528],{"class":1398},[328,3367,710],{"class":342},[328,3369,713],{"class":342},[328,3371,3372],{"class":334}," 0",[328,3374,1837],{"class":342},[328,3376,3377],{"class":330,"line":452},[328,3378,758],{"class":342},[328,3380,3381],{"class":330,"line":458},[328,3382,763],{"class":342},[328,3384,3385],{"class":330,"line":489},[328,3386,682],{"class":342},[317,3388,3390],{"className":690,"code":3389,"filename":771,"language":693,"meta":323,"style":323},"{\n  \"current_page\": 1,\n  \"data\": [\n    {\"id\": 1, \"name\": \"Lighting\", \"products_count\": 2, \"products_max_price\": 129, \"cheapest\": 39}\n  ],\n  \"from\": 1,\n  \"last_page\": 1,\n  \"per_page\": 50,\n  \"to\": 1,\n  \"total\": 1,\n  \"meta\": {}\n}\n",[325,3391,3392,3396,3410,3422,3492,3496,3510,3524,3538,3552,3566,3578],{"__ignoreMap":323},[328,3393,3394],{"class":330,"line":331},[328,3395,455],{"class":342},[328,3397,3398,3400,3402,3404,3406,3408],{"class":330,"line":361},[328,3399,704],{"class":342},[328,3401,784],{"class":438},[328,3403,710],{"class":342},[328,3405,713],{"class":342},[328,3407,791],{"class":334},[328,3409,794],{"class":342},[328,3411,3412,3414,3416,3418,3420],{"class":330,"line":383},[328,3413,704],{"class":342},[328,3415,801],{"class":438},[328,3417,710],{"class":342},[328,3419,713],{"class":342},[328,3421,604],{"class":342},[328,3423,3424,3426,3428,3430,3432,3434,3436,3438,3440,3442,3444,3446,3448,3450,3452,3454,3456,3459,3461,3463,3465,3467,3469,3472,3474,3476,3478,3480,3482,3484,3486,3488,3490],{"class":330,"line":406},[328,3425,812],{"class":342},[328,3427,710],{"class":342},[328,3429,542],{"class":442},[328,3431,710],{"class":342},[328,3433,713],{"class":342},[328,3435,791],{"class":334},[328,3437,626],{"class":342},[328,3439,746],{"class":342},[328,3441,561],{"class":442},[328,3443,710],{"class":342},[328,3445,713],{"class":342},[328,3447,746],{"class":342},[328,3449,905],{"class":541},[328,3451,710],{"class":342},[328,3453,626],{"class":342},[328,3455,746],{"class":342},[328,3457,3458],{"class":442},"products_count",[328,3460,710],{"class":342},[328,3462,713],{"class":342},[328,3464,823],{"class":334},[328,3466,626],{"class":342},[328,3468,746],{"class":342},[328,3470,3471],{"class":442},"products_max_price",[328,3473,710],{"class":342},[328,3475,713],{"class":342},[328,3477,867],{"class":334},[328,3479,626],{"class":342},[328,3481,746],{"class":342},[328,3483,3314],{"class":442},[328,3485,710],{"class":342},[328,3487,713],{"class":342},[328,3489,966],{"class":334},[328,3491,682],{"class":342},[328,3493,3494],{"class":330,"line":428},[328,3495,1012],{"class":342},[328,3497,3498,3500,3502,3504,3506,3508],{"class":330,"line":435},[328,3499,704],{"class":342},[328,3501,1019],{"class":438},[328,3503,710],{"class":342},[328,3505,713],{"class":342},[328,3507,791],{"class":334},[328,3509,794],{"class":342},[328,3511,3512,3514,3516,3518,3520,3522],{"class":330,"line":452},[328,3513,704],{"class":342},[328,3515,1034],{"class":438},[328,3517,710],{"class":342},[328,3519,713],{"class":342},[328,3521,791],{"class":334},[328,3523,794],{"class":342},[328,3525,3526,3528,3530,3532,3534,3536],{"class":330,"line":458},[328,3527,704],{"class":342},[328,3529,1049],{"class":438},[328,3531,710],{"class":342},[328,3533,713],{"class":342},[328,3535,1056],{"class":334},[328,3537,794],{"class":342},[328,3539,3540,3542,3544,3546,3548,3550],{"class":330,"line":489},[328,3541,704],{"class":342},[328,3543,1065],{"class":438},[328,3545,710],{"class":342},[328,3547,713],{"class":342},[328,3549,791],{"class":334},[328,3551,794],{"class":342},[328,3553,3554,3556,3558,3560,3562,3564],{"class":330,"line":494},[328,3555,704],{"class":342},[328,3557,1080],{"class":438},[328,3559,710],{"class":342},[328,3561,713],{"class":342},[328,3563,791],{"class":334},[328,3565,794],{"class":342},[328,3567,3568,3570,3572,3574,3576],{"class":330,"line":512},[328,3569,704],{"class":342},[328,3571,1095],{"class":438},[328,3573,710],{"class":342},[328,3575,713],{"class":342},[328,3577,1102],{"class":342},[328,3579,3580],{"class":330,"line":518},[328,3581,682],{"class":342},[1111,3583,3584,3592],{},[1114,3585,3586],{},[1117,3587,3588,3590],{},[1120,3589,1122],{},[1120,3591,1125],{},[1127,3593,3594,3606,3633,3655,3664],{},[1117,3595,3596,3600],{},[1132,3597,3598],{},[325,3599,739],{},[1132,3601,3602,3603],{},"A relation of the resource, or a path of relations such as ",[325,3604,3605],{},"tickets.tags",[1117,3607,3608,3612],{},[1132,3609,3610],{},[325,3611,2959],{},[1132,3613,3614,1164,3616,1164,3619,1164,3621,1164,3623,1626,3626,2812,3629,3632],{},[325,3615,2968],{},[325,3617,3618],{},"exists",[325,3620,3281],{},[325,3622,3228],{},[325,3624,3625],{},"avg",[325,3627,3628],{},"sum",[325,3630,3631],{},"Lomkit\\Rest\\Fields\\AggregateFunction","), required",[1117,3634,3635,3639],{},[1132,3636,3637],{},[325,3638,1399],{},[1132,3640,3641,3642,1164,3644,1164,3646,1235,3648,3650,3651,1235,3653],{},"Required for ",[325,3643,3281],{},[325,3645,3228],{},[325,3647,3625],{},[325,3649,3628],{},"; refused for ",[325,3652,2968],{},[325,3654,3618],{},[1117,3656,3657,3661],{},[1132,3658,3659],{},[325,3660,1148],{},[1132,3662,3663],{},"The key of the value in the row",[1117,3665,3666,3670],{},[1132,3667,3668],{},[325,3669,1163],{},[1132,3671,3672],{},"The filters of the related rows, with the fields of their resource",[1316,3674,3676],{"id":3675},"functions-and-fields","Functions and fields",[1224,3678,3679,3706,3720,3736,3742],{},[1227,3680,3681,1235,3683,3685,3686,3689,3690,3692,3693,3695,3696,3698,3699,3701,3702,3705],{},[325,3682,3281],{},[325,3684,3228],{}," take a field of the related resource that is sortable by its own column: sortable by default or declared ",[325,3687,3688],{},"sortable()",", and neither ",[325,3691,2659],{}," nor ",[325,3694,2656],{},". A ",[325,3697,2796],{}," field counts only when it is declared ",[325,3700,3688],{},". ",[325,3703,3704],{},"sortUsing()"," does not count, because the aggregate reads the column.",[1227,3707,3708,1235,3710,3712,3713,3716,3717,3719],{},[325,3709,3281],{},[325,3711,3228],{}," refuse a ",[325,3714,3715],{},"Boolean"," field. They accept an ",[325,3718,355],{}," field with UUID keys on every database.",[1227,3721,3722,1235,3724,3726,3727,1626,3730,3733,3734,1286],{},[325,3723,3625],{},[325,3725,3628],{}," also need a ",[325,3728,3729],{},"Number",[325,3731,3732],{},"Integer"," field, or an app type that extends ",[325,3735,3729],{},[1227,3737,3738,3739],{},"Another field gives ",[325,3740,3741],{},"The selected search.aggregates.0.field is invalid.",[1227,3743,3744,3745,3747],{},"An aggregate counts every related row: the ",[325,3746,1192],{}," of an include does not apply to it.",[1316,3749,3751],{"id":3750},"keys","Keys",[1224,3753,3754,3768,3784,3805,3811],{},[1227,3755,3756,3757,3759,3760,3763,3764,1164,3766,1286],{},"The key of a value is its ",[325,3758,1148],{},", or ",[325,3761,3762],{},"\u003Crelation>_\u003Ctype>_\u003Cfield>",", with the field name in lower case: ",[325,3765,3471],{},[325,3767,3458],{},[1227,3769,2646,3770,3772,3773,3776,3777,3779,3780,3783],{},[325,3771,2649],{},", of at most 255 characters: ",[325,3774,3775],{},"The search.aggregates.0.alias field format is invalid."," A ",[325,3778,2400],{}," alias gives ",[325,3781,3782],{},"The search.aggregates.0.alias field must be a string.",": leave the key out to keep the default name.",[1227,3785,3786,3787,1538,3790,1164,3793,1164,3796,1164,3799,1626,3802],{},"Each key of a row names one value. The key of an aggregate must differ from the fields and relations of the resource, the keys of the includes and of the other aggregates of the same search, and the gates key. A clash gives a 422 under ",[325,3788,3789],{},"search.aggregates.0.alias",[325,3791,3792],{},"... conflicts with a field of this resource.",[325,3794,3795],{},"... conflicts with a relation of this resource.",[325,3797,3798],{},"... is already used by an include.",[325,3800,3801],{},"... is already used by another aggregate.",[325,3803,3804],{},"... is reserved.",[1227,3806,3807,3808],{},"Two aggregates with the same default key need an alias: ",[325,3809,3810],{},"The search.aggregates.1.alias field is required, because the key products_count is already used.",[1227,3812,3813,3814,3816,3817,1286],{},"A row returns its aggregates after its fields. Sort on the key of an aggregate over a relation to many with ",[325,3815,1167],{},", see ",[1153,3818,76],{"href":3819},"\u002Fsearch\u002Fsorts-and-selects#sort-on-an-aggregate",[1316,3821,3823],{"id":3822},"paths","Paths",[317,3825,3828],{"className":690,"code":3826,"filename":3827,"language":693,"meta":323,"style":323},"{\n  \"search\": {\n    \"aggregates\": [{\"relation\": \"tickets.tags\", \"type\": \"count\"}]\n  }\n}\n","POST \u002Fapi\u002Fteams\u002Fsearch",[325,3829,3830,3834,3846,3891,3895],{"__ignoreMap":323},[328,3831,3832],{"class":330,"line":331},[328,3833,455],{"class":342},[328,3835,3836,3838,3840,3842,3844],{"class":330,"line":361},[328,3837,704],{"class":342},[328,3839,707],{"class":438},[328,3841,710],{"class":342},[328,3843,713],{"class":342},[328,3845,716],{"class":342},[328,3847,3848,3850,3852,3854,3856,3858,3860,3862,3864,3866,3868,3870,3872,3874,3876,3878,3880,3882,3884,3886,3888],{"class":330,"line":383},[328,3849,721],{"class":342},[328,3851,1179],{"class":442},[328,3853,710],{"class":342},[328,3855,713],{"class":342},[328,3857,1393],{"class":342},[328,3859,710],{"class":342},[328,3861,739],{"class":334},[328,3863,710],{"class":342},[328,3865,713],{"class":342},[328,3867,746],{"class":342},[328,3869,3605],{"class":541},[328,3871,710],{"class":342},[328,3873,626],{"class":342},[328,3875,746],{"class":342},[328,3877,2959],{"class":334},[328,3879,710],{"class":342},[328,3881,713],{"class":342},[328,3883,746],{"class":342},[328,3885,2968],{"class":541},[328,3887,710],{"class":342},[328,3889,3890],{"class":342},"}]\n",[328,3892,3893],{"class":330,"line":406},[328,3894,763],{"class":342},[328,3896,3897],{"class":330,"line":428},[328,3898,682],{"class":342},[1224,3900,3901,3907,3915,3924],{},[1227,3902,3903,3904,1286],{},"The aggregate reads the rows at the end of the path and counts each of them once, however many rows of the levels before lead to it. Its key joins the relations: ",[325,3905,3906],{},"tickets_tags_count",[1227,3908,3909,3910,3912,3913,1286],{},"The ",[325,3911,1307],{}," of the resource of each level and the global scopes of its model apply, and each resource needs ",[325,3914,1303],{},[1227,3916,3917,3918,3920,3921],{},"A path holds at most ",[325,3919,2358],{}," relations: ",[325,3922,3923],{},"The search.aggregates.0.relation field goes deeper than the limit of 3 include levels.",[1227,3925,1623,3926,3928,3929,3932,3933,3936],{},[325,3927,1221],{}," relation gives ",[325,3930,3931],{},"The search.aggregates.0.relation field cannot be a MorphTo relation.",", and a path through one ",[325,3934,3935],{},"The search.aggregates.0.relation field cannot go through a MorphTo relation."," Aggregate a relation of the target inside the include instead, as in the MorphTo example above.",[684,3938,58],{"id":3939},"limits",[1111,3941,3942,3955],{},[1114,3943,3944],{},[1117,3945,3946,3949,3952],{},[1120,3947,3948],{},"Limit",[1120,3950,3951],{},"Default",[1120,3953,3954],{},"Counts",[1127,3956,3957,3973,3986,3998],{},[1117,3958,3959,3964,3967],{},[1132,3960,3961],{},[325,3962,3963],{},"rest.limits.sizes.includes",[1132,3965,3966],{},"20",[1132,3968,3969,3970,3972],{},"The entries of each ",[325,3971,686],{}," list",[1117,3974,3975,3980,3982],{},[1132,3976,3977],{},[325,3978,3979],{},"rest.limits.sizes.aggregates",[1132,3981,3966],{},[1132,3983,3969,3984,3972],{},[325,3985,1179],{},[1117,3987,3988,3992,3995],{},[1132,3989,3990],{},[325,3991,2358],{},[1132,3993,3994],{},"3",[1132,3996,3997],{},"The levels of includes, the relations of a dotted include, of a filter path and of an aggregate path",[1117,3999,4000,4005,4008],{},[1132,4001,4002],{},[325,4003,4004],{},"rest.limits.sizes.rows",[1132,4006,4007],{},"10000",[1132,4009,4010],{},"The rows that one page can render, its included rows counted",[313,4012,4013,4014,4016,4017,4019,4020,4022,4023,1286],{},"The rows are counted before any query, from the limits that the request asks for: each to-many include counts its ",[325,4015,1192],{}," for each parent row, nested includes multiplying, and a to-one include one row for each parent. The 422 goes on the first key that takes the page over: the ",[325,4018,1192],{}," of an include, or its ",[325,4021,739],{}," when the include takes the default limit. See ",[1153,4024,4026],{"href":4025},"\u002Fresources\u002Flimits#response-rows","Response rows",[684,4028,4029],{"id":1671},"Errors",[1111,4031,4032,4042],{},[1114,4033,4034],{},[1117,4035,4036,4039],{},[1120,4037,4038],{},"Status",[1120,4040,4041],{},"Example",[1127,4043,4044,4057,4069,4079,4090],{},[1117,4045,4046,4051],{},[1132,4047,4048],{},[325,4049,4050],{},"403",[1132,4052,4053,4054,4056],{},"The user may not ",[325,4055,1303],{}," a resource that an include or an aggregate reaches",[1117,4058,4059,4064],{},[1132,4060,4061],{},[325,4062,4063],{},"422",[1132,4065,4066],{},[325,4067,4068],{},"The search.includes.0.sorts field is prohibited: this relation loads at most one record per parent.",[1117,4070,4071,4075],{},[1132,4072,4073],{},[325,4074,4063],{},[1132,4076,4077],{},[325,4078,2665],{},[1117,4080,4081,4085],{},[1132,4082,4083],{},[325,4084,4063],{},[1132,4086,4087],{},[325,4088,4089],{},"The search.aggregates.0.alias is already used by an include.",[1117,4091,4092,4096],{},[1132,4093,4094],{},[325,4095,4063],{},[1132,4097,4098],{},[325,4099,3931],{},[4101,4102,4103],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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 .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .su27w, html code.shiki .su27w{--shiki-light:#916B53;--shiki-default:#916B53;--shiki-dark:#916B53}",{"title":323,"searchDepth":331,"depth":361,"links":4105},[4106,4114,4119,4120],{"id":686,"depth":361,"text":687,"children":4107},[4108,4109,4110,4111,4112,4113],{"id":1318,"depth":383,"text":1319},{"id":1710,"depth":383,"text":1711},{"id":2221,"depth":383,"text":2222},{"id":2404,"depth":383,"text":1156},{"id":2708,"depth":383,"text":2709},{"id":2803,"depth":383,"text":2804},{"id":1179,"depth":361,"text":3125,"children":4115},[4116,4117,4118],{"id":3675,"depth":383,"text":3676},{"id":3750,"depth":383,"text":3751},{"id":3822,"depth":383,"text":3823},{"id":3939,"depth":361,"text":58},{"id":1671,"depth":361,"text":4029},"Load related rows with their own search and a limit per parent, read @more, and add count, exists, min, max, avg and sum values of relations.","md",null,{},{"title":80,"description":4121},{"loc":81},"6sFVTU8qZip9UDutx8WQgJTNKAPx36CFJZniyL0sZCY",[4129,4131],{"title":76,"path":77,"stem":78,"description":4130,"children":-1},"Order search rows by fields, to-one relation fields, aggregates or relevance, and choose the fields that each row returns.",{"title":84,"path":85,"stem":86,"description":4132,"children":-1},"Let clients call the local scopes of a model and the instructions of a resource, with typed parameters, aliases and search meta.",1794181354609]