[{"data":1,"prerenderedAt":2468,"buildId":2469},["ShallowReactive",2],{"page:\u002Fextensions\u002Fkubb-labs\u002Fplugin-vue-query\u002Foptions":3},{"id":4,"frontmatter":5,"title":6,"heading":6,"body":7,"path":2467,"source":4},"extensions\u002Fkubb-labs\u002Fplugin-vue-query\u002Foptions.md",{},"Options",{"type":8,"value":9,"toc":2434},"minimark",[10,25,30,518,522,525,531,562,611,614,616,653,676,808,810,833,870,872,878,915,919,926,963,966,978,1015,1018,1041,1078,1086,1093,1167,1176,1287,1290,1292,1298,1335,1338,1344,1380,1383,1393,1429,1432,1449,1485,1547,1549,1568,1605,1622,1625,1628,1664,1667,1672,1709,1712,1723,1760,1763,1768,1804,1807,1817,1854,1858,2041,2044,2052,2088,2091,2100,2137,2139,2154,2183],[11,12,13,14,18,19,24],"p",{},"Pass these options to ",[15,16,17],"code",{},"pluginVueQuery()",". Shared options link to ",[20,21,23],"a",{"href":22},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options","Shared plugin options",".",[26,27,29],"h2",{"id":28},"options-overview","Options overview",[31,32,33,49],"table",{},[34,35,36],"thead",{},[37,38,39,43,46],"tr",{},[40,41,42],"th",{},"Option",[40,44,45],{},"Purpose",[40,47,48],{},"Default",[50,51,52,69,87,109,127,145,163,184,202,220,237,257,274,292,313,331,348,365,382,399,417,433,448,466,483,501],"tbody",{},[37,53,54,63,66],{},[55,56,57],"td",{},[20,58,60],{"href":59},"#client",[15,61,62],{},"client",[55,64,65],{},"Client plugin the composables call.",[55,67,68],{},"Auto-detected",[37,70,71,79,82],{},[55,72,73],{},[20,74,76],{"href":75},"#returntype",[15,77,78],{},"returnType",[55,80,81],{},"What the composables resolve to.",[55,83,84],{},[15,85,86],{},"'data'",[37,88,89,97,104],{},[55,90,91],{},[20,92,94],{"href":93},"#hooks",[15,95,96],{},"hooks",[55,98,99,100,103],{},"Emit ",[15,101,102],{},"use*"," composables on top of the factories.",[55,105,106],{},[15,107,108],{},"false",[37,110,111,119,122],{},[55,112,113],{},[20,114,116],{"href":115},"#query",[15,117,118],{},"query",[55,120,121],{},"Which methods become queries, and the TanStack import.",[55,123,124],{},[15,125,126],{},"{ methods: ['GET', 'QUERY'], importPath: '@tanstack\u002Fvue-query' }",[37,128,129,137,140],{},[55,130,131],{},[20,132,134],{"href":133},"#querymethods",[15,135,136],{},"query.methods",[55,138,139],{},"Methods that become queries.",[55,141,142],{},[15,143,144],{},"['GET', 'QUERY']",[37,146,147,155,158],{},[55,148,149],{},[20,150,152],{"href":151},"#queryimportpath",[15,153,154],{},"query.importPath",[55,156,157],{},"Import path of the query helpers.",[55,159,160],{},[15,161,162],{},"'@tanstack\u002Fvue-query'",[37,164,165,173,179],{},[55,166,167],{},[20,168,170],{"href":169},"#querykey",[15,171,172],{},"queryKey",[55,174,175,176,178],{},"Build the ",[15,177,172],{}," of each query.",[55,180,181],{},[15,182,183],{},"queryKeyTransformer",[37,185,186,194,197],{},[55,187,188],{},[20,189,191],{"href":190},"#mutation",[15,192,193],{},"mutation",[55,195,196],{},"Which methods become mutations, and the TanStack import.",[55,198,199],{},[15,200,201],{},"{ methods: ['POST', 'PUT', 'PATCH', 'DELETE'], importPath: '@tanstack\u002Fvue-query' }",[37,203,204,212,215],{},[55,205,206],{},[20,207,209],{"href":208},"#mutationmethods",[15,210,211],{},"mutation.methods",[55,213,214],{},"Methods that become mutations.",[55,216,217],{},[15,218,219],{},"['POST', 'PUT', 'PATCH', 'DELETE']",[37,221,222,230,233],{},[55,223,224],{},[20,225,227],{"href":226},"#mutationimportpath",[15,228,229],{},"mutation.importPath",[55,231,232],{},"Import path of the mutation composables.",[55,234,235],{},[15,236,162],{},[37,238,239,247,252],{},[55,240,241],{},[20,242,244],{"href":243},"#mutationkey",[15,245,246],{},"mutationKey",[55,248,175,249,251],{},[15,250,246],{}," of each mutation.",[55,253,254],{},[15,255,256],{},"mutationKeyTransformer",[37,258,259,267,270],{},[55,260,261],{},[20,262,264],{"href":263},"#infinite",[15,265,266],{},"infinite",[55,268,269],{},"Generate infinite queries for pagination.",[55,271,272],{},[15,273,108],{},[37,275,276,284,287],{},[55,277,278],{},[20,279,281],{"href":280},"#infinitequeryparam",[15,282,283],{},"infinite.queryParam",[55,285,286],{},"Query parameter for the page cursor.",[55,288,289],{},[15,290,291],{},"'id'",[37,293,294,302,308],{},[55,295,296],{},[20,297,299],{"href":298},"#infiniteinitialpageparam",[15,300,301],{},"infinite.initialPageParam",[55,303,304,305,24],{},"First ",[15,306,307],{},"pageParam",[55,309,310],{},[15,311,312],{},"0",[37,314,315,323,326],{},[55,316,317],{},[20,318,320],{"href":319},"#infinitenextparam",[15,321,322],{},"infinite.nextParam",[55,324,325],{},"Path to the next cursor.",[55,327,328],{},[15,329,330],{},"null",[37,332,333,341,344],{},[55,334,335],{},[20,336,338],{"href":337},"#infinitepreviousparam",[15,339,340],{},"infinite.previousParam",[55,342,343],{},"Path to the previous cursor.",[55,345,346],{},[15,347,330],{},[37,349,350,358,361],{},[55,351,352],{},[20,353,355],{"href":354},"#infinitegetnextpageparam",[15,356,357],{},"infinite.getNextPageParam",[55,359,360],{},"Compute the next page param.",[55,362,363],{},[15,364,330],{},[37,366,367,375,378],{},[55,368,369],{},[20,370,372],{"href":371},"#infinitegetpreviouspageparam",[15,373,374],{},"infinite.getPreviousPageParam",[55,376,377],{},"Compute the previous page param.",[55,379,380],{},[15,381,330],{},[37,383,384,392,395],{},[55,385,386],{},[20,387,389],{"href":388},"#infinitecursorparam",[15,390,391],{},"infinite.cursorParam",[55,393,394],{},"Deprecated cursor field.",[55,396,397],{},[15,398,330],{},[37,400,401,409,412],{},[55,402,403],{},[20,404,406],{"href":405},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#output",[15,407,408],{},"output",[55,410,411],{},"Where files are written.",[55,413,414],{},[15,415,416],{},"{ path: 'hooks', barrel: { type: 'named' } }",[37,418,419,427,430],{},[55,420,421],{},[20,422,424],{"href":423},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#group",[15,425,426],{},"group",[55,428,429],{},"Split output by tag or path.",[55,431,432],{},"None",[37,434,435,443,446],{},[55,436,437],{},[20,438,440],{"href":439},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#include",[15,441,442],{},"include",[55,444,445],{},"Keep only operations that match.",[55,447,432],{},[37,449,450,458,461],{},[55,451,452],{},[20,453,455],{"href":454},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#exclude",[15,456,457],{},"exclude",[55,459,460],{},"Skip operations that match.",[55,462,463],{},[15,464,465],{},"[]",[37,467,468,476,479],{},[55,469,470],{},[20,471,473],{"href":472},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#override",[15,474,475],{},"override",[55,477,478],{},"Apply different options per pattern.",[55,480,481],{},[15,482,465],{},[37,484,485,493,496],{},[55,486,487],{},[20,488,490],{"href":489},"#resolver",[15,491,492],{},"resolver",[55,494,495],{},"Customize generated names and file paths.",[55,497,498],{},[15,499,500],{},"resolverVueQuery",[37,502,503,511,514],{},[55,504,505],{},[20,506,508],{"href":507},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#macros",[15,509,510],{},"macros",[55,512,513],{},"Rewrite AST nodes before printing.",[55,515,516],{},[15,517,465],{},[26,519,521],{"id":520},"option-details","Option details",[523,524,62],"h3",{"id":62},[11,526,527,528,530],{},"The client plugin the composables call. Kubb detects a lone client plugin, so set ",[15,529,62],{}," only when several are registered. Generation fails when none is.",[31,532,533,541],{},[34,534,535],{},[37,536,537,539],{},[40,538],{},[40,540],{},[50,542,543,553],{},[37,544,545,548],{},[55,546,547],{},"Type",[55,549,550],{},[15,551,552],{},"'fetch' | 'axios' | 'ky' | 'client'",[37,554,555,558],{},[55,556,557],{},"Required",[55,559,560],{},[15,561,108],{},[563,564,565,576,585,594],"field-group",{},[566,567,569,570,24],"field",{"name":568},"'fetch'","Calls ",[20,571,573],{"href":572},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-fetch",[15,574,575],{},"@kubb\u002Fplugin-fetch",[566,577,569,579,24],{"name":578},"'axios'",[20,580,582],{"href":581},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-axios",[15,583,584],{},"@kubb\u002Fplugin-axios",[566,586,569,588,24],{"name":587},"'ky'",[20,589,591],{"href":590},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-ky",[15,592,593],{},"@kubb\u002Fplugin-ky",[566,595,569,597,603,604,607,608,24],{"name":596},"'client'",[20,598,600],{"href":599},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-client",[15,601,602],{},"@kubb\u002Fplugin-client",". Your client module must also export ",[15,605,606],{},"RequestConfig"," and ",[15,609,610],{},"ResponseErrorConfig",[523,612,78],{"id":613},"returntype",[11,615,81],{},[31,617,618,626],{},[34,619,620],{},[37,621,622,624],{},[40,623],{},[40,625],{},[50,627,628,637,645],{},[37,629,630,632],{},[55,631,547],{},[55,633,634],{},[15,635,636],{},"'data' | 'full'",[37,638,639,641],{},[55,640,557],{},[55,642,643],{},[15,644,108],{},[37,646,647,649],{},[55,648,48],{},[55,650,651],{},[15,652,86],{},[563,654,655,658],{},[566,656,657],{"name":86},"Resolves to the success body.",[566,659,661,662,665,666,668,669,671,672,675],{"name":660},"'full'","Resolves to the client's whole ",[15,663,664],{},"RequestResult",", so a composable can read the status and headers. Needs a client plugin with ",[15,667,78],{}," ",[15,670,660],{}," or ",[15,673,674],{},"'plain'",", or generation fails.",[677,678,682],"pre",{"language":679,"code":680,"class":681},"typescript","pluginVueQuery({ returnType: 'full' })\n\n\u002F\u002F with integerType: 'number' on the adapter\nconst { data: result } = useGetPetById({ path: { petId: 1 } })\nconst etag = result.value?.response.headers.get('ETag')","highlights",[15,683,685,711,712,711,714,711,720,711,766],{"class":684},"language-typescript",[686,687,690,694,698,700,704,708],"span",{"class":688,"style":689},"line","display: inline",[686,691,693],{"style":692},"color:#6f42c1;--hls-dark:#b392f0","pluginVueQuery",[686,695,697],{"style":696},"color:#005cc5;--hls-dark:#79b8ff","({ ",[686,699,78],{"style":696},[686,701,703],{"style":702},"color:#d73a49;--hls-dark:#f97583",": ",[686,705,707],{"style":706},"color:#032f62;--hls-dark:#9ecbff","'full' ",[686,709,710],{"style":696},"})","\n",[686,713],{"class":688,"style":689},[686,715,716],{"class":688,"style":689},[686,717,719],{"style":718},"color:#6a737d;--hls-dark:#6a737d","\u002F\u002F with integerType: 'number' on the adapter",[686,721,722,725,728,731,733,737,740,743,746,748,751,753,755,758,760,763],{"class":688,"style":689},[686,723,724],{"style":702},"const ",[686,726,727],{"style":696},"{ ",[686,729,730],{"style":696},"data",[686,732,703],{"style":702},[686,734,736],{"style":735},"color:#24292e;--hls-dark:#e1e4e8","result ",[686,738,739],{"style":696},"} ",[686,741,742],{"style":702},"= ",[686,744,745],{"style":692},"useGetPetById",[686,747,697],{"style":696},[686,749,750],{"style":696},"path",[686,752,703],{"style":702},[686,754,727],{"style":696},[686,756,757],{"style":696},"petId",[686,759,703],{"style":702},[686,761,762],{"style":696},"1 ",[686,764,765],{"style":696},"} })",[686,767,768,770,773,775,778,780,783,786,789,791,794,796,799,802,805],{"class":688,"style":689},[686,769,724],{"style":702},[686,771,772],{"style":735},"etag ",[686,774,742],{"style":702},[686,776,777],{"style":735},"result",[686,779,24],{"style":702},[686,781,782],{"style":696},"value",[686,784,785],{"style":702},"?.",[686,787,788],{"style":696},"response",[686,790,24],{"style":702},[686,792,793],{"style":696},"headers",[686,795,24],{"style":702},[686,797,798],{"style":692},"get",[686,800,801],{"style":696},"(",[686,803,804],{"style":706},"'ETag'",[686,806,807],{"style":696},")",[523,809,96],{"id":96},[11,811,812,813,816,817,607,820,823,824,827,828,832],{},"Set ",[15,814,815],{},"true"," to generate ",[15,818,819],{},"useQuery",[15,821,822],{},"useMutation"," composables on top of the ",[15,825,826],{},"queryOptions"," and key helpers. ",[20,829,831],{"href":830},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-vue-query\u002Fguides\u002Fcalling-operations#what-each-plugin-generates","Call operations"," lists every export.",[31,834,835,843],{},[34,836,837],{},[37,838,839,841],{},[40,840],{},[40,842],{},[50,844,845,854,862],{},[37,846,847,849],{},[55,848,547],{},[55,850,851],{},[15,852,853],{},"boolean",[37,855,856,858],{},[55,857,557],{},[55,859,860],{},[15,861,108],{},[37,863,864,866],{},[55,865,48],{},[55,867,868],{},[15,869,108],{},[523,871,118],{"id":118},[11,873,874,875,877],{},"Which operations become queries and where TanStack Query is imported from. ",[15,876,108],{}," skips query output.",[31,879,880,888],{},[34,881,882],{},[37,883,884,886],{},[40,885],{},[40,887],{},[50,889,890,899,907],{},[37,891,892,894],{},[55,893,547],{},[55,895,896],{},[15,897,898],{},"Partial\u003CQuery> | false",[37,900,901,903],{},[55,902,557],{},[55,904,905],{},[15,906,108],{},[37,908,909,911],{},[55,910,48],{},[55,912,913],{},[15,914,126],{},[916,917,136],"h4",{"id":918},"querymethods",[11,920,921,922,925],{},"HTTP methods treated as queries. A method in neither list gets no helper, so keep ",[15,923,924],{},"'QUERY'"," when you replace it.",[31,927,928,936],{},[34,929,930],{},[37,931,932,934],{},[40,933],{},[40,935],{},[50,937,938,947,955],{},[37,939,940,942],{},[55,941,547],{},[55,943,944],{},[15,945,946],{},"Array\u003Cstring>",[37,948,949,951],{},[55,950,557],{},[55,952,953],{},[15,954,108],{},[37,956,957,959],{},[55,958,48],{},[55,960,961],{},[15,962,144],{},[916,964,154],{"id":965},"queryimportpath",[11,967,968,969,971,972,974,975,24],{},"Module for ",[15,970,826],{},", ",[15,973,819],{},", and their infinite variants, such as a wrapper that sets a default ",[15,976,977],{},"QueryClient",[31,979,980,988],{},[34,981,982],{},[37,983,984,986],{},[40,985],{},[40,987],{},[50,989,990,999,1007],{},[37,991,992,994],{},[55,993,547],{},[55,995,996],{},[15,997,998],{},"string",[37,1000,1001,1003],{},[55,1002,557],{},[55,1004,1005],{},[15,1006,108],{},[37,1008,1009,1011],{},[55,1010,48],{},[55,1012,1013],{},[15,1014,162],{},[523,1016,172],{"id":1017},"querykey",[11,1019,1020,1021,1023,1024,1027,1028,703,1031,671,1034,1037,1038,24],{},"Builds each query's ",[15,1022,172],{}," from the operation ",[15,1025,1026],{},"node"," and the ",[15,1029,1030],{},"variant",[15,1032,1033],{},"'query'",[15,1035,1036],{},"'infiniteQuery'",". The default key is ",[15,1039,1040],{},"[{ url, params }, query, body]",[31,1042,1043,1051],{},[34,1044,1045],{},[37,1046,1047,1049],{},[40,1048],{},[40,1050],{},[50,1052,1053,1062,1070],{},[37,1054,1055,1057],{},[55,1056,547],{},[55,1058,1059],{},[15,1060,1061],{},"(props: { node, casing, variant }) => Array\u003Cunknown>",[37,1063,1064,1066],{},[55,1065,557],{},[55,1067,1068],{},[15,1069,108],{},[37,1071,1072,1074],{},[55,1073,48],{},[55,1075,1076],{},[15,1077,183],{},[1079,1080,1082,1083,24],"blockquote",{"as":1081},"warning","Returned strings are copied into the generated code as written, so wrap a string literal in ",[15,1084,1085],{},"JSON.stringify(...)",[11,1087,1088,1089,24],{},"To extend the default, spread it. See ",[20,1090,1092],{"href":1091},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-vue-query\u002Fguides\u002Fquery-keys","TanStack Query keys",[677,1094,1096],{"language":679,"code":1095,"class":681},"import { queryKeyTransformer } from '@kubb\u002Fplugin-vue-query'\n\nqueryKey: (props) => [JSON.stringify('v2'), ...queryKeyTransformer(props)]",[15,1097,1098,711,1116,711,1118],{"class":684},[686,1099,1100,1103,1105,1108,1110,1113],{"class":688,"style":689},[686,1101,1102],{"style":702},"import ",[686,1104,727],{"style":696},[686,1106,1107],{"style":735},"queryKeyTransformer ",[686,1109,739],{"style":696},[686,1111,1112],{"style":702},"from ",[686,1114,1115],{"style":706},"'@kubb\u002Fplugin-vue-query'",[686,1117],{"class":688,"style":689},[686,1119,1120,1122,1124,1126,1129,1132,1135,1138,1141,1143,1146,1148,1151,1153,1155,1158,1160,1162,1164],{"class":688,"style":689},[686,1121,172],{"style":735},[686,1123,703],{"style":702},[686,1125,801],{"style":696},[686,1127,1128],{"style":735},"props",[686,1130,1131],{"style":696},") ",[686,1133,1134],{"style":702},"=> ",[686,1136,1137],{"style":696},"[",[686,1139,1140],{"style":696},"JSON",[686,1142,24],{"style":702},[686,1144,1145],{"style":692},"stringify",[686,1147,801],{"style":696},[686,1149,1150],{"style":706},"'v2'",[686,1152,807],{"style":696},[686,1154,971],{"style":702},[686,1156,1157],{"style":702},"...",[686,1159,183],{"style":692},[686,1161,801],{"style":696},[686,1163,1128],{"style":735},[686,1165,1166],{"style":696},")]",[11,1168,1169,1170,1172,1173,1175],{},"The generated helper also accepts optional ",[15,1171,793],{}," for operations with header parameters. To include them in the cache key, reference the ",[15,1174,793],{}," binding:",[677,1177,1179],{"language":679,"code":1178,"class":681},"queryKey: (props) => [\n ...queryKeyTransformer(props),\n ...(props.node.parameters?.some((param) => param.in === 'header') ? ['...(headers ? [headers] : [])'] : []),\n]",[15,1180,1181,711,1197,711,1215,711,1282],{"class":684},[686,1182,1183,1185,1187,1189,1191,1193,1195],{"class":688,"style":689},[686,1184,172],{"style":735},[686,1186,703],{"style":702},[686,1188,801],{"style":696},[686,1190,1128],{"style":735},[686,1192,1131],{"style":696},[686,1194,1134],{"style":702},[686,1196,1137],{"style":696},[686,1198,1199,1202,1204,1206,1208,1210,1212],{"class":688,"style":689},[686,1200,1201],{"style":696}," ",[686,1203,1157],{"style":702},[686,1205,183],{"style":692},[686,1207,801],{"style":696},[686,1209,1128],{"style":735},[686,1211,807],{"style":696},[686,1213,1214],{"style":702},",",[686,1216,1217,1219,1221,1223,1225,1227,1229,1231,1234,1236,1239,1242,1245,1247,1249,1251,1253,1256,1259,1262,1264,1267,1269,1272,1275,1277,1280],{"class":688,"style":689},[686,1218,1201],{"style":702},[686,1220,1157],{"style":702},[686,1222,801],{"style":696},[686,1224,1128],{"style":735},[686,1226,24],{"style":702},[686,1228,1026],{"style":696},[686,1230,24],{"style":702},[686,1232,1233],{"style":696},"parameters",[686,1235,785],{"style":702},[686,1237,1238],{"style":692},"some",[686,1240,1241],{"style":696},"((",[686,1243,1244],{"style":735},"param",[686,1246,1131],{"style":696},[686,1248,1134],{"style":702},[686,1250,1244],{"style":735},[686,1252,24],{"style":702},[686,1254,1255],{"style":696},"in ",[686,1257,1258],{"style":702},"=== ",[686,1260,1261],{"style":706},"'header'",[686,1263,1131],{"style":696},[686,1265,1266],{"style":702},"? ",[686,1268,1137],{"style":696},[686,1270,1271],{"style":706},"'...(headers ? [headers] : [])'",[686,1273,1274],{"style":696},"] ",[686,1276,703],{"style":702},[686,1278,1279],{"style":696},"[])",[686,1281,1214],{"style":702},[686,1283,1284],{"class":688,"style":689},[686,1285,1286],{"style":696},"]",[11,1288,1289],{},"Headers stay out of the default key. Include only response-varying values that are safe to store in caches and devtools.",[523,1291,193],{"id":193},[11,1293,1294,1295,1297],{},"Which operations become mutations and where TanStack Query is imported from. ",[15,1296,108],{}," skips mutation output.",[31,1299,1300,1308],{},[34,1301,1302],{},[37,1303,1304,1306],{},[40,1305],{},[40,1307],{},[50,1309,1310,1319,1327],{},[37,1311,1312,1314],{},[55,1313,547],{},[55,1315,1316],{},[15,1317,1318],{},"Partial\u003CMutation> | false",[37,1320,1321,1323],{},[55,1322,557],{},[55,1324,1325],{},[15,1326,108],{},[37,1328,1329,1331],{},[55,1330,48],{},[55,1332,1333],{},[15,1334,201],{},[916,1336,211],{"id":1337},"mutationmethods",[11,1339,1340,1341,1343],{},"HTTP methods treated as mutations. A method also in ",[15,1342,136],{}," stays a query.",[31,1345,1346,1354],{},[34,1347,1348],{},[37,1349,1350,1352],{},[40,1351],{},[40,1353],{},[50,1355,1356,1364,1372],{},[37,1357,1358,1360],{},[55,1359,547],{},[55,1361,1362],{},[15,1363,946],{},[37,1365,1366,1368],{},[55,1367,557],{},[55,1369,1370],{},[15,1371,108],{},[37,1373,1374,1376],{},[55,1375,48],{},[55,1377,1378],{},[15,1379,219],{},[916,1381,229],{"id":1382},"mutationimportpath",[11,1384,968,1385,1387,1388,24],{},[15,1386,822],{},". Only used with ",[20,1389,1390],{"href":93},[15,1391,1392],{},"hooks: true",[31,1394,1395,1403],{},[34,1396,1397],{},[37,1398,1399,1401],{},[40,1400],{},[40,1402],{},[50,1404,1405,1413,1421],{},[37,1406,1407,1409],{},[55,1408,547],{},[55,1410,1411],{},[15,1412,998],{},[37,1414,1415,1417],{},[55,1416,557],{},[55,1418,1419],{},[15,1420,108],{},[37,1422,1423,1425],{},[55,1424,48],{},[55,1426,1427],{},[15,1428,162],{},[523,1430,246],{"id":1431},"mutationkey",[11,1433,1434,1435,1437,1438,1442,1443,1037,1446,24],{},"Builds each mutation's ",[15,1436,246],{},", for batched invalidations. It works like ",[20,1439,1440],{"href":169},[15,1441,172],{}," with ",[15,1444,1445],{},"variant: 'mutation'",[15,1447,1448],{},"[{ url }]",[31,1450,1451,1459],{},[34,1452,1453],{},[37,1454,1455,1457],{},[40,1456],{},[40,1458],{},[50,1460,1461,1469,1477],{},[37,1462,1463,1465],{},[55,1464,547],{},[55,1466,1467],{},[15,1468,1061],{},[37,1470,1471,1473],{},[55,1472,557],{},[55,1474,1475],{},[15,1476,108],{},[37,1478,1479,1481],{},[55,1480,48],{},[55,1482,1483],{},[15,1484,256],{},[677,1486,1488],{"language":679,"code":1487,"class":681},"import { mutationKeyTransformer } from '@kubb\u002Fplugin-vue-query'\n\nmutationKey: (props) => [JSON.stringify('v2'), ...mutationKeyTransformer(props)]",[15,1489,1490,711,1505,711,1507],{"class":684},[686,1491,1492,1494,1496,1499,1501,1503],{"class":688,"style":689},[686,1493,1102],{"style":702},[686,1495,727],{"style":696},[686,1497,1498],{"style":735},"mutationKeyTransformer ",[686,1500,739],{"style":696},[686,1502,1112],{"style":702},[686,1504,1115],{"style":706},[686,1506],{"class":688,"style":689},[686,1508,1509,1511,1513,1515,1517,1519,1521,1523,1525,1527,1529,1531,1533,1535,1537,1539,1541,1543,1545],{"class":688,"style":689},[686,1510,246],{"style":735},[686,1512,703],{"style":702},[686,1514,801],{"style":696},[686,1516,1128],{"style":735},[686,1518,1131],{"style":696},[686,1520,1134],{"style":702},[686,1522,1137],{"style":696},[686,1524,1140],{"style":696},[686,1526,24],{"style":702},[686,1528,1145],{"style":692},[686,1530,801],{"style":696},[686,1532,1150],{"style":706},[686,1534,807],{"style":696},[686,1536,971],{"style":702},[686,1538,1157],{"style":702},[686,1540,256],{"style":692},[686,1542,801],{"style":696},[686,1544,1128],{"style":735},[686,1546,1166],{"style":696},[523,1548,266],{"id":266},[11,1550,1551,1552,607,1555,1558,1559,1563,1564,24],{},"Adds ",[15,1553,1554],{},"infiniteQueryOptions",[15,1556,1557],{},"useInfiniteQuery"," to each query operation that takes the ",[20,1560,1561],{"href":280},[15,1562,283],{}," parameter. Needs ",[20,1565,1566],{"href":93},[15,1567,1392],{},[31,1569,1570,1578],{},[34,1571,1572],{},[37,1573,1574,1576],{},[40,1575],{},[40,1577],{},[50,1579,1580,1589,1597],{},[37,1581,1582,1584],{},[55,1583,547],{},[55,1585,1586],{},[15,1587,1588],{},"Partial\u003CInfinite> | false",[37,1590,1591,1593],{},[55,1592,557],{},[55,1594,1595],{},[15,1596,108],{},[37,1598,1599,1601],{},[55,1600,48],{},[55,1602,1603],{},[15,1604,108],{},[1079,1606,812,1607,671,1610,1613,1614,1617,1618,24],{"as":1081},[15,1608,1609],{},"nextParam",[15,1611,1612],{},"getNextPageParam",". Otherwise ",[15,1615,1616],{},"hasNextPage"," never turns false for a non-array response. See ",[20,1619,1621],{"href":1620},"https:\u002F\u002Fkubb.dev\u002Fextensions\u002Fkubb-labs\u002Fplugin-vue-query\u002Fguides\u002Finfinite-queries#hasnextpage-never-turns-false","Infinite queries",[916,1623,283],{"id":1624},"infinitequeryparam",[11,1626,1627],{},"Query parameter that carries the page cursor.",[31,1629,1630,1638],{},[34,1631,1632],{},[37,1633,1634,1636],{},[40,1635],{},[40,1637],{},[50,1639,1640,1648,1656],{},[37,1641,1642,1644],{},[55,1643,547],{},[55,1645,1646],{},[15,1647,998],{},[37,1649,1650,1652],{},[55,1651,557],{},[55,1653,1654],{},[15,1655,108],{},[37,1657,1658,1660],{},[55,1659,48],{},[55,1661,1662],{},[15,1663,291],{},[916,1665,301],{"id":1666},"infiniteinitialpageparam",[11,1668,1669,1671],{},[15,1670,307],{}," of the first fetch. Give it the type of the query parameter.",[31,1673,1674,1682],{},[34,1675,1676],{},[37,1677,1678,1680],{},[40,1679],{},[40,1681],{},[50,1683,1684,1693,1701],{},[37,1685,1686,1688],{},[55,1687,547],{},[55,1689,1690],{},[15,1691,1692],{},"unknown",[37,1694,1695,1697],{},[55,1696,557],{},[55,1698,1699],{},[15,1700,108],{},[37,1702,1703,1705],{},[55,1704,48],{},[55,1706,1707],{},[15,1708,312],{},[916,1710,322],{"id":1711},"infinitenextparam",[11,1713,1714,1715,1718,1719,1722],{},"Path to the next cursor on the response, in dot notation (",[15,1716,1717],{},"'pagination.next.id'",") or array form (",[15,1720,1721],{},"['pagination', 'next', 'id']",").",[31,1724,1725,1733],{},[34,1726,1727],{},[37,1728,1729,1731],{},[40,1730],{},[40,1732],{},[50,1734,1735,1744,1752],{},[37,1736,1737,1739],{},[55,1738,547],{},[55,1740,1741],{},[15,1742,1743],{},"string | Array\u003Cstring> | null",[37,1745,1746,1748],{},[55,1747,557],{},[55,1749,1750],{},[15,1751,108],{},[37,1753,1754,1756],{},[55,1755,48],{},[55,1757,1758],{},[15,1759,330],{},[916,1761,340],{"id":1762},"infinitepreviousparam",[11,1764,1765,1766,24],{},"Path to the previous cursor, in the same forms as ",[15,1767,1609],{},[31,1769,1770,1778],{},[34,1771,1772],{},[37,1773,1774,1776],{},[40,1775],{},[40,1777],{},[50,1779,1780,1788,1796],{},[37,1781,1782,1784],{},[55,1783,547],{},[55,1785,1786],{},[15,1787,1743],{},[37,1789,1790,1792],{},[55,1791,557],{},[55,1793,1794],{},[15,1795,108],{},[37,1797,1798,1800],{},[55,1799,48],{},[55,1801,1802],{},[15,1803,330],{},[916,1805,357],{"id":1806},"infinitegetnextpageparam",[11,1808,1809,1810,1812,1813,1816],{},"Source of TanStack Query's ",[15,1811,1612],{},", for a next page you must compute. Pass a string, a function, or ",[15,1814,1815],{},"definePageParam",", which types the page and the page parameter.",[31,1818,1819,1827],{},[34,1820,1821],{},[37,1822,1823,1825],{},[40,1824],{},[40,1826],{},[50,1828,1829,1838,1846],{},[37,1830,1831,1833],{},[55,1832,547],{},[55,1834,1835],{},[15,1836,1837],{},"string | PageParamFn | null",[37,1839,1840,1842],{},[55,1841,557],{},[55,1843,1844],{},[15,1845,108],{},[37,1847,1848,1850],{},[55,1849,48],{},[55,1851,1852],{},[15,1853,330],{},[1079,1855,1857],{"as":1856},"note","Only the function's source is copied, so it cannot use variables from the config file.",[677,1859,1862],{"language":679,"filename":1860,"code":1861,"class":681},"kubb.config.ts","import { definePageParam, pluginVueQuery } from '@kubb\u002Fplugin-vue-query'\n\ntype PetsPage = { hasNext: boolean; number: number }\n\npluginVueQuery({\n hooks: true,\n infinite: {\n queryParam: 'page',\n getNextPageParam: definePageParam\u003CPetsPage, number>((lastPage) => (lastPage.hasNext ? lastPage.number + 1 : undefined)),\n },\n})",[15,1863,1864,711,1883,711,1885,711,1918,711,1920,711,1927,711,1939,711,1950,711,1965,711,2029,711,2037],{"class":684},[686,1865,1866,1868,1870,1872,1874,1877,1879,1881],{"class":688,"style":689},[686,1867,1102],{"style":702},[686,1869,727],{"style":696},[686,1871,1815],{"style":735},[686,1873,971],{"style":702},[686,1875,1876],{"style":735},"pluginVueQuery ",[686,1878,739],{"style":696},[686,1880,1112],{"style":702},[686,1882,1115],{"style":706},[686,1884],{"class":688,"style":689},[686,1886,1887,1890,1893,1895,1897,1900,1902,1904,1907,1910,1912,1915],{"class":688,"style":689},[686,1888,1889],{"style":702},"type ",[686,1891,1892],{"style":692},"PetsPage ",[686,1894,742],{"style":702},[686,1896,727],{"style":696},[686,1898,1899],{"style":696},"hasNext",[686,1901,703],{"style":735},[686,1903,853],{"style":692},[686,1905,1906],{"style":702},"; ",[686,1908,1909],{"style":696},"number",[686,1911,703],{"style":735},[686,1913,1914],{"style":692},"number ",[686,1916,1917],{"style":696},"}",[686,1919],{"class":688,"style":689},[686,1921,1922,1924],{"class":688,"style":689},[686,1923,693],{"style":692},[686,1925,1926],{"style":696},"({",[686,1928,1929,1931,1933,1935,1937],{"class":688,"style":689},[686,1930,1201],{"style":696},[686,1932,96],{"style":696},[686,1934,703],{"style":702},[686,1936,815],{"style":696},[686,1938,1214],{"style":702},[686,1940,1941,1943,1945,1947],{"class":688,"style":689},[686,1942,1201],{"style":702},[686,1944,266],{"style":696},[686,1946,703],{"style":702},[686,1948,1949],{"style":696},"{",[686,1951,1952,1955,1958,1960,1963],{"class":688,"style":689},[686,1953,1954],{"style":696}," ",[686,1956,1957],{"style":696},"queryParam",[686,1959,703],{"style":702},[686,1961,1962],{"style":706},"'page'",[686,1964,1214],{"style":702},[686,1966,1967,1969,1971,1973,1975,1978,1981,1983,1985,1988,1990,1993,1995,1997,1999,2001,2003,2006,2008,2010,2012,2014,2017,2019,2021,2024,2027],{"class":688,"style":689},[686,1968,1954],{"style":702},[686,1970,1612],{"style":696},[686,1972,703],{"style":702},[686,1974,1815],{"style":735},[686,1976,1977],{"style":702},"\u003C",[686,1979,1980],{"style":692},"PetsPage",[686,1982,971],{"style":702},[686,1984,1909],{"style":735},[686,1986,1987],{"style":702},">",[686,1989,1241],{"style":696},[686,1991,1992],{"style":735},"lastPage",[686,1994,1131],{"style":696},[686,1996,1134],{"style":702},[686,1998,801],{"style":696},[686,2000,1992],{"style":735},[686,2002,24],{"style":702},[686,2004,2005],{"style":696},"hasNext ",[686,2007,1266],{"style":702},[686,2009,1992],{"style":735},[686,2011,24],{"style":702},[686,2013,1914],{"style":696},[686,2015,2016],{"style":702},"+ ",[686,2018,762],{"style":696},[686,2020,703],{"style":702},[686,2022,2023],{"style":696},"undefined",[686,2025,2026],{"style":696},"))",[686,2028,1214],{"style":702},[686,2030,2031,2033,2035],{"class":688,"style":689},[686,2032,1201],{"style":702},[686,2034,1917],{"style":696},[686,2036,1214],{"style":702},[686,2038,2039],{"class":688,"style":689},[686,2040,710],{"style":696},[916,2042,374],{"id":2043},"infinitegetpreviouspageparam",[11,2045,1809,2046,2049,2050,24],{},[15,2047,2048],{},"getPreviousPageParam",", in the same forms as ",[15,2051,1612],{},[31,2053,2054,2062],{},[34,2055,2056],{},[37,2057,2058,2060],{},[40,2059],{},[40,2061],{},[50,2063,2064,2072,2080],{},[37,2065,2066,2068],{},[55,2067,547],{},[55,2069,2070],{},[15,2071,1837],{},[37,2073,2074,2076],{},[55,2075,557],{},[55,2077,2078],{},[15,2079,108],{},[37,2081,2082,2084],{},[55,2083,48],{},[55,2085,2086],{},[15,2087,330],{},[916,2089,391],{"id":2090},"infinitecursorparam",[11,2092,2093,2094,607,2096,2099],{},"Deprecated. Use ",[15,2095,1609],{},[15,2097,2098],{},"previousParam",". A top-level response field, not a dot path, that holds the cursor for both directions.",[31,2101,2102,2110],{},[34,2103,2104],{},[37,2105,2106,2108],{},[40,2107],{},[40,2109],{},[50,2111,2112,2121,2129],{},[37,2113,2114,2116],{},[55,2115,547],{},[55,2117,2118],{},[15,2119,2120],{},"string | null",[37,2122,2123,2125],{},[55,2124,557],{},[55,2126,2127],{},[15,2128,108],{},[37,2130,2131,2133],{},[55,2132,48],{},[55,2134,2135],{},[15,2136,330],{},[523,2138,492],{"id":492},[11,2140,2141,2142,2144,2145,2150,2151,2153],{},"Overrides generated names. Members you leave out keep ",[15,2143,500],{},". See ",[20,2146,2148],{"href":2147},"https:\u002F\u002Fkubb.dev\u002Fdocs\u002F5.x\u002Freference\u002Fplugin-options#resolver",[15,2149,492],{}," for the shared members. Pass an array to merge several patches over ",[15,2152,500],{},", left to right.",[31,2155,2156,2164],{},[34,2157,2158],{},[37,2159,2160,2162],{},[40,2161],{},[40,2163],{},[50,2165,2166,2175],{},[37,2167,2168,2170],{},[55,2169,547],{},[55,2171,2172],{},[15,2173,2174],{},"ResolverInput\u003CResolverVueQuery>",[37,2176,2177,2179],{},[55,2178,557],{},[55,2180,2181],{},[15,2182,108],{},[2184,2185,2187],"code-collapse",{"name":2186},"ResolverVueQuery patch members",[677,2188,2191],{"language":679,"filename":2189,"code":2190,"class":681},"Partial override","type ResolverVueQueryPatch = {\n \u002F\u002F plus the shared name, file, and imports members\n query?: {\n name?(node: OperationNode): string \u002F\u002F 'useGetPetById'\n optionsName?(node: OperationNode): string \u002F\u002F 'getPetByIdQueryOptions'\n keyName?(node: OperationNode): string \u002F\u002F 'getPetByIdQueryKey'\n keyTypeName?(node: OperationNode): string \u002F\u002F 'GetPetByIdQueryKey'\n }\n \u002F\u002F same members, with an Infinite suffix\n infiniteQuery?: ResolverVueQueryPatch['query']\n mutation?: {\n name?(node: OperationNode): string \u002F\u002F 'useUpdatePet'\n keyName?(node: OperationNode): string \u002F\u002F 'updatePetMutationKey'\n }\n}",[15,2192,2193,711,2204,711,2211,711,2224,711,2252,711,2278,711,2304,711,2330,711,2336,711,2343,711,2362,711,2374,711,2399,711,2424,711,2430],{"class":684},[686,2194,2195,2197,2200,2202],{"class":688,"style":689},[686,2196,1889],{"style":702},[686,2198,2199],{"style":692},"ResolverVueQueryPatch ",[686,2201,742],{"style":702},[686,2203,1949],{"style":696},[686,2205,2206,2208],{"class":688,"style":689},[686,2207,1201],{"style":696},[686,2209,2210],{"style":718},"\u002F\u002F plus the shared name, file, and imports members",[686,2212,2213,2215,2217,2220,2222],{"class":688,"style":689},[686,2214,1201],{"style":718},[686,2216,118],{"style":696},[686,2218,2219],{"style":735},"?",[686,2221,703],{"style":702},[686,2223,1949],{"style":696},[686,2225,2226,2228,2231,2233,2235,2237,2239,2242,2244,2246,2249],{"class":688,"style":689},[686,2227,1954],{"style":696},[686,2229,2230],{"style":735},"name",[686,2232,2219],{"style":702},[686,2234,801],{"style":696},[686,2236,1026],{"style":735},[686,2238,703],{"style":735},[686,2240,2241],{"style":692},"OperationNode",[686,2243,807],{"style":696},[686,2245,703],{"style":735},[686,2247,2248],{"style":692},"string ",[686,2250,2251],{"style":718},"\u002F\u002F 'useGetPetById'",[686,2253,2254,2256,2259,2261,2263,2265,2267,2269,2271,2273,2275],{"class":688,"style":689},[686,2255,1954],{"style":718},[686,2257,2258],{"style":735},"optionsName",[686,2260,2219],{"style":702},[686,2262,801],{"style":696},[686,2264,1026],{"style":735},[686,2266,703],{"style":735},[686,2268,2241],{"style":692},[686,2270,807],{"style":696},[686,2272,703],{"style":735},[686,2274,2248],{"style":692},[686,2276,2277],{"style":718},"\u002F\u002F 'getPetByIdQueryOptions'",[686,2279,2280,2282,2285,2287,2289,2291,2293,2295,2297,2299,2301],{"class":688,"style":689},[686,2281,1954],{"style":718},[686,2283,2284],{"style":735},"keyName",[686,2286,2219],{"style":702},[686,2288,801],{"style":696},[686,2290,1026],{"style":735},[686,2292,703],{"style":735},[686,2294,2241],{"style":692},[686,2296,807],{"style":696},[686,2298,703],{"style":735},[686,2300,2248],{"style":692},[686,2302,2303],{"style":718},"\u002F\u002F 'getPetByIdQueryKey'",[686,2305,2306,2308,2311,2313,2315,2317,2319,2321,2323,2325,2327],{"class":688,"style":689},[686,2307,1954],{"style":718},[686,2309,2310],{"style":735},"keyTypeName",[686,2312,2219],{"style":702},[686,2314,801],{"style":696},[686,2316,1026],{"style":735},[686,2318,703],{"style":735},[686,2320,2241],{"style":692},[686,2322,807],{"style":696},[686,2324,703],{"style":735},[686,2326,2248],{"style":692},[686,2328,2329],{"style":718},"\u002F\u002F 'GetPetByIdQueryKey'",[686,2331,2332,2334],{"class":688,"style":689},[686,2333,1201],{"style":718},[686,2335,1917],{"style":696},[686,2337,2338,2340],{"class":688,"style":689},[686,2339,1201],{"style":696},[686,2341,2342],{"style":718},"\u002F\u002F same members, with an Infinite suffix",[686,2344,2345,2347,2350,2353,2356,2358,2360],{"class":688,"style":689},[686,2346,1201],{"style":718},[686,2348,2349],{"style":735},"infiniteQuery",[686,2351,2352],{"style":735},"?: ",[686,2354,2355],{"style":692},"ResolverVueQueryPatch",[686,2357,1137],{"style":696},[686,2359,1033],{"style":706},[686,2361,1286],{"style":696},[686,2363,2364,2366,2368,2370,2372],{"class":688,"style":689},[686,2365,1201],{"style":696},[686,2367,193],{"style":735},[686,2369,2219],{"style":735},[686,2371,703],{"style":702},[686,2373,1949],{"style":696},[686,2375,2376,2378,2380,2382,2384,2386,2388,2390,2392,2394,2396],{"class":688,"style":689},[686,2377,1954],{"style":696},[686,2379,2230],{"style":735},[686,2381,2219],{"style":702},[686,2383,801],{"style":696},[686,2385,1026],{"style":735},[686,2387,703],{"style":735},[686,2389,2241],{"style":692},[686,2391,807],{"style":696},[686,2393,703],{"style":735},[686,2395,2248],{"style":692},[686,2397,2398],{"style":718},"\u002F\u002F 'useUpdatePet'",[686,2400,2401,2403,2405,2407,2409,2411,2413,2415,2417,2419,2421],{"class":688,"style":689},[686,2402,1954],{"style":718},[686,2404,2284],{"style":735},[686,2406,2219],{"style":702},[686,2408,801],{"style":696},[686,2410,1026],{"style":735},[686,2412,703],{"style":735},[686,2414,2241],{"style":692},[686,2416,807],{"style":696},[686,2418,703],{"style":735},[686,2420,2248],{"style":692},[686,2422,2423],{"style":718},"\u002F\u002F 'updatePetMutationKey'",[686,2425,2426,2428],{"class":688,"style":689},[686,2427,1201],{"style":718},[686,2429,1917],{"style":696},[686,2431,2432],{"class":688,"style":689},[686,2433,1917],{"style":696},{"title":2435,"searchDepth":2436,"depth":2436,"links":2437},"",5,[2438,2440],{"id":28,"depth":2439,"text":29},2,{"id":520,"depth":2439,"text":521,"children":2441},[2442,2444,2445,2446,2451,2452,2456,2457,2466],{"id":62,"depth":2443,"text":62},3,{"id":613,"depth":2443,"text":78},{"id":96,"depth":2443,"text":96},{"id":118,"depth":2443,"text":118,"children":2447},[2448,2450],{"id":918,"depth":2449,"text":136},4,{"id":965,"depth":2449,"text":154},{"id":1017,"depth":2443,"text":172},{"id":193,"depth":2443,"text":193,"children":2453},[2454,2455],{"id":1337,"depth":2449,"text":211},{"id":1382,"depth":2449,"text":229},{"id":1431,"depth":2443,"text":246},{"id":266,"depth":2443,"text":266,"children":2458},[2459,2460,2461,2462,2463,2464,2465],{"id":1624,"depth":2449,"text":283},{"id":1666,"depth":2449,"text":301},{"id":1711,"depth":2449,"text":322},{"id":1762,"depth":2449,"text":340},{"id":1806,"depth":2449,"text":357},{"id":2043,"depth":2449,"text":374},{"id":2090,"depth":2449,"text":391},{"id":492,"depth":2443,"text":492},"\u002Fextensions\u002Fkubb-labs\u002Fplugin-vue-query\u002Foptions",1795727682502,"1b64b1eb-29b7-4f90-ad41-6f24721e1669"]