@directus/app 9.5.2 → 9.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (833) hide show
  1. package/dist/assets/@directus_extensions-sdk.27762347.entry.js +1 -0
  2. package/dist/assets/active-line.e9818888.js +1 -0
  3. package/dist/assets/activity-log.85daf7a4.js +1 -0
  4. package/dist/assets/activity.d0569cd2.js +80 -0
  5. package/dist/assets/af.b15e3fdc.js +1 -0
  6. package/dist/assets/apl.8277d513.js +1 -0
  7. package/dist/assets/app-overview.6445a201.svg +86 -0
  8. package/dist/assets/ar-dz.5481d0db.js +1 -0
  9. package/dist/assets/ar-kw.77cb7412.js +1 -0
  10. package/dist/assets/ar-ly.d2852686.js +1 -0
  11. package/dist/assets/ar-ma.6b2052c4.js +1 -0
  12. package/dist/assets/ar-sa.0ce4896b.js +1 -0
  13. package/dist/assets/ar-tn.0075ee1e.js +1 -0
  14. package/dist/assets/ar.01c8813a.js +1 -0
  15. package/dist/assets/asciiarmor.c653ded3.js +1 -0
  16. package/dist/assets/asn.1.bd4bac01.js +1 -0
  17. package/dist/assets/asterisk.dd04622f.js +1 -0
  18. package/dist/assets/authentication.60521067.js +73 -0
  19. package/dist/assets/autorefresh.fcc43bee.js +1 -0
  20. package/dist/assets/aws.76e96460.js +1 -0
  21. package/dist/assets/az.839e5437.js +1 -0
  22. package/dist/assets/backing-directus.64e6ef1f.js +1 -0
  23. package/dist/assets/bg.71bbc37d.js +1 -0
  24. package/dist/assets/bn.28eb3677.js +1 -0
  25. package/dist/assets/brainfuck.88714c3d.js +1 -0
  26. package/dist/assets/bs.b0570362.js +1 -0
  27. package/dist/assets/ca.d17b0b48.js +1 -0
  28. package/dist/assets/cli.9b6582a5.js +18 -0
  29. package/dist/assets/cli.c91d5269.js +4 -0
  30. package/dist/assets/clike.a23032a9.js +1 -0
  31. package/dist/assets/clojure.77bd41dc.js +1 -0
  32. package/dist/assets/cloudron.52aa95ca.js +1 -0
  33. package/dist/assets/cmake.d6a02425.js +1 -0
  34. package/dist/assets/cobol.12648bf5.js +1 -0
  35. package/dist/assets/codebase-overview.8d89aaef.js +1 -0
  36. package/dist/assets/coffeescript.c039cbb4.js +1 -0
  37. package/dist/assets/collections.dc3b49e6.js +106 -0
  38. package/dist/assets/commonlisp.f2084a1d.js +1 -0
  39. package/dist/assets/config-options.4f623f71.js +138 -0
  40. package/dist/assets/content-collections.ac942019.js +1 -0
  41. package/dist/assets/content-items.5657df9d.js +1 -0
  42. package/dist/assets/content.3725ebd8.js +1 -0
  43. package/dist/assets/creating-extensions.26964364.js +11 -0
  44. package/dist/assets/crystal.67f22611.js +1 -0
  45. package/dist/assets/cs.23d06f43.js +1 -0
  46. package/dist/assets/css.7d0bb97e.js +1 -0
  47. package/dist/assets/cy.3b5a8132.js +1 -0
  48. package/dist/assets/cypher.79c6a384.js +4 -0
  49. package/dist/assets/d.9f3975bc.js +1 -0
  50. package/dist/assets/da.18bc0ec4.js +1 -0
  51. package/dist/assets/dart.2413f6a0.js +1 -0
  52. package/dist/assets/data-model.d6b27512.js +1 -0
  53. package/dist/assets/de-DE.7cd8edca.js +1 -0
  54. package/dist/assets/de-at.a1f7dd1d.js +1 -0
  55. package/dist/assets/de.a8c4aad1.js +1 -0
  56. package/dist/assets/diff.e65cc025.js +1 -0
  57. package/dist/assets/digitalocean-app-platform.1a64c7ed.js +3 -0
  58. package/dist/assets/displays.3a79683e.js +49 -0
  59. package/dist/assets/django.9bb11ca6.js +1 -0
  60. package/dist/assets/docker.790722c7.js +82 -0
  61. package/dist/assets/dockerfile.6abd4f99.js +1 -0
  62. package/dist/assets/documentation.d06bab23.js +1 -0
  63. package/dist/assets/dtd.658f232c.js +1 -0
  64. package/dist/assets/dylan.bb250d49.js +1 -0
  65. package/dist/assets/ebnf.7167c45f.js +1 -0
  66. package/dist/assets/ecl.faa546da.js +1 -0
  67. package/dist/assets/eiffel.bdc2ca84.js +1 -0
  68. package/dist/assets/el.fd48dbad.js +1 -0
  69. package/dist/assets/elm.fc9c507a.js +1 -0
  70. package/dist/assets/email-templates.79e5e2ca.js +2 -0
  71. package/dist/assets/en-au.1268cbf1.js +1 -0
  72. package/dist/assets/en-gb.0165e0db.js +1 -0
  73. package/dist/assets/en-nz.01361cd3.js +1 -0
  74. package/dist/assets/endpoints.04e33b95.js +27 -0
  75. package/dist/assets/eo.7ba085ab.js +1 -0
  76. package/dist/assets/erlang.63538b7a.js +1 -0
  77. package/dist/assets/es-CL.e4d38d3f.js +1 -0
  78. package/dist/assets/es-ES.5ed14f46.js +1 -0
  79. package/dist/assets/es-us.8d0a5dcc.js +1 -0
  80. package/dist/assets/es.33209895.js +1 -0
  81. package/dist/assets/et.d879b698.js +1 -0
  82. package/dist/assets/eu.bfb2c22e.js +1 -0
  83. package/dist/assets/extensions.771f89ad.js +12 -0
  84. package/dist/assets/fa.d9f705ee.js +1 -0
  85. package/dist/assets/factor.9f9f4abb.js +1 -0
  86. package/dist/assets/faq.0cd56497.js +2 -0
  87. package/dist/assets/fcl.f9869b95.js +1 -0
  88. package/dist/assets/fi.5a2e9662.js +1 -0
  89. package/dist/assets/fields.a96528be.js +135 -0
  90. package/dist/assets/file-library.680d5840.js +1 -0
  91. package/dist/assets/files.f21bf259.js +187 -0
  92. package/dist/assets/filter-rules.e04beb8f.js +60 -0
  93. package/dist/assets/folders.c3b0e112.js +132 -0
  94. package/dist/assets/forth.c127aeeb.js +1 -0
  95. package/dist/assets/fortran.971bd1fd.js +1 -0
  96. package/dist/assets/fr-ca.cd8c81b9.js +1 -0
  97. package/dist/assets/fr-ch.d9522a23.js +1 -0
  98. package/dist/assets/fr.56b3c7ac.js +1 -0
  99. package/dist/assets/gas.bf045d26.js +1 -0
  100. package/dist/assets/gcp.678c6445.js +60 -0
  101. package/dist/assets/gfm.4b4dba16.js +1 -0
  102. package/dist/assets/gherkin.28e46387.js +1 -0
  103. package/dist/assets/github-ci.23ecb36d.js +2 -0
  104. package/dist/assets/gl.addde635.js +1 -0
  105. package/dist/assets/glossary.3288b825.js +1 -0
  106. package/dist/assets/go.37f05be2.js +1 -0
  107. package/dist/assets/groovy.caed6356.js +1 -0
  108. package/dist/assets/haml.6d0c1fb8.js +1 -0
  109. package/dist/assets/handlebars.29c511b2.js +1 -0
  110. package/dist/assets/haskell-literate.212af0aa.js +1 -0
  111. package/dist/assets/haskell.701a5e5e.js +1 -0
  112. package/dist/assets/haxe.0989c172.js +1 -0
  113. package/dist/assets/he.343cc1d8.js +1 -0
  114. package/dist/assets/hi.b7726273.js +1 -0
  115. package/dist/assets/hooks.0082d595.js +60 -0
  116. package/dist/assets/hr-HR.17ae4a7f.js +1 -0
  117. package/dist/assets/hr.2709fc3c.js +1 -0
  118. package/dist/assets/htmlembedded.4af5b785.js +1 -0
  119. package/dist/assets/htmlmixed.a51c7358.js +1 -0
  120. package/dist/assets/http.d4f19e67.js +1 -0
  121. package/dist/assets/hu.ec48b74d.js +1 -0
  122. package/dist/assets/hy-am.30c58054.js +1 -0
  123. package/dist/assets/id-ID.730079b9.js +1 -0
  124. package/dist/assets/id.08bda718.js +1 -0
  125. package/dist/assets/idl.eeda14ab.js +1 -0
  126. package/dist/assets/iis.330abbee.js +24 -0
  127. package/dist/assets/index.071a9c3a.js +1 -0
  128. package/dist/assets/index.0d6f77da.js +1 -0
  129. package/dist/assets/index.0dddca1a.js +1 -0
  130. package/dist/assets/index.10548c32.js +1 -0
  131. package/dist/assets/index.10925874.js +1 -0
  132. package/dist/assets/index.146fba14.js +1 -0
  133. package/dist/assets/index.14876b51.js +1 -0
  134. package/dist/assets/index.1806be1f.js +1 -0
  135. package/dist/assets/index.205e1dad.js +1 -0
  136. package/dist/assets/index.326bb798.js +1 -0
  137. package/dist/assets/index.3677702f.css +1 -0
  138. package/dist/assets/index.37cffa7d.js +1 -0
  139. package/dist/assets/index.3ae28004.js +1 -0
  140. package/dist/assets/index.3fc14165.js +1 -0
  141. package/dist/assets/index.415d63b7.js +1 -0
  142. package/dist/assets/index.41b6a5ee.js +1 -0
  143. package/dist/assets/index.4aa69d22.js +1 -0
  144. package/dist/assets/index.4b8ae547.js +1 -0
  145. package/dist/assets/index.4e0946be.js +1 -0
  146. package/dist/assets/index.4f13b227.js +1 -0
  147. package/dist/assets/index.51574b0e.js +1 -0
  148. package/dist/assets/index.51882a25.js +1 -0
  149. package/dist/assets/index.51e43e6a.js +1 -0
  150. package/dist/assets/index.525f3896.js +1 -0
  151. package/dist/assets/index.5e04a811.js +1 -0
  152. package/dist/assets/index.5ea5bfa5.js +1 -0
  153. package/dist/assets/index.60c6d36d.js +1 -0
  154. package/dist/assets/index.625e71a7.js +1 -0
  155. package/dist/assets/index.6260e453.js +1 -0
  156. package/dist/assets/index.62fd2872.js +1 -0
  157. package/dist/assets/index.68a087d1.js +1 -0
  158. package/dist/assets/index.6e92d608.js +1 -0
  159. package/dist/assets/index.73b63f0e.js +1 -0
  160. package/dist/assets/index.7472dc76.js +1 -0
  161. package/dist/assets/index.76e3ec1d.js +1 -0
  162. package/dist/assets/index.7a271708.js +1 -0
  163. package/dist/assets/index.7a98f173.js +1 -0
  164. package/dist/assets/index.7badc515.js +1 -0
  165. package/dist/assets/index.7cfb4e9f.js +1 -0
  166. package/dist/assets/index.7e95afe7.js +1 -0
  167. package/dist/assets/index.8dee4a35.js +1 -0
  168. package/dist/assets/index.8fe44535.js +1 -0
  169. package/dist/assets/index.90abf85c.js +1 -0
  170. package/dist/assets/index.913c3bcb.js +1 -0
  171. package/dist/assets/index.93380fe6.js +1 -0
  172. package/dist/assets/index.98841743.js +1 -0
  173. package/dist/assets/index.9c5d89ae.js +1 -0
  174. package/dist/assets/index.a002e680.js +1 -0
  175. package/dist/assets/index.a09c6735.js +1 -0
  176. package/dist/assets/index.a2862ce9.js +1 -0
  177. package/dist/assets/index.a2ff10ff.js +1 -0
  178. package/dist/assets/index.a6e1eaac.js +1 -0
  179. package/dist/assets/index.a97e922c.js +1 -0
  180. package/dist/assets/index.ac67a5f3.js +1 -0
  181. package/dist/assets/index.b3b7693f.js +1 -0
  182. package/dist/assets/index.b6a98b96.js +1 -0
  183. package/dist/assets/index.c208f0fd.js +1 -0
  184. package/dist/assets/index.c440596f.js +1 -0
  185. package/dist/assets/index.c922886d.js +1 -0
  186. package/dist/assets/index.caf343d8.js +1 -0
  187. package/dist/assets/index.cd1e1e40.js +1 -0
  188. package/dist/assets/index.cd89a422.js +1 -0
  189. package/dist/assets/index.cf683d8c.js +1 -0
  190. package/dist/assets/index.cfae1a8b.js +1 -0
  191. package/dist/assets/index.d03f4b8b.js +1 -0
  192. package/dist/assets/index.d0b4ff86.js +1 -0
  193. package/dist/assets/index.d4834d17.js +1 -0
  194. package/dist/assets/index.d74fe2b2.js +26 -0
  195. package/dist/assets/index.d91c6632.css +1 -0
  196. package/dist/assets/index.df4b8c75.js +1 -0
  197. package/dist/assets/index.e041364c.js +1 -0
  198. package/dist/assets/index.e787f33f.js +1 -0
  199. package/dist/assets/index.e7be0f01.js +1 -0
  200. package/dist/assets/index.e7e6179d.js +1 -0
  201. package/dist/assets/index.e96faed1.js +1 -0
  202. package/dist/assets/index.eacd68de.js +1 -0
  203. package/dist/assets/index.f10b280f.js +1 -0
  204. package/dist/assets/index.f3c9fe2a.js +1 -0
  205. package/dist/assets/index.f52f3569.js +1 -0
  206. package/dist/assets/index.f6a253b6.js +1 -0
  207. package/dist/assets/index.f7322f54.entry.js +531 -0
  208. package/dist/assets/index.fc02ea02.js +1 -0
  209. package/dist/assets/index.fc550611.js +1 -0
  210. package/dist/assets/index.ff32b7e4.js +1 -0
  211. package/dist/assets/input-rich-text-html.12cfd6d6.js +239 -0
  212. package/dist/assets/input-rich-text-html.1d6673ff.css +1 -0
  213. package/dist/assets/insights.7e720aaa.js +1 -0
  214. package/dist/assets/installation.ac1195fb.js +1 -0
  215. package/dist/assets/interfaces.85a891f8.js +46 -0
  216. package/dist/assets/introduction.14ab0709.js +1 -0
  217. package/dist/assets/introduction.16cf3345.js +1 -0
  218. package/dist/assets/introduction.d2c3a9b1.js +4 -0
  219. package/dist/assets/introduction.f1b59346.js +90 -0
  220. package/dist/assets/is.b36ebc71.js +1 -0
  221. package/dist/assets/it-IT.c887dd87.js +1 -0
  222. package/dist/assets/it.3cadf6ad.js +1 -0
  223. package/dist/assets/items.ce1274b9.js +136 -0
  224. package/dist/assets/ja.df6f4b08.js +1 -0
  225. package/dist/assets/javascript-hint.2d9f90b8.js +1 -0
  226. package/dist/assets/javascript.aa968f57.js +1 -0
  227. package/dist/assets/jinja2.36c237ca.js +1 -0
  228. package/dist/assets/jsonlint.e8823cb8.js +8 -0
  229. package/dist/assets/jsx.197dce43.js +1 -0
  230. package/dist/assets/julia.c102dfd3.js +1 -0
  231. package/dist/assets/ka.805bf11c.js +1 -0
  232. package/dist/assets/kk.a6e57d44.js +1 -0
  233. package/dist/assets/ko.08fe68a9.js +1 -0
  234. package/dist/assets/layouts.ff5441c6.js +54 -0
  235. package/dist/assets/lb.e01f5df5.js +1 -0
  236. package/dist/assets/livescript.21105db8.js +1 -0
  237. package/dist/assets/localization.27364f2b.js +1 -0
  238. package/dist/assets/lt.0d291ae5.js +1 -0
  239. package/dist/assets/lua.1d09048d.js +1 -0
  240. package/dist/assets/lv.00399f94.js +1 -0
  241. package/dist/assets/manual.63f9c5d3.js +10 -0
  242. package/dist/assets/mark-selection.48a3dbe8.js +1 -0
  243. package/dist/assets/match-highlighter.0df5b4f1.js +1 -0
  244. package/dist/assets/mathematica.2fe90942.js +1 -0
  245. package/dist/assets/mbox.5cb538b6.js +1 -0
  246. package/dist/assets/migrations.1bc30d80.js +19 -0
  247. package/dist/assets/mirc.96079655.js +1 -0
  248. package/dist/assets/mk.5d734698.js +1 -0
  249. package/dist/assets/mllike.7a80c37b.js +1 -0
  250. package/dist/assets/mn-MN.3b64cd12.js +1 -0
  251. package/dist/assets/modelica.f87d9a24.js +1 -0
  252. package/dist/assets/modules.dfe4aa4e.js +69 -0
  253. package/dist/assets/ms.d459f765.js +1 -0
  254. package/dist/assets/mscgen.1e50688f.js +1 -0
  255. package/dist/assets/multiplex.90c2363b.js +3 -0
  256. package/dist/assets/mumps.aa5704c7.js +1 -0
  257. package/dist/assets/nb.a3febc82.js +1 -0
  258. package/dist/assets/ne.afdfe3bf.js +1 -0
  259. package/dist/assets/nginx.f40bad27.js +1 -0
  260. package/dist/assets/nl.12cdd5b8.js +1 -0
  261. package/dist/assets/nn.535723b4.js +1 -0
  262. package/dist/assets/notifications.20bde137.js +153 -0
  263. package/dist/assets/nsis.99bbd756.js +1 -0
  264. package/dist/assets/ntriples.2e5020c8.js +1 -0
  265. package/dist/assets/octave.ee1a6e70.js +1 -0
  266. package/dist/assets/overlay.8ec15b1b.js +1 -0
  267. package/dist/assets/overview.01ff825c.js +1 -0
  268. package/dist/assets/overview.3a8bd973.js +1 -0
  269. package/dist/assets/oz.9fbab86e.js +1 -0
  270. package/dist/assets/panels.84ef6a84.js +65 -0
  271. package/dist/assets/pascal.c44d5320.js +1 -0
  272. package/dist/assets/pegjs.b32c7ead.js +1 -0
  273. package/dist/assets/perl.2729cf31.js +1 -0
  274. package/dist/assets/permissions.47d65b17.js +178 -0
  275. package/dist/assets/php.d6a66d9d.js +1 -0
  276. package/dist/assets/pig.47fa025c.js +1 -0
  277. package/dist/assets/pinia.f515d45e.entry.js +1 -0
  278. package/dist/assets/pl-PL.c389638f.js +1 -0
  279. package/dist/assets/pl.86440e6e.js +1 -0
  280. package/dist/assets/plesk.0483440c.js +27 -0
  281. package/dist/assets/powershell.99a55b30.js +1 -0
  282. package/dist/assets/presets-bookmarks.82f3f9ef.js +1 -0
  283. package/dist/assets/presets.6ace4e86.js +164 -0
  284. package/dist/assets/project-settings.b6942d32.js +1 -0
  285. package/dist/assets/properties.1055d639.js +1 -0
  286. package/dist/assets/protobuf.4b3eb57a.js +1 -0
  287. package/dist/assets/pt-br.cc4b694f.js +1 -0
  288. package/dist/assets/pt.73886c02.js +1 -0
  289. package/dist/assets/pug.000c324e.js +1 -0
  290. package/dist/assets/puppet.25546d2c.js +1 -0
  291. package/dist/assets/python.8450efc6.js +1 -0
  292. package/dist/assets/q.0ad76756.js +1 -0
  293. package/dist/assets/query.d7cae937.js +152 -0
  294. package/dist/assets/quickstart.7dce1be9.js +20 -0
  295. package/dist/assets/r.2e3f1373.js +1 -0
  296. package/dist/assets/relations.143e59a4.js +115 -0
  297. package/dist/assets/relationships.8a6a55ea.js +55 -0
  298. package/dist/assets/revisions.4a380f31.js +40 -0
  299. package/dist/assets/ro-RO.97f46d61.js +1 -0
  300. package/dist/assets/ro.c45ba3d9.js +1 -0
  301. package/dist/assets/roles.9a467f51.js +171 -0
  302. package/dist/assets/rpm.0f41e62d.js +1 -0
  303. package/dist/assets/rst.a4f3ba5f.js +1 -0
  304. package/dist/assets/ru-RU.08ba5d6b.js +1 -0
  305. package/dist/assets/ru.638f4fa4.js +1 -0
  306. package/dist/assets/ruby.5cb0ba51.js +1 -0
  307. package/dist/assets/running-locally.b2de8da4.js +28 -0
  308. package/dist/assets/rust.b7493419.js +1 -0
  309. package/dist/assets/sas.0cd3626d.js +1 -0
  310. package/dist/assets/sass.cd694623.js +1 -0
  311. package/dist/assets/scheme.3aaec68e.js +1 -0
  312. package/dist/assets/sdk.accde57c.js +355 -0
  313. package/dist/assets/security.c7ae152d.js +1 -0
  314. package/dist/assets/server.4707997f.js +114 -0
  315. package/dist/assets/settings.16ae0506.js +51 -0
  316. package/dist/assets/settings.d10a56a2.js +1 -0
  317. package/dist/assets/shell.330154a1.js +1 -0
  318. package/dist/assets/show-hint.08ce5b35.js +1 -0
  319. package/dist/assets/sieve.b4c7728e.js +1 -0
  320. package/dist/assets/simple.8763f2ec.js +1 -0
  321. package/dist/assets/sk.883343ad.js +1 -0
  322. package/dist/assets/sl.9c1d7271.js +1 -0
  323. package/dist/assets/slim.9ea94231.js +1 -0
  324. package/dist/assets/smalltalk.8b61c119.js +1 -0
  325. package/dist/assets/smarty.706bb089.js +1 -0
  326. package/dist/assets/solr.67c7ee7a.js +1 -0
  327. package/dist/assets/soy.be473048.js +1 -0
  328. package/dist/assets/sparql.51a25620.js +1 -0
  329. package/dist/assets/spreadsheet.fcb893e8.js +1 -0
  330. package/dist/assets/sq.94f802c2.js +1 -0
  331. package/dist/assets/sql.4dc1acac.js +1 -0
  332. package/dist/assets/sr-cyrl.cf2bde33.js +1 -0
  333. package/dist/assets/sr.ae9ed7f6.js +1 -0
  334. package/dist/assets/sso.e2f0df9a.js +22 -0
  335. package/dist/assets/stex.84747908.js +1 -0
  336. package/dist/assets/stylus.7b96e081.js +1 -0
  337. package/dist/assets/support.0b9bd95f.js +1 -0
  338. package/dist/assets/sv.4d9818be.js +1 -0
  339. package/dist/assets/swift.79848d55.js +1 -0
  340. package/dist/assets/ta-in.58b9457c.js +1 -0
  341. package/dist/assets/tcl.1970681b.js +1 -0
  342. package/dist/assets/textile.e83320ea.js +1 -0
  343. package/dist/assets/th.2e10ae87.js +1 -0
  344. package/dist/assets/themes.323d2c59.js +5 -0
  345. package/dist/assets/tiddlywiki.2b2e4ff7.js +1 -0
  346. package/dist/assets/tiki.9cc4254e.js +1 -0
  347. package/dist/assets/toml.9be02e0b.js +1 -0
  348. package/dist/assets/tornado.073889de.js +1 -0
  349. package/dist/assets/tr.56778c02.js +1 -0
  350. package/dist/assets/translations.bd6e2f4c.js +1 -0
  351. package/dist/assets/troff.8fa79cbc.js +1 -0
  352. package/dist/assets/ttcn-cfg.e7bac5a1.js +1 -0
  353. package/dist/assets/ttcn.1cc44c93.js +1 -0
  354. package/dist/assets/turtle.d5e9ffb3.js +1 -0
  355. package/dist/assets/twig.b04e6f4c.js +1 -0
  356. package/dist/assets/ubuntu.2e2a920e.js +11 -0
  357. package/dist/assets/ug.6363a215.js +1 -0
  358. package/dist/assets/uk.5a9060bd.js +1 -0
  359. package/dist/assets/upgrades-migrations.6b40146f.js +1 -0
  360. package/dist/assets/use-sync.6d20172a.js +1 -0
  361. package/dist/assets/user-directory.c5340005.js +1 -0
  362. package/dist/assets/users-roles-permissions.9d570863.js +1 -0
  363. package/dist/assets/users.2bcfad1a.js +252 -0
  364. package/dist/assets/utilities.e5c07634.js +60 -0
  365. package/dist/assets/uz.687d7fbd.js +1 -0
  366. package/dist/assets/vb.c986b370.js +1 -0
  367. package/dist/assets/vbscript.92f83a08.js +1 -0
  368. package/dist/assets/velocity.f11f1d03.js +1 -0
  369. package/dist/assets/vendor.546e1516.js +1976 -0
  370. package/dist/assets/vendor.9387af12.css +1 -0
  371. package/dist/assets/verilog.a24f0500.js +1 -0
  372. package/dist/assets/vhdl.a49602e6.js +1 -0
  373. package/dist/assets/vi.2bf54ce7.js +1 -0
  374. package/dist/assets/vue-i18n.feba4fda.entry.js +1 -0
  375. package/dist/assets/vue-router.9dd9c3aa.entry.js +1 -0
  376. package/dist/assets/vue.b07aacca.entry.js +1 -0
  377. package/dist/assets/vue.c4de942a.js +1 -0
  378. package/dist/assets/wast.6c6c82f6.js +1 -0
  379. package/dist/assets/webhooks.6086e8a1.js +147 -0
  380. package/dist/assets/webhooks.6b93563c.js +1 -0
  381. package/dist/assets/webidl.7ab89b46.js +1 -0
  382. package/dist/assets/xquery.0bb89cc8.js +1 -0
  383. package/dist/assets/yacas.ed921cd2.js +1 -0
  384. package/dist/assets/yaml-frontmatter.1248294d.js +1 -0
  385. package/dist/assets/yaml.b6cf6fc7.js +1 -0
  386. package/dist/assets/z80.84dfc6fb.js +1 -0
  387. package/dist/assets/zh-CN.39bd6632.js +1 -0
  388. package/dist/assets/zh-cn.aac76920.js +1 -0
  389. package/dist/assets/zh-tw.d89266cf.js +1 -0
  390. package/dist/favicon.ico +0 -0
  391. package/dist/index.html +7 -119
  392. package/dist/manifest.webmanifest +7 -25
  393. package/package.json +6 -6
  394. package/dist/assets/200-200-cover-100.6a119754.jpg +0 -0
  395. package/dist/assets/200-200-cover-50.b5c757be.jpg +0 -0
  396. package/dist/assets/200-200-cover-75.5e0d9ff8.jpg +0 -0
  397. package/dist/assets/@directus_extensions-sdk.fdb93800.entry.js +0 -1
  398. package/dist/assets/active-line.91ff5c8d.js +0 -1
  399. package/dist/assets/activity-log.97fbae42.js +0 -1
  400. package/dist/assets/activity.088d1c35.js +0 -80
  401. package/dist/assets/add-field.880542d6.png +0 -0
  402. package/dist/assets/af.0ae12dd5.js +0 -1
  403. package/dist/assets/apl.92e6230c.js +0 -1
  404. package/dist/assets/app-overview.1d041c7b.svg +0 -86
  405. package/dist/assets/ar-dz.4def840c.js +0 -1
  406. package/dist/assets/ar-kw.8e19bfac.js +0 -1
  407. package/dist/assets/ar-ly.1c517370.js +0 -1
  408. package/dist/assets/ar-ma.f01598f3.js +0 -1
  409. package/dist/assets/ar-sa.c5fe14e9.js +0 -1
  410. package/dist/assets/ar-tn.121f69b2.js +0 -1
  411. package/dist/assets/ar.bed29460.js +0 -1
  412. package/dist/assets/article-overview.86ef3f76.png +0 -0
  413. package/dist/assets/asciiarmor.d335dc7c.js +0 -1
  414. package/dist/assets/asn.1.d315920f.js +0 -1
  415. package/dist/assets/asterisk.8cfced94.js +0 -1
  416. package/dist/assets/authentication.0adbdab6.js +0 -73
  417. package/dist/assets/autorefresh.2d612ff9.js +0 -1
  418. package/dist/assets/aws.a670afd3.js +0 -1
  419. package/dist/assets/az.706ff558.js +0 -1
  420. package/dist/assets/backing-directus.2899551f.js +0 -1
  421. package/dist/assets/bg.1c68ab52.js +0 -1
  422. package/dist/assets/bn.52d26e23.js +0 -1
  423. package/dist/assets/brainfuck.0a18d08d.js +0 -1
  424. package/dist/assets/bs.4d20add5.js +0 -1
  425. package/dist/assets/ca.a79eb6d2.js +0 -1
  426. package/dist/assets/cli.91a7b0ef.js +0 -18
  427. package/dist/assets/cli.bc06663f.js +0 -4
  428. package/dist/assets/clike.f1d85fe8.js +0 -1
  429. package/dist/assets/clojure.3e724d4b.js +0 -1
  430. package/dist/assets/cloudron.fa37a185.js +0 -1
  431. package/dist/assets/cmake.b3c9ae9d.js +0 -1
  432. package/dist/assets/cobol.236f6c6d.js +0 -1
  433. package/dist/assets/codebase-overview.0c0f5cba.js +0 -1
  434. package/dist/assets/coffeescript.69af43ea.js +0 -1
  435. package/dist/assets/collection-overview.f5f4bdd0.png +0 -0
  436. package/dist/assets/collections.f48d1811.js +0 -106
  437. package/dist/assets/commonlisp.ae043fd0.js +0 -1
  438. package/dist/assets/config-options.b997fb3e.js +0 -133
  439. package/dist/assets/content-collections.96c41bd1.js +0 -1
  440. package/dist/assets/content-items.f1fc2a9e.js +0 -1
  441. package/dist/assets/content.ef11e1cb.js +0 -1
  442. package/dist/assets/create-item.32e17f40.png +0 -0
  443. package/dist/assets/creating-extensions.8be00e4c.js +0 -11
  444. package/dist/assets/crystal.05d16dee.js +0 -1
  445. package/dist/assets/cs.b1e8bc14.js +0 -1
  446. package/dist/assets/css.62b091b8.js +0 -1
  447. package/dist/assets/cy.ac181a59.js +0 -1
  448. package/dist/assets/cypher.d55c23f3.js +0 -4
  449. package/dist/assets/d.5c2e5119.js +0 -1
  450. package/dist/assets/da.4016bc22.js +0 -1
  451. package/dist/assets/dart.60c85b71.js +0 -1
  452. package/dist/assets/data-model.4b43400f.js +0 -1
  453. package/dist/assets/de-DE.2f3867e9.js +0 -1
  454. package/dist/assets/de-at.c36ba3d5.js +0 -1
  455. package/dist/assets/de.31ae30a8.js +0 -1
  456. package/dist/assets/diff.13039cc0.js +0 -1
  457. package/dist/assets/digitalocean-app-platform.9dbbd151.js +0 -3
  458. package/dist/assets/displays.05a0ba75.js +0 -49
  459. package/dist/assets/django.a3de2d81.js +0 -1
  460. package/dist/assets/docker.94eebb00.js +0 -82
  461. package/dist/assets/dockerfile.87ef21a5.js +0 -1
  462. package/dist/assets/documentation.5662403f.js +0 -1
  463. package/dist/assets/dtd.bd6b4051.js +0 -1
  464. package/dist/assets/dylan.520b25cf.js +0 -1
  465. package/dist/assets/ebnf.2730fea9.js +0 -1
  466. package/dist/assets/ecl.9a6d1532.js +0 -1
  467. package/dist/assets/eiffel.b322eaa7.js +0 -1
  468. package/dist/assets/el.59a913c2.js +0 -1
  469. package/dist/assets/elm.9bd5d49d.js +0 -1
  470. package/dist/assets/email-templates.2622f4f5.js +0 -2
  471. package/dist/assets/empty-state.bbc4e874.png +0 -0
  472. package/dist/assets/en-au.169355d7.js +0 -1
  473. package/dist/assets/en-gb.0b977da8.js +0 -1
  474. package/dist/assets/en-nz.6296f2b6.js +0 -1
  475. package/dist/assets/endpoints.90c6640c.js +0 -27
  476. package/dist/assets/eo.d92d8fbf.js +0 -1
  477. package/dist/assets/erlang.b9d69a18.js +0 -1
  478. package/dist/assets/es-CL.fd6804fd.js +0 -1
  479. package/dist/assets/es-ES.2a2421e3.js +0 -1
  480. package/dist/assets/es-us.35915abe.js +0 -1
  481. package/dist/assets/es.c516dd05.js +0 -1
  482. package/dist/assets/et.420b5f6d.js +0 -1
  483. package/dist/assets/eu.edaff4b0.js +0 -1
  484. package/dist/assets/extensions.087c9534.js +0 -12
  485. package/dist/assets/fa.f3993a60.js +0 -1
  486. package/dist/assets/factor.f7077407.js +0 -1
  487. package/dist/assets/faq.b35d46ed.js +0 -2
  488. package/dist/assets/fcl.45028b4e.js +0 -1
  489. package/dist/assets/fi.3ee32d07.js +0 -1
  490. package/dist/assets/fields.6654fb8d.js +0 -135
  491. package/dist/assets/file-library-overview.b41d2005.png +0 -0
  492. package/dist/assets/file-library.cc49fa2f.js +0 -1
  493. package/dist/assets/file-overview.c28ace50.png +0 -0
  494. package/dist/assets/files.39a1fdcf.js +0 -187
  495. package/dist/assets/filter-rules.afe98b80.js +0 -60
  496. package/dist/assets/folders.9d2e334f.js +0 -132
  497. package/dist/assets/forth.195887c3.js +0 -1
  498. package/dist/assets/fortran.5d5c335b.js +0 -1
  499. package/dist/assets/fr-ca.e2e64899.js +0 -1
  500. package/dist/assets/fr-ch.e9042a4c.js +0 -1
  501. package/dist/assets/fr.9d599b24.js +0 -1
  502. package/dist/assets/gas.16c12037.js +0 -1
  503. package/dist/assets/gcp.9b7c4ed6.js +0 -60
  504. package/dist/assets/gfm.d799b563.js +0 -1
  505. package/dist/assets/gherkin.2b39b6dd.js +0 -1
  506. package/dist/assets/github-ci.8c797816.js +0 -2
  507. package/dist/assets/gl.b8341ed4.js +0 -1
  508. package/dist/assets/glossary.2aef84aa.js +0 -1
  509. package/dist/assets/go.a9b03085.js +0 -1
  510. package/dist/assets/groovy.29bd8618.js +0 -1
  511. package/dist/assets/haml.6e79da90.js +0 -1
  512. package/dist/assets/handlebars.2cc03606.js +0 -1
  513. package/dist/assets/haskell-literate.7d265fa0.js +0 -1
  514. package/dist/assets/haskell.74b99322.js +0 -1
  515. package/dist/assets/haxe.cded41ab.js +0 -1
  516. package/dist/assets/he.18403882.js +0 -1
  517. package/dist/assets/hi.e2a17765.js +0 -1
  518. package/dist/assets/hooks.57af13af.js +0 -60
  519. package/dist/assets/hr-HR.4258bbeb.js +0 -1
  520. package/dist/assets/hr.57f77dc3.js +0 -1
  521. package/dist/assets/htmlembedded.49f79187.js +0 -1
  522. package/dist/assets/htmlmixed.d6f11e3c.js +0 -1
  523. package/dist/assets/http.068172f8.js +0 -1
  524. package/dist/assets/hu.adb9ccdc.js +0 -1
  525. package/dist/assets/hy-am.59b7a75e.js +0 -1
  526. package/dist/assets/id-ID.73df63e3.js +0 -1
  527. package/dist/assets/id.bc299c4a.js +0 -1
  528. package/dist/assets/idl.2f22f15a.js +0 -1
  529. package/dist/assets/iis.0756b349.js +0 -24
  530. package/dist/assets/index.03be9954.js +0 -1
  531. package/dist/assets/index.0ba1faa9.css +0 -1
  532. package/dist/assets/index.1610ceeb.js +0 -1
  533. package/dist/assets/index.1760c023.js +0 -1
  534. package/dist/assets/index.17858738.js +0 -1
  535. package/dist/assets/index.1792b218.js +0 -1
  536. package/dist/assets/index.17dcd22b.js +0 -1
  537. package/dist/assets/index.1a2bd336.js +0 -1
  538. package/dist/assets/index.1e433f7c.js +0 -1
  539. package/dist/assets/index.1ef15bd0.js +0 -1
  540. package/dist/assets/index.25bd5335.js +0 -1
  541. package/dist/assets/index.284ad9ae.js +0 -1
  542. package/dist/assets/index.28c78852.js +0 -1
  543. package/dist/assets/index.30c48506.js +0 -1
  544. package/dist/assets/index.34ca1f4f.js +0 -1
  545. package/dist/assets/index.3d64863b.js +0 -1
  546. package/dist/assets/index.42cf46e8.js +0 -1
  547. package/dist/assets/index.43aaad2f.js +0 -1
  548. package/dist/assets/index.482eee81.js +0 -1
  549. package/dist/assets/index.4c1678f5.js +0 -1
  550. package/dist/assets/index.505c3128.js +0 -1
  551. package/dist/assets/index.51e25346.js +0 -1
  552. package/dist/assets/index.536d6c04.js +0 -1
  553. package/dist/assets/index.538fe012.js +0 -1
  554. package/dist/assets/index.53fd3b94.js +0 -1
  555. package/dist/assets/index.5792c56d.js +0 -1
  556. package/dist/assets/index.5991f264.js +0 -1
  557. package/dist/assets/index.59d23ad1.js +0 -1
  558. package/dist/assets/index.6019766b.js +0 -1
  559. package/dist/assets/index.637ecec8.js +0 -1
  560. package/dist/assets/index.65607570.js +0 -1
  561. package/dist/assets/index.6944de49.js +0 -26
  562. package/dist/assets/index.6b7b67e0.js +0 -1
  563. package/dist/assets/index.6d163e82.js +0 -1
  564. package/dist/assets/index.6f216b4a.js +0 -1
  565. package/dist/assets/index.71a497d6.css +0 -1
  566. package/dist/assets/index.7405e309.js +0 -1
  567. package/dist/assets/index.7b7245a9.js +0 -1
  568. package/dist/assets/index.7ddd41bb.js +0 -1
  569. package/dist/assets/index.8305bbeb.js +0 -1
  570. package/dist/assets/index.86c67d5c.js +0 -1
  571. package/dist/assets/index.893a69a1.js +0 -1
  572. package/dist/assets/index.8cbec1ee.js +0 -1
  573. package/dist/assets/index.8f1e1fba.js +0 -1
  574. package/dist/assets/index.8fc5fb54.js +0 -1
  575. package/dist/assets/index.91639619.js +0 -1
  576. package/dist/assets/index.94f09a1f.js +0 -1
  577. package/dist/assets/index.989d0b7b.js +0 -1
  578. package/dist/assets/index.9e12d78b.js +0 -1
  579. package/dist/assets/index.9f18eda4.js +0 -1
  580. package/dist/assets/index.a0704c57.js +0 -1
  581. package/dist/assets/index.a08492e1.js +0 -1
  582. package/dist/assets/index.a1a28b7c.js +0 -1
  583. package/dist/assets/index.a253b413.entry.js +0 -531
  584. package/dist/assets/index.a54b3a96.js +0 -1
  585. package/dist/assets/index.a635ff40.js +0 -1
  586. package/dist/assets/index.a6b0b229.js +0 -1
  587. package/dist/assets/index.b033f81e.js +0 -1
  588. package/dist/assets/index.b42be304.js +0 -1
  589. package/dist/assets/index.b4f1966d.js +0 -1
  590. package/dist/assets/index.b687f719.js +0 -1
  591. package/dist/assets/index.b6d4c7ef.js +0 -1
  592. package/dist/assets/index.b883b34b.js +0 -1
  593. package/dist/assets/index.bcedb140.js +0 -1
  594. package/dist/assets/index.bdc76b24.js +0 -1
  595. package/dist/assets/index.c2d5da76.js +0 -1
  596. package/dist/assets/index.c5f25555.js +0 -1
  597. package/dist/assets/index.c8f131d2.js +0 -1
  598. package/dist/assets/index.d1768a4c.js +0 -1
  599. package/dist/assets/index.d20355f1.js +0 -1
  600. package/dist/assets/index.da8f8bd1.js +0 -1
  601. package/dist/assets/index.ddf80deb.js +0 -1
  602. package/dist/assets/index.e15ede3f.js +0 -1
  603. package/dist/assets/index.ec1cae03.js +0 -1
  604. package/dist/assets/index.ed021a7e.js +0 -1
  605. package/dist/assets/index.f1402ddb.js +0 -1
  606. package/dist/assets/index.f2f0b19e.js +0 -1
  607. package/dist/assets/index.f39fd82c.js +0 -1
  608. package/dist/assets/index.f4cd1717.js +0 -1
  609. package/dist/assets/index.f76046f7.js +0 -1
  610. package/dist/assets/index.f969f456.js +0 -1
  611. package/dist/assets/index.fd1147cb.js +0 -1
  612. package/dist/assets/index.fe41cd97.js +0 -1
  613. package/dist/assets/index.ff3abc12.js +0 -1
  614. package/dist/assets/input-rich-text-html.bd11c29f.js +0 -239
  615. package/dist/assets/input-rich-text-html.f98395ca.css +0 -1
  616. package/dist/assets/insights.6b9e65c2.js +0 -1
  617. package/dist/assets/installation.170112a4.js +0 -1
  618. package/dist/assets/interfaces.db39b9ff.js +0 -46
  619. package/dist/assets/introduction.831e086e.js +0 -4
  620. package/dist/assets/introduction.ba72705e.js +0 -1
  621. package/dist/assets/introduction.d83586e5.js +0 -1
  622. package/dist/assets/introduction.f0c7891e.js +0 -90
  623. package/dist/assets/is.2eb43668.js +0 -1
  624. package/dist/assets/it-IT.93477255.js +0 -1
  625. package/dist/assets/it.e663f69e.js +0 -1
  626. package/dist/assets/items.2fff6572.js +0 -136
  627. package/dist/assets/ja.21755c02.js +0 -1
  628. package/dist/assets/javascript-hint.ff0e6747.js +0 -1
  629. package/dist/assets/javascript.85c4d25b.js +0 -1
  630. package/dist/assets/jinja2.7a8fb070.js +0 -1
  631. package/dist/assets/jsonlint.09bf5bab.js +0 -8
  632. package/dist/assets/jsx.561c3147.js +0 -1
  633. package/dist/assets/julia.e3b41c51.js +0 -1
  634. package/dist/assets/ka.09267484.js +0 -1
  635. package/dist/assets/kk.c27d7d0f.js +0 -1
  636. package/dist/assets/ko.86462d08.js +0 -1
  637. package/dist/assets/layouts.cebfaaa8.js +0 -54
  638. package/dist/assets/lb.b4fb4102.js +0 -1
  639. package/dist/assets/livescript.da5167f8.js +0 -1
  640. package/dist/assets/localization.f77ab14f.js +0 -1
  641. package/dist/assets/lt.bec1e735.js +0 -1
  642. package/dist/assets/lua.68934f2f.js +0 -1
  643. package/dist/assets/lv.1d9eac62.js +0 -1
  644. package/dist/assets/m2a.347ed339.png +0 -0
  645. package/dist/assets/m2m.07bed843.png +0 -0
  646. package/dist/assets/m2o.ac02ed03.png +0 -0
  647. package/dist/assets/manual.6a6a9570.js +0 -10
  648. package/dist/assets/mark-selection.d8696dde.js +0 -1
  649. package/dist/assets/match-highlighter.011c3968.js +0 -1
  650. package/dist/assets/mathematica.970914fe.js +0 -1
  651. package/dist/assets/mbox.798fd6c8.js +0 -1
  652. package/dist/assets/migrations.cbdea1ca.js +0 -19
  653. package/dist/assets/mirc.03c69e34.js +0 -1
  654. package/dist/assets/mk.ac873732.js +0 -1
  655. package/dist/assets/mllike.01ddd025.js +0 -1
  656. package/dist/assets/mn-MN.9d75cba3.js +0 -1
  657. package/dist/assets/modelica.29193581.js +0 -1
  658. package/dist/assets/modules.32110248.js +0 -69
  659. package/dist/assets/ms.a8caaf33.js +0 -1
  660. package/dist/assets/mscgen.129c1a92.js +0 -1
  661. package/dist/assets/multiplex.07740103.js +0 -3
  662. package/dist/assets/mumps.6bf32390.js +0 -1
  663. package/dist/assets/nb.c4e12345.js +0 -1
  664. package/dist/assets/ne.8c2e7d13.js +0 -1
  665. package/dist/assets/nginx.becfadad.js +0 -1
  666. package/dist/assets/nl.15edef36.js +0 -1
  667. package/dist/assets/nn.33ea37c6.js +0 -1
  668. package/dist/assets/notifications.b9d06648.js +0 -153
  669. package/dist/assets/nsis.60778189.js +0 -1
  670. package/dist/assets/ntriples.57e7f534.js +0 -1
  671. package/dist/assets/o2m.339378e0.png +0 -0
  672. package/dist/assets/octave.9d8386d3.js +0 -1
  673. package/dist/assets/original.888775a8.jpg +0 -0
  674. package/dist/assets/overlay.4aee4ad9.js +0 -1
  675. package/dist/assets/overview.c10655c2.js +0 -1
  676. package/dist/assets/overview.ed8cc8fc.js +0 -1
  677. package/dist/assets/oz.9bd8f7e7.js +0 -1
  678. package/dist/assets/panels.241a2491.js +0 -65
  679. package/dist/assets/pascal.97e8c58d.js +0 -1
  680. package/dist/assets/pegjs.a585faf9.js +0 -1
  681. package/dist/assets/perl.01cca948.js +0 -1
  682. package/dist/assets/permissions.b47530e9.png +0 -0
  683. package/dist/assets/permissions.f4ad3029.js +0 -178
  684. package/dist/assets/php.fd86de38.js +0 -1
  685. package/dist/assets/pig.44da9cf6.js +0 -1
  686. package/dist/assets/pinia.b8958608.entry.js +0 -1
  687. package/dist/assets/pl-PL.65bde531.js +0 -1
  688. package/dist/assets/pl.8a0826b3.js +0 -1
  689. package/dist/assets/plesk.eef0ffe8.js +0 -21
  690. package/dist/assets/powershell.432aa4e3.js +0 -1
  691. package/dist/assets/presets-bookmarks.1c9f5558.js +0 -1
  692. package/dist/assets/presets.a78e9fbc.js +0 -164
  693. package/dist/assets/project-settings.72e83679.js +0 -1
  694. package/dist/assets/properties.41f6ef8f.js +0 -1
  695. package/dist/assets/protobuf.985c6ff9.js +0 -1
  696. package/dist/assets/pt-br.e87cb008.js +0 -1
  697. package/dist/assets/pt.de450764.js +0 -1
  698. package/dist/assets/pug.46a9325f.js +0 -1
  699. package/dist/assets/puppet.978fb907.js +0 -1
  700. package/dist/assets/python.197cf682.js +0 -1
  701. package/dist/assets/q.eb66a399.js +0 -1
  702. package/dist/assets/query.b41e6991.js +0 -152
  703. package/dist/assets/quickstart.eea06952.js +0 -11
  704. package/dist/assets/r.30005c51.js +0 -1
  705. package/dist/assets/relations.7a9fbe53.js +0 -115
  706. package/dist/assets/relationships.b1c4c4d7.js +0 -55
  707. package/dist/assets/revisions.999a1447.js +0 -40
  708. package/dist/assets/ro-RO.e9e3a460.js +0 -1
  709. package/dist/assets/ro.1786958f.js +0 -1
  710. package/dist/assets/roles.c650ebd6.js +0 -171
  711. package/dist/assets/rpm.fb52e459.js +0 -1
  712. package/dist/assets/rst.f7c5571b.js +0 -1
  713. package/dist/assets/ru-RU.799cee27.js +0 -1
  714. package/dist/assets/ru.2c0e4894.js +0 -1
  715. package/dist/assets/ruby.edf804f9.js +0 -1
  716. package/dist/assets/running-locally.efb945d9.js +0 -28
  717. package/dist/assets/rust.8b6761b2.js +0 -1
  718. package/dist/assets/sas.8c2a5af3.js +0 -1
  719. package/dist/assets/sass.f9cb449a.js +0 -1
  720. package/dist/assets/scheme.060ff4c7.js +0 -1
  721. package/dist/assets/sdk.9c072015.js +0 -355
  722. package/dist/assets/security.db7f2ed1.js +0 -1
  723. package/dist/assets/server.bb95f58d.js +0 -114
  724. package/dist/assets/settings.676a9d6b.js +0 -1
  725. package/dist/assets/settings.82d42ce8.js +0 -51
  726. package/dist/assets/shell.b9a0e740.js +0 -1
  727. package/dist/assets/show-hint.64cd9d68.js +0 -1
  728. package/dist/assets/sieve.2e435557.js +0 -1
  729. package/dist/assets/simple.0840e902.js +0 -1
  730. package/dist/assets/sk.e174a41b.js +0 -1
  731. package/dist/assets/sl.34422efd.js +0 -1
  732. package/dist/assets/slim.04b2111c.js +0 -1
  733. package/dist/assets/smalltalk.4fb3b1b9.js +0 -1
  734. package/dist/assets/smarty.f6122c9b.js +0 -1
  735. package/dist/assets/solr.5d518e61.js +0 -1
  736. package/dist/assets/soy.7fcab156.js +0 -1
  737. package/dist/assets/sparql.f1a7f051.js +0 -1
  738. package/dist/assets/spreadsheet.4c6df545.js +0 -1
  739. package/dist/assets/sq.ee367a13.js +0 -1
  740. package/dist/assets/sql.a01b495c.js +0 -1
  741. package/dist/assets/sr-cyrl.0abb2793.js +0 -1
  742. package/dist/assets/sr.efb7e3ec.js +0 -1
  743. package/dist/assets/sso.6c672b92.js +0 -22
  744. package/dist/assets/stex.6cab0c16.js +0 -1
  745. package/dist/assets/stylus.7577596a.js +0 -1
  746. package/dist/assets/support.27c0edd9.js +0 -1
  747. package/dist/assets/sv.b9d19aa9.js +0 -1
  748. package/dist/assets/swift.0d939f23.js +0 -1
  749. package/dist/assets/ta-in.8c88aa82.js +0 -1
  750. package/dist/assets/tcl.7f858309.js +0 -1
  751. package/dist/assets/terminal-install.44adb787.png +0 -0
  752. package/dist/assets/terminal-start.72064e09.png +0 -0
  753. package/dist/assets/textile.237e1506.js +0 -1
  754. package/dist/assets/th.d0e24ade.js +0 -1
  755. package/dist/assets/themes.deee4299.js +0 -5
  756. package/dist/assets/tiddlywiki.08bed973.js +0 -1
  757. package/dist/assets/tiki.9dce5bfd.js +0 -1
  758. package/dist/assets/toml.faf5f476.js +0 -1
  759. package/dist/assets/tornado.4323d4a2.js +0 -1
  760. package/dist/assets/tr.d887c301.js +0 -1
  761. package/dist/assets/translations-2.29d07342.png +0 -0
  762. package/dist/assets/translations.2f0017a9.png +0 -0
  763. package/dist/assets/translations.5ffeab6c.js +0 -1
  764. package/dist/assets/troff.82b9a6c7.js +0 -1
  765. package/dist/assets/ttcn-cfg.3e28bc75.js +0 -1
  766. package/dist/assets/ttcn.f9c675ae.js +0 -1
  767. package/dist/assets/turtle.97cf58a5.js +0 -1
  768. package/dist/assets/twig.36068343.js +0 -1
  769. package/dist/assets/ubuntu.e99e20d0.js +0 -11
  770. package/dist/assets/ug.2ae6849b.js +0 -1
  771. package/dist/assets/uk.69d22b7d.js +0 -1
  772. package/dist/assets/upgrades-migrations.37c4532e.js +0 -1
  773. package/dist/assets/use-sync.04f09f9e.js +0 -1
  774. package/dist/assets/user-directory-overview.69a80519.png +0 -0
  775. package/dist/assets/user-directory.1a185dd0.js +0 -1
  776. package/dist/assets/user-overview.5cc16f64.png +0 -0
  777. package/dist/assets/users-roles-permissions.f59c381a.js +0 -1
  778. package/dist/assets/users.461a15d2.js +0 -252
  779. package/dist/assets/utilities.ff6cf557.js +0 -60
  780. package/dist/assets/uz.a2abf7be.js +0 -1
  781. package/dist/assets/vb.5aaf8565.js +0 -1
  782. package/dist/assets/vbscript.c07dc3c8.js +0 -1
  783. package/dist/assets/velocity.f7cdf7e5.js +0 -1
  784. package/dist/assets/vendor.f59145b7.js +0 -2041
  785. package/dist/assets/vendor.fe7856f0.css +0 -1
  786. package/dist/assets/verilog.55a49c38.js +0 -1
  787. package/dist/assets/vhdl.fc40f629.js +0 -1
  788. package/dist/assets/vi.cc30f87c.js +0 -1
  789. package/dist/assets/vue-i18n.ec7ef603.entry.js +0 -1
  790. package/dist/assets/vue-router.59b4e0a8.entry.js +0 -1
  791. package/dist/assets/vue.0daa2612.js +0 -1
  792. package/dist/assets/vue.ad7417ec.entry.js +0 -1
  793. package/dist/assets/wast.a9fb00d6.js +0 -1
  794. package/dist/assets/webhooks.8438538b.js +0 -147
  795. package/dist/assets/webhooks.9b515577.js +0 -1
  796. package/dist/assets/webidl.dbd219d1.js +0 -1
  797. package/dist/assets/xquery.1638d97d.js +0 -1
  798. package/dist/assets/yacas.d19e357f.js +0 -1
  799. package/dist/assets/yaml-frontmatter.94aa6732.js +0 -1
  800. package/dist/assets/yaml.52d92099.js +0 -1
  801. package/dist/assets/z80.36722ea0.js +0 -1
  802. package/dist/assets/zh-CN.c2a147a6.js +0 -1
  803. package/dist/assets/zh-cn.f12689f7.js +0 -1
  804. package/dist/assets/zh-tw.c5aeda5a.js +0 -1
  805. package/dist/img/icons/android-chrome-192x192.png +0 -0
  806. package/dist/img/icons/android-chrome-512x512.png +0 -0
  807. package/dist/img/icons/apple-touch-icon-152x152.png +0 -0
  808. package/dist/img/icons/apple-touch-icon.png +0 -0
  809. package/dist/img/icons/favicon-16x16.png +0 -0
  810. package/dist/img/icons/favicon-32x32.png +0 -0
  811. package/dist/img/icons/maskable.png +0 -0
  812. package/dist/img/splashscreens/apple-splash-1125-2436.jpg +0 -0
  813. package/dist/img/splashscreens/apple-splash-1136-640.jpg +0 -0
  814. package/dist/img/splashscreens/apple-splash-1242-2208.jpg +0 -0
  815. package/dist/img/splashscreens/apple-splash-1242-2688.jpg +0 -0
  816. package/dist/img/splashscreens/apple-splash-1334-750.jpg +0 -0
  817. package/dist/img/splashscreens/apple-splash-1536-2048.jpg +0 -0
  818. package/dist/img/splashscreens/apple-splash-1620-2160.jpg +0 -0
  819. package/dist/img/splashscreens/apple-splash-1668-2224.jpg +0 -0
  820. package/dist/img/splashscreens/apple-splash-1668-2388.jpg +0 -0
  821. package/dist/img/splashscreens/apple-splash-1792-828.jpg +0 -0
  822. package/dist/img/splashscreens/apple-splash-2048-1536.jpg +0 -0
  823. package/dist/img/splashscreens/apple-splash-2048-2732.jpg +0 -0
  824. package/dist/img/splashscreens/apple-splash-2160-1620.jpg +0 -0
  825. package/dist/img/splashscreens/apple-splash-2208-1242.jpg +0 -0
  826. package/dist/img/splashscreens/apple-splash-2224-1668.jpg +0 -0
  827. package/dist/img/splashscreens/apple-splash-2388-1668.jpg +0 -0
  828. package/dist/img/splashscreens/apple-splash-2436-1125.jpg +0 -0
  829. package/dist/img/splashscreens/apple-splash-2688-1242.jpg +0 -0
  830. package/dist/img/splashscreens/apple-splash-2732-2048.jpg +0 -0
  831. package/dist/img/splashscreens/apple-splash-640-1136.jpg +0 -0
  832. package/dist/img/splashscreens/apple-splash-750-1334.jpg +0 -0
  833. package/dist/img/splashscreens/apple-splash-828-1792.jpg +0 -0
@@ -1,152 +0,0 @@
1
- import{r as a,p as o,q as d,w as s,z as e,t as h,S as l}from"./vendor.f59145b7.js";const c={class:"markdown-body"},u=e("div",{class:"two-up"},[e("div",{class:"left"},[e("blockquote",null,[e("p",null,"Most Directus API Endpoint operations can be manipulated with the following parameters. It is important to understand them to get the most out of the platform.")])]),e("div",{class:"right"},[e("p"),e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#fields"},"Fields")]),e("li",null,[e("a",{href:"#filter"},"Filter")]),e("li",null,[e("a",{href:"#search"},"Search")]),e("li",null,[e("a",{href:"#sort"},"Sort")]),e("li",null,[e("a",{href:"#limit"},"Limit")]),e("li",null,[e("a",{href:"#offset"},"Offset"),l(" / "),e("a",{href:"#page"},"Page")]),e("li",null,[e("a",{href:"#aggregation-grouping"},"Aggregation & Grouping")]),e("li",null,[e("a",{href:"#deep"},"Deep")]),e("li",null,[e("a",{href:"#aliases"},"Aliases")]),e("li",null,[e("a",{href:"#export"},"Export")])]),e("p"),l(" - [Functions](#functions) "),e("p"),l(" - [Metadata](#metadata) - [Total Count](#total-count) - [Filter Count](#filter-count) ")])])],-1),p=e("hr",null,null,-1),f=e("h2",{id:"fields"},[l("Fields "),e("a",{class:"header-anchor",href:"#fields"},"#")],-1),g=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Choose the fields that are returned in the current dataset. This parameter supports dot notation to request nested relational fields. You can also use a wildcard (*) to include all fields at a specific depth.")])],-1),m=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples"},"#")]),e("p",null,[l("Get all top-level fields"),e("br"),e("code",null,"*")]),e("p",null,[l("Get all top-level fields and all second-level relational fields"),e("br"),e("code",null,"*.*")]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Performance & Size"),e("p",null,[l("While the fields wildcard is very useful for debugging purposes, we recommend only requesting "),e("em",null,"specific"),l(" fields for production use. By only requesting the fields you really need, you can speed up the request, and reduce the overall output size.")])]),e("p",null,[l("Get all top-level fields and second-level relational fields within images"),e("br"),e("code",null,"*,images.*")]),e("p",null,[l("Get only the first_name and last_name fields"),e("br"),e("code",null,"first_name,last_name")]),e("p",null,[l("Get all top-level and second-level relational fields, and third-level fields within images.thumbnails"),e("br"),e("code",null,"*.*,images.thumbnails.*")]),e("h3",{id:"many-to-any-(union-types)"},[l("Many-To-Any (Union Types) "),e("a",{class:"header-anchor",href:"#many-to-any-(union-types)"},"#")]),e("p",null,[l("Seeing that Many-to-Any (m2a) fields have nested data from multiple collections, it\u2019s not always safe / wanted to fetch the same field from every related collection. In m2a fields, you can use the following syntax to specify what fields to fetch from which related nested collection type:"),e("br"),e("code",null,"?fields=<m2a-field>:<collection-scope>.<field>"),l(".")]),e("p",null,[l("Lets say we have a collection "),e("code",null,"pages"),l(" with a many-to-any field called "),e("code",null,"sections"),l(" that points to "),e("code",null,"headings"),l(", "),e("code",null,"paragraphs"),l(", and "),e("code",null,"videos"),l(". We only want to fetch "),e("code",null,"title"),l(" and "),e("code",null,"level"),l(" from "),e("code",null,"headings"),l(", "),e("code",null,"body"),l(" from "),e("code",null,"paragraphs"),l(" and "),e("code",null,"source"),l(" from "),e("code",null,"videos"),l(". We can achieve that by using:")]),e("pre",null,[e("code",null,`sections.item:headings.title
2
- sections.item:headings.level
3
- sections.item:paragraphs.body
4
- sections.item:videos.source
5
- `)]),e("p",null,"In GraphQL, this can be achieved using Union Types.")]),e("div",{class:"right"},[e("h3",{id:"rest-api"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")]),e("pre",null,[e("code",null,`?fields=title,body,featured_image.*
6
-
7
- // or
8
-
9
- ?fields[]=title
10
- &fields[]=body
11
- &fields[]=featured_image.*
12
- `)]),e("h3",{id:"graphql"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")]),e("p",null,[e("em",null,"Natively supported in GraphQL")])])],-1),_=e("hr",null,null,-1),v=e("h2",{id:"filter"},[l("Filter "),e("a",{class:"header-anchor",href:"#filter"},"#")],-1),y={class:"two-up"},w={class:"left"},b=l("Used to search items in a collection that matches the filter\u2019s conditions. The filter param follows "),q=l("the Filter Rules spec"),j=l(", which includes additional information on logical operators (AND/OR), nested relational filtering, and dynamic variables."),x=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-2"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-2"},"#")]),e("p",null,[l("Retrieve all items where "),e("code",null,"first_name"),l(" equals \u201CRijk\u201D")]),e("pre",null,[e("code",{class:"language-json"},[l(`{
13
- `),e("span",{class:"hljs-attr"},'"first_name"'),l(`: {
14
- `),e("span",{class:"hljs-attr"},'"_eq"'),l(": "),e("span",{class:"hljs-string"},'"Rijk"'),l(`
15
- }
16
- }
17
- `)])]),e("p",null,"Retrieve all items in one of the following categories: \u201Cvegetables\u201D, \u201Cfruit\u201D"),e("pre",null,[e("code",{class:"language-json"},[l(`{
18
- `),e("span",{class:"hljs-attr"},'"categories"'),l(`: {
19
- `),e("span",{class:"hljs-attr"},'"_in"'),l(": ["),e("span",{class:"hljs-string"},'"vegetables"'),l(", "),e("span",{class:"hljs-string"},'"fruit"'),l(`]
20
- }
21
- }
22
- `)])]),e("p",null,"Retrieve all items that are published between two dates"),e("pre",null,[e("code",{class:"language-json"},[l(`{
23
- `),e("span",{class:"hljs-attr"},'"date_published"'),l(`: {
24
- `),e("span",{class:"hljs-attr"},'"_between"'),l(": ["),e("span",{class:"hljs-string"},'"2021-01-24"'),l(", "),e("span",{class:"hljs-string"},'"2021-02-23"'),l(`]
25
- }
26
- }
27
- `)])]),e("p",null,"Retrieve all items where the author\u2019s \u201Cvip\u201D flag is true"),e("pre",null,[e("code",{class:"language-json"},[l(`{
28
- `),e("span",{class:"hljs-attr"},'"author"'),l(`: {
29
- `),e("span",{class:"hljs-attr"},'"vip"'),l(`: {
30
- `),e("span",{class:"hljs-attr"},'"_eq"'),l(": "),e("span",{class:"hljs-literal"},"true"),l(`
31
- }
32
- }
33
- }
34
- `)])]),e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Nested Filters"),e("p",null,[l("The above example will filter the "),e("em",null,"top level"),l(" items based on a condition "),e("em",null,"in"),l(" the related item. If you\u2019re looking to filter the related items themselves, take a look at "),e("a",{href:"#deep"},[l("the "),e("code",null,"deep"),l(" parameter")]),l("!")])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-2"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`?filter[first_name][_eq]=Rijk
35
-
36
- // or
37
-
38
- ?filter={ "first_name": { "_eq": "Rijk" }}
39
- `)]),e("h3",{id:"graphql-2"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
40
- users(filter: { first_name: { _eq: `),e("span",{class:"hljs-string"},'"Rijk"'),l(` } }) {
41
- id
42
- }
43
- }
44
- `)])])])],-1),k=e("hr",null,null,-1),G=e("h2",{id:"search"},[l("Search "),e("a",{class:"header-anchor",href:"#search"},"#")],-1),A=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"The search parameter allows you to perform a search on all string and text type fields within a collection. It\u2019s an easy way to search for an item without creating complex field filters \u2013 though it is far less optimized. It only searches the root item\u2019s fields, related item fields are not included.")])],-1),E=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"example"},[l("Example "),e("a",{class:"header-anchor",href:"#example"},"#")]),e("p",null,[l("Find all items that mention Directus"),e("br"),e("code",null,"Directus")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-3"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`?search=Directus
45
- `)]),e("h3",{id:"graphql-3"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
46
- articles(search: `),e("span",{class:"hljs-string"},'"Directus"'),l(`) {
47
- id
48
- }
49
- }
50
- `)])])])],-1),S=e("hr",null,null,-1),T=e("h2",{id:"sort"},[l("Sort "),e("a",{class:"header-anchor",href:"#sort"},"#")],-1),R=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("What field(s) to sort by. Sorting defaults to ascending, but a minus sign ("),e("code",null,"-"),l(") can be used to reverse this to descending order. Fields are prioritized by the order in the parameter.")])])],-1),L=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-3"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-3"},"#")]),e("p",null,[l("Sort by creation date descending"),e("br"),e("code",null,"-date_created")]),e("p",null,[l("Sort by a \u201Csort\u201D field, followed by publish date descending"),e("br"),e("code",null,"sort, -publish_date")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-4"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`?sort=sort,-date_created
51
-
52
- // or
53
-
54
- ?sort[]=sort
55
- &sort[]=-date_created
56
- `)]),e("h3",{id:"graphql-4"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
57
- articles(sort: [`),e("span",{class:"hljs-string"},'"sort"'),l(", "),e("span",{class:"hljs-string"},'"-date_created"'),l(`]) {
58
- id
59
- }
60
- }
61
- `)])])])],-1),I=e("hr",null,null,-1),P=e("h2",{id:"limit"},[l("Limit "),e("a",{class:"header-anchor",href:"#limit"},"#")],-1),Q=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Set the maximum number of items that will be returned. The default limit is set to "),e("code",null,"100"),l(".")])])],-1),D=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-4"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-4"},"#")]),e("p",null,[l("Get the first 200 items"),e("br"),e("code",null,"200")]),e("p",null,[l("Get all items"),e("br"),e("code",null,"-1")]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"All Items"),e("p",null,"Depending on the size of your collection, fetching unlimited data may result in degraded performance or timeouts, use with caution.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`?limit=200
62
- `)]),e("h3",{id:"graphql-5"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
63
- articles(limit: `),e("span",{class:"hljs-number"},"200"),l(`) {
64
- id
65
- }
66
- }
67
- `)])])])],-1),F=e("hr",null,null,-1),N=e("h2",{id:"offset"},[l("Offset "),e("a",{class:"header-anchor",href:"#offset"},"#")],-1),C=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Skip the first "),e("code",null,"n"),l(" items in the response. Can be used for pagination.")])])],-1),B=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-5"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-5"},"#")]),e("p",null,[l("Get items 101\u2014200"),e("br"),e("code",null,"100")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`?offset=100
68
- `)]),e("h3",{id:"graphql-6"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
69
- articles(offset: `),e("span",{class:"hljs-number"},"100"),l(`) {
70
- id
71
- }
72
- }
73
- `)])])])],-1),M=e("hr",null,null,-1),z=e("h2",{id:"page"},[l("Page "),e("a",{class:"header-anchor",href:"#page"},"#")],-1),W=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("An alternative to "),e("code",null,"offset"),l(". Page is a way to set "),e("code",null,"offset"),l(" under the hood by calculating "),e("code",null,"limit * page"),l(". Page is 1-indexed.")])])],-1),U=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-6"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-6"},"#")]),e("p",null,[l("Get items 1-100"),e("br"),e("code",null,"1")]),e("p",null,[l("Get items 101-200"),e("br"),e("code",null,"2")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-7"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-7"},"#")]),e("pre",null,[e("code",null,`?page=2
74
- `)]),e("h3",{id:"graphql-7"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-7"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
75
- articles(page: `),e("span",{class:"hljs-number"},"2"),l(`) {
76
- id
77
- }
78
- }
79
- `)])])])],-1),O=e("hr",null,null,-1),V=e("h2",{id:"aggregation-%26-grouping"},[l("Aggregation & Grouping "),e("a",{class:"header-anchor",href:"#aggregation-%26-grouping"},"#")],-1),J=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Aggregate functions allow you to perform calculations on a set of values, returning a single result.")])],-1),Y=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"The following aggregation functions are available in Directus:"),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Name"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"count")]),e("td",null,"Counts how many items there are")]),e("tr",null,[e("td",null,[e("code",null,"countDistinct")]),e("td",null,"Counts how many unique items there are")]),e("tr",null,[e("td",null,[e("code",null,"sum")]),e("td",null,"Adds together the values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"sumDistinct")]),e("td",null,"Adds together the unique values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"avg")]),e("td",null,"Get the average value of the given field")]),e("tr",null,[e("td",null,[e("code",null,"avgDistinct")]),e("td",null,"Get the average value of the unique values in the given field")]),e("tr",null,[e("td",null,[e("code",null,"min")]),e("td",null,"Return the lowest value in the field")]),e("tr",null,[e("td",null,[e("code",null,"max")]),e("td",null,"Return the highest value in the field")])])]),e("h3",{id:"grouping"},[l("Grouping "),e("a",{class:"header-anchor",href:"#grouping"},"#")]),e("p",null,[l("By default, the above aggregation functions run on the whole dataset. To allow for more flexible reporting, you can combine the above aggregation with grouping. Grouping allows for running the aggregation functions based on a shared value. This allows for things like "),e("em",null,"\u201CAverage rating per month\u201D"),l(" or "),e("em",null,"\u201CTotal sales of items in the jeans category\u201D"),l(".")]),e("p",null,[l("The "),e("code",null,"groupBy"),l(" query allows for grouping on multiple fields simultaneously. Combined with the "),e("a",{href:"#functions"},"Functions"),l(", this allows for aggregate reporting per year-month-date.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-8"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-8"},"#")]),e("pre",null,[e("code",null,`?aggregate[avg]=cost
80
- &groupBy[]=author
81
- &groupBy[]=year(publish_date)
82
- `)]),e("h3",{id:"graphql-8"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-8"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
83
- articles_aggregated(groupBy: [`),e("span",{class:"hljs-string"},'"author"'),l(", "),e("span",{class:"hljs-string"},'"year(publish_date)"'),l(`]) {
84
- group
85
- sum {
86
- revenue
87
- }
88
- }
89
- }
90
- `)])])])],-1),H=e("hr",null,null,-1),K=e("h2",{id:"deep"},[l("Deep "),e("a",{class:"header-anchor",href:"#deep"},"#")],-1),X=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Deep allows you to set any of the other query parameters on a nested relational dataset.")])],-1),Z=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"examples-7"},[l("Examples "),e("a",{class:"header-anchor",href:"#examples-7"},"#")]),e("p",null,"Limit the nested related articles to 3"),e("pre",null,[e("code",{class:"language-json"},[l(`{
91
- `),e("span",{class:"hljs-attr"},'"related_articles"'),l(`: {
92
- `),e("span",{class:"hljs-attr"},'"_limit"'),l(": "),e("span",{class:"hljs-number"},"3"),l(`
93
- }
94
- }
95
- `)])]),e("p",null,"Only get 3 related articles, with only the top rated comment nested"),e("pre",null,[e("code",{class:"language-json"},[l(`{
96
- `),e("span",{class:"hljs-attr"},'"related_articles"'),l(`: {
97
- `),e("span",{class:"hljs-attr"},'"_limit"'),l(": "),e("span",{class:"hljs-number"},"3"),l(`,
98
- `),e("span",{class:"hljs-attr"},'"comments"'),l(`: {
99
- `),e("span",{class:"hljs-attr"},'"_sort"'),l(": "),e("span",{class:"hljs-string"},'"rating"'),l(`,
100
- `),e("span",{class:"hljs-attr"},'"_limit"'),l(": "),e("span",{class:"hljs-number"},"1"),l(`
101
- }
102
- }
103
- }
104
- `)])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-9"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-9"},"#")]),e("pre",null,[e("code",null,`?deep[translations][_filter][languages_code][_eq]=en-US
105
-
106
- // or
107
-
108
- ?deep={ "translations": { "_filter": { "languages_code": { "_eq": "en-US" }}}}
109
- `)]),e("h3",{id:"graphql-9"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-9"},"#")]),e("p",null,[e("em",null,"Natively supported in GraphQL:")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
110
- members {
111
- favorite_games(filter: { name: { _eq: `),e("span",{class:"hljs-string"},'"Mariokart 8"'),l(` } }) {
112
- id
113
- featured_image {
114
- filename_disk
115
- }
116
- }
117
- }
118
- }
119
- `)])])])],-1),$=e("hr",null,null,-1),ee=e("h2",{id:"aliases"},[l("Aliases "),e("a",{class:"header-anchor",href:"#aliases"},"#")],-1),le=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Aliases allow you rename fields on the fly, and request the same nested data set multiple times using different filters.")])],-1),te=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"Nested fields"),e("p",null,[l("It is only possible to alias same level fields."),e("br"),l(" Alias for nested fields, f.e. "),e("code",null,"field.nested"),l(", will not work.")])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-10"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-10"},"#")]),e("pre",null,[e("code",null,`?alias[all_translations]=translations
120
- &alias[dutch_translations]=translations
121
- &deep[dutch_translations][_filter][code][_eq]=nl-NL
122
- `)]),e("h3",{id:"graphql-10"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-10"},"#")]),e("p",null,[e("em",null,"Natively supported in GraphQL:")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
123
- articles {
124
- dutch_translations: translations(filter: { code: { _eq: `),e("span",{class:"hljs-string"},'"nl-NL"'),l(` } }) {
125
- id
126
- }
127
-
128
- all_translations: translations {
129
- id
130
- }
131
- }
132
- }
133
- `)])])])],-1),ae=e("hr",null,null,-1),se=e("h2",{id:"export"},[l("Export "),e("a",{class:"header-anchor",href:"#export"},"#")],-1),ne=e("p",null,"Save the current API response to a file.",-1),ie=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Saves the API response to a file. Accepts one of "),e("code",null,"json"),l(", "),e("code",null,"csv"),l(", "),e("code",null,"xml"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-11"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-11"},"#")]),e("pre",null,[e("code",null,`?export=json
134
- ?export=csv
135
- ?export=xml
136
- `)]),e("h3",{id:"graphql-11"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-11"},"#")]),e("p",null,"n/a")])],-1),re=e("hr",null,null,-1),oe=e("h2",{id:"functions"},[l("Functions "),e("a",{class:"header-anchor",href:"#functions"},"#")],-1),de=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Functions allow for \u201Clive\u201D modification of values stored in a field. Functions can be used in any query parameter you\u2019d normally supply a field key, including fields, aggregation, and filter.")])],-1),he=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,"Functions can be used by wrapping the field key in a JavaScript like syntax, for example:"),e("p",null,[e("code",null,"timestamp"),l(" -> "),e("code",null,"year(timestamp)")]),e("h3",{id:"datetime-filters"},[l("DateTime Filters "),e("a",{class:"header-anchor",href:"#datetime-filters"},"#")]),e("table",null,[e("thead",null,[e("tr",null,[e("th",null,"Filter"),e("th",null,"Description")])]),e("tbody",null,[e("tr",null,[e("td",null,[e("code",null,"year")]),e("td",null,"Extract the year from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"month")]),e("td",null,"Extract the month from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"week")]),e("td",null,"Extract the week from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"day")]),e("td",null,"Extract the day from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"weekday")]),e("td",null,"Extract the weekday from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"hour")]),e("td",null,"Extract the hour from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"minute")]),e("td",null,"Extract the minute from a datetime/date/timestamp field")]),e("tr",null,[e("td",null,[e("code",null,"second")]),e("td",null,"Extract the second from a datetime/date/timestamp field")])])]),e("div",{class:"warning hint"},[e("div",{class:"hint-title"},"GraphQL"),e("p",null,[l("Names aren\u2019t allowed to include any special characters in GraphQL, preventing the "),e("code",null,"()"),l(" syntax from being used.")]),e("p",null,[l("As an alternative, the above functions can be used by appending "),e("code",null,"_func"),l(" at the end of the field name, and using the function name as the nested field (see the example that follows).")])])]),e("div",{class:"right"},[e("h3",{id:"rest-api-12"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-12"},"#")]),e("pre",null,[e("code",null,`?fields=id,title,weekday(date_published)
137
- &filter[year(date_published)][_eq]=2021
138
- `)]),e("h3",{id:"graphql-12"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-12"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
139
- articles(filter: { date_published_func: { year: { _eq: `),e("span",{class:"hljs-number"},"2021"),l(` } } }) {
140
- id
141
- title
142
- date_published_func {
143
- weekday
144
- }
145
- }
146
- }
147
- `)])])])],-1),ce=e("hr",null,null,-1),ue=e("h2",{id:"metadata"},[l("Metadata "),e("a",{class:"header-anchor",href:"#metadata"},"#")],-1),pe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("p",null,[l("Metadata allows you to retrieve some additional information about the items in the collection you\u2019re fetching. "),e("code",null,"*"),l(" can be used as a wildcard to retrieve all metadata.")])])],-1),fe=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"total-count"},[l("Total Count "),e("a",{class:"header-anchor",href:"#total-count"},"#")]),e("p",null,"Returns the total item count of the collection you\u2019re querying."),e("h3",{id:"filter-count"},[l("Filter Count "),e("a",{class:"header-anchor",href:"#filter-count"},"#")]),e("p",null,"Returns the item count of the collection you\u2019re querying, taking the current filter/search parameters into account.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-13"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-13"},"#")]),e("pre",null,[e("code",null,`?meta=total_count
148
-
149
- ?meta=filter_count
150
-
151
- ?meta=*
152
- `)]),e("h3",{id:"graphql-13"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-13"},"#")]),e("p",null,"n/a")])],-1),ye={setup(ge,{expose:n}){const t={title:"Global Query Parameters",modularExtension:!1,pageClass:"page-reference"};return n({frontmatter:t}),(me,_e)=>{const i=a("router-link"),r=a("DocsWrapper");return o(),d(r,{frontmatter:t},{default:s(()=>[e("div",c,[u,p,f,g,m,_,v,e("div",y,[e("div",w,[e("p",null,[b,h(i,{to:"/docs/configuration/filter-rules"},{default:s(()=>[q]),_:1}),j])])]),x,k,G,A,E,S,T,R,L,I,P,Q,D,F,N,C,B,M,z,W,U,O,V,J,Y,H,K,X,Z,$,ee,le,te,ae,se,ne,ie,re,oe,de,he,ce,ue,pe,fe])]),_:1})}}};export{ye as default};
@@ -1,11 +0,0 @@
1
- import{r as a,p as c,q as d,w as o,z as e,t as n,S as t}from"./vendor.f59145b7.js";var h="assets/terminal-install.44adb787.png",u="assets/terminal-start.72064e09.png",_="assets/empty-state.bbc4e874.png",p="assets/add-field.880542d6.png",m="assets/create-item.32e17f40.png",g="assets/permissions.b47530e9.png";const f={class:"markdown-body"},b=e("blockquote",null,[e("p",null,"If you\u2019re looking for the fastest way to get up-and-running with Directus, this guide will walk you through getting things installed, configured, and modeled.")],-1),y=e("h2",{id:"1.-installation"},[t("1. Installation "),e("a",{class:"header-anchor",href:"#1.-installation"},"#")],-1),w=e("p",null,[t("Make sure you have the latest LTS version or newer of "),e("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),t(" installed, and have a running database ready to connect to.")],-1),v=e("p",null,"Run the following command in your terminal and follow the prompts.",-1),k=e("pre",null,[e("code",{class:"language-bash"},`npm init directus-project example-project
2
- `)],-1),I=e("p",null,[e("img",{src:h,alt:"Successful installation"})],-1),C=e("p",null,[t("Once the installation is complete, you can start Directus by navigating to your project folder (in this case "),e("code",null,"example-project"),t(") and running:")],-1),j=e("pre",null,[e("code",{class:"language-bash"},`npx directus start
3
- `)],-1),P=e("p",null,[e("img",{src:u,alt:"Server started"})],-1),F=e("h2",{id:"2.-login-to-app"},[t("2. Login to App "),e("a",{class:"header-anchor",href:"#2.-login-to-app"},"#")],-1),D=e("p",null,"With the server running, you\u2019re now able to login to your new Directus project and start using it.",-1),S=e("p",null,[t("Our start command stated that the server started at port "),e("code",null,"8055"),t(", which means we can navigate to "),e("a",{href:"http://localhost:8055",target:"_blank",rel:"noopener noreferrer"},"http://localhost:8055"),t(" to open Directus in the browser.")],-1),x=e("p",null,"Login using the admin credentials you configured during the installation in Step 1.",-1),T=e("h2",{id:"3.-create-a-collection"},[t("3. Create a Collection "),e("a",{class:"header-anchor",href:"#3.-create-a-collection"},"#")],-1),A=e("p",null,"Once logged in, you\u2019re greeted with the option to create your first Collection:",-1),N=e("p",null,[e("img",{src:_,alt:"Directus Empty State"})],-1),R=e("p",null,[t("Follow the prompts and create a Collection. For the sake of this demo, we\u2019ll be calling ours "),e("code",null,"articles"),t(", but feel free to make it your own!")],-1),M={class:"tip hint"},W=e("div",{class:"hint-title"},"More Info on Collections",-1),L=t("For a more in-depth guide to setting up Collections, see "),O=t("Collections"),B=t("."),E=e("h2",{id:"4.-create-a-field"},[t("4. Create a Field "),e("a",{class:"header-anchor",href:"#4.-create-a-field"},"#")],-1),q=e("p",null,[t("With the Collection created, it\u2019s time to start adding some Fields. Click the "),e("strong",null,"\u201CCreate Field\u201D"),t(" button, and select \u201CStandard Field\u201D:")],-1),V=e("p",null,[e("img",{src:p,alt:"Directus Add a Field"})],-1),z=e("p",null,[t("We\u2019ll be calling our Field "),e("code",null,"title"),t(". While Directus offers a range of powerful field customization options, we\u2019ll be sticking to the defaults for now. These defaults use the \u201CString\u201D datatype and \u201CText Input\u201D interface")],-1),G={class:"tip hint"},Q=e("div",{class:"hint-title"},"More Info on Fields",-1),H=t("To learn more about the different types of Fields, and all available options, see "),J=t("Fields"),U=t("."),K=e("h2",{id:"5.-create-an-item"},[t("5. Create an Item "),e("a",{class:"header-anchor",href:"#5.-create-an-item"},"#")],-1),X=e("p",null,[t("Now that we have a Collection with a Field configured, it\u2019s time to start adding some content. Navigate to the Content Module (top left), and click "),e("span",{mi:"",btn:""},"add"),t(" in the top-right to get started.")],-1),Y=e("p",null,[e("img",{src:m,alt:"Directus Create Item"})],-1),Z=e("p",null,[t("Once you\u2019re happy with your creation, click "),e("span",{mi:"",btn:""},"check"),t(" in the top-right to save your item to the database.")],-1),$={class:"tip hint"},ee=e("div",{class:"hint-title"},"More Info on Items",-1),te=t("To learn more about the different types of Items, and all available options, see "),oe=t("Items"),se=t("."),ne=e("h2",{id:"6.-set-role%2Fpublic-permissions"},[t("6. Set Role/Public Permissions "),e("a",{class:"header-anchor",href:"#6.-set-role%2Fpublic-permissions"},"#")],-1),ie=e("p",null,[t("By default, all content entered into Directus is considered private. This means that no data will be returned by the API, unless requested by an authenticated user that has the correct permissions. In order to have the API return our items, we\u2019ll have to setup some permissions. Navigate to "),e("strong",null,[t("Settings Module "),e("span",{mi:"",icon:"",dark:""},"chevron_right"),t(" Roles & Permissions")]),t(".")],-1),ae=e("p",null,[t("Directus ships with a special "),e("strong",null,"\u201CPublic\u201D"),t(" role that controls what data is returned to non-authenticated users. Select the public role, find your collection, and click the icon under the \u201Ceye\u201D icon (read/view permission) to allow the public role to read the items in your collection.")],-1),le=e("p",null,[e("img",{src:g,alt:"Directus Permissions"})],-1),re={class:"tip hint"},ce=e("div",{class:"hint-title"},"More Info on Roles & Permissions",-1),de=t("Roles & Permissions are extremely powerful and can get pretty in-depth. To learn all about the nuances in setting up roles & permissions, see "),he=t("Roles"),ue=t(" & "),_e=t("Permissions"),pe=t("."),me=e("h2",{id:"7.-connect-to-the-api"},[t("7. Connect to the API "),e("a",{class:"header-anchor",href:"#7.-connect-to-the-api"},"#")],-1),ge=t("Now that your project has some content in it, it\u2019s time to start using this content externally. Data can be accessed in a number of ways, including the REST API, GraphQL, the CLI, or even straight from the database. In this case, we\u2019ll use "),fe=t("the "),be=e("code",null,"/items/",-1),ye=t(" REST API endpoint"),we=t(" to retrieve the item we just created."),ve=e("p",null,[t("Using your browser, or an API tool like "),e("a",{href:"http://postman.com",target:"_blank",rel:"noopener noreferrer"},"Postman"),t(" or "),e("a",{href:"https://paw.cloud",target:"_blank",rel:"noopener noreferrer"},"Paw"),t(", open "),e("a",{href:"http://localhost:8055/items/articles",target:"_blank",rel:"noopener noreferrer"},"http://localhost:8055/items/articles"),t(".")],-1),ke=e("p",null,"And there it is! The Article Item you just created is being served in beautiful JSON, ready to be used anywhere and everywhere!",-1),Ie=e("pre",null,[e("code",{class:"language-json"},[t(`{
4
- `),e("span",{class:"hljs-attr"},'"data"'),t(`: [
5
- {
6
- `),e("span",{class:"hljs-attr"},'"id"'),t(": "),e("span",{class:"hljs-number"},"1"),t(`,
7
- `),e("span",{class:"hljs-attr"},'"title"'),t(": "),e("span",{class:"hljs-string"},'"Hello World!"'),t(`
8
- }
9
- ]
10
- }
11
- `)])],-1),De={setup(Ce,{expose:l}){const i={title:"Quickstart Guide",modularExtension:!1};return l({frontmatter:i}),(je,Pe)=>{const s=a("router-link"),r=a("DocsWrapper");return c(),d(r,{frontmatter:i},{default:o(()=>[e("div",f,[b,y,w,v,k,I,C,j,P,F,D,S,x,T,A,N,R,e("div",M,[W,e("p",null,[L,n(s,{to:"/docs/app/content-collections"},{default:o(()=>[O]),_:1}),B])]),E,q,V,z,e("div",G,[Q,e("p",null,[H,n(s,{to:"/docs/getting-started/glossary/#fields"},{default:o(()=>[J]),_:1}),U])]),K,X,Y,Z,e("div",$,[ee,e("p",null,[te,n(s,{to:"/docs/app/content-items/"},{default:o(()=>[oe]),_:1}),se])]),ne,ie,ae,le,e("div",re,[ce,e("p",null,[de,n(s,{to:"/docs/reference/system/roles"},{default:o(()=>[he]),_:1}),ue,n(s,{to:"/docs/reference/system/permissions"},{default:o(()=>[_e]),_:1}),pe])]),me,e("p",null,[ge,n(s,{to:"/docs/reference/items"},{default:o(()=>[fe,be,ye]),_:1}),we]),ve,ke,Ie])]),_:1})}}};export{De as default};
@@ -1 +0,0 @@
1
- import{bJ as S}from"./vendor.f59145b7.js";function z(c,v){return v.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(l){if(l!=="default"&&!(l in c)){var f=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(c,l,f.get?f:{enumerable:!0,get:function(){return t[l]}})}})}),Object.freeze(c)}var _={exports:{}};(function(c,v){(function(t){t(S.exports)})(function(t){t.registerHelper("wordChars","r",/[\w.]/),t.defineMode("r",function(l){function f(e){for(var n={},r=0;r<e.length;++r)n[e[r]]=!0;return n}var x=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],g=["list","quote","bquote","eval","return","call","parse","deparse"],y=["if","else","repeat","while","function","for","in","next","break"],A=["if","else","repeat","while","function","for"];t.registerHelper("hintWords","r",x.concat(g,y));var E=f(x),w=f(g),N=f(y),I=f(A),k=/[+\-*\/^<>=!&|~$:]/,o;function p(e,n){o=null;var r=e.next();if(r=="#")return e.skipToEnd(),"comment";if(r=="0"&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if(r=="."&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if(r=="'"||r=='"')return n.tokenize=L(r),"string";if(r=="`")return e.match(/[^`]+`/),"variable-3";if(r=="."&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var i=e.current();return E.propertyIsEnumerable(i)?"atom":N.propertyIsEnumerable(i)?(I.propertyIsEnumerable(i)&&!e.match(/\s*if(\s+|$)/,!1)&&(o="block"),"keyword"):w.propertyIsEnumerable(i)?"builtin":"variable"}else return r=="%"?(e.skipTo("%")&&e.next(),"operator variable-2"):r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)?"operator arrow":r=="="&&n.ctx.argList?"arg-is":k.test(r)?r=="$"?"operator dollar":(e.eatWhile(k),"operator"):/[\(\){}\[\];]/.test(r)?(o=r,r==";"?"semi":null):null}function L(e){return function(n,r){if(n.eat("\\")){var i=n.next();return i=="x"?n.match(/^[a-f0-9]{2}/i):(i=="u"||i=="U")&&n.eat("{")&&n.skipTo("}")?n.next():i=="u"?n.match(/^[a-f0-9]{4}/i):i=="U"?n.match(/^[a-f0-9]{8}/i):/[0-7]/.test(i)&&n.match(/^[0-7]{1,2}/),"string-2"}else{for(var u;(u=n.next())!=null;){if(u==e){r.tokenize=p;break}if(u=="\\"){n.backUp(1);break}}return"string"}}}var h=1,d=2,s=4;function a(e,n,r){e.ctx={type:n,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function m(e,n){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|n,column:r.column,prev:r.prev}}function b(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}return{startState:function(){return{tokenize:p,ctx:{type:"top",indent:-l.indentUnit,flags:d},indent:0,afterIdent:!1}},token:function(e,n){if(e.sol()&&((n.ctx.flags&3)==0&&(n.ctx.flags|=d),n.ctx.flags&s&&b(n),n.indent=e.indentation()),e.eatSpace())return null;var r=n.tokenize(e,n);return r!="comment"&&(n.ctx.flags&d)==0&&m(n,h),(o==";"||o=="{"||o=="}")&&n.ctx.type=="block"&&b(n),o=="{"?a(n,"}",e):o=="("?(a(n,")",e),n.afterIdent&&(n.ctx.argList=!0)):o=="["?a(n,"]",e):o=="block"?a(n,"block",e):o==n.ctx.type?b(n):n.ctx.type=="block"&&r!="comment"&&m(n,s),n.afterIdent=r=="variable"||r=="keyword",r},indent:function(e,n){if(e.tokenize!=p)return 0;var r=n&&n.charAt(0),i=e.ctx,u=r==i.type;return i.flags&s&&(i=i.prev),i.type=="block"?i.indent+(r=="{"?0:l.indentUnit):i.flags&h?i.column+(u?0:1):i.indent+(u?0:l.indentUnit)},lineComment:"#"}}),t.defineMIME("text/x-rsrc","r")})})();var O=_.exports,j=Object.freeze(z({__proto__:null,[Symbol.toStringTag]:"Module",default:O},[_.exports]));export{j as r};
@@ -1,115 +0,0 @@
1
- import{r as s,p as i,q as c,w as t,z as e,t as h,S as l}from"./vendor.f59145b7.js";const d={class:"markdown-body"},p={class:"two-up"},u={class:"left"},_=l("What data is linked to what other data. Allows you to assign authors to articles, products to sales, and whatever other structures you can think of. "),g=l("Learn more about Relationships"),f=l("."),m=e("div",{class:"right"},[e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#the-relation-object"},"The Relation Object")]),e("li",null,[e("a",{href:"#list-relations"},"List relations")]),e("li",null,[e("a",{href:"#list-relations-in-collection"},"List relations in collection")]),e("li",null,[e("a",{href:"#retrieve-a-relation"},"Retrieve a relation")]),e("li",null,[e("a",{href:"#create-a-relation"},"Create a Relation")]),e("li",null,[e("a",{href:"#update-a-relation"},"Update a Relation")]),e("li",null,[e("a",{href:"#delete-a-relation"},"Delete a Relation")])])])])],-1),y=e("hr",null,null,-1),j=e("h2",{id:"the-relation-object"},[l("The Relation Object "),e("a",{class:"header-anchor",href:"#the-relation-object"},"#")],-1),b=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"definitions"},[e("p",null,[e("code",null,"collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. This matches the table name in the database.")]),e("p",null,[e("code",null,"field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field that holds the related primary key. This matches the column name in the database.")]),e("p",null,[e("code",null,"related_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. This matches the table name in the database.")])]),e("h4",{id:"meta"},[l("Meta "),e("a",{class:"header-anchor",href:"#meta"},"#")]),e("p",null,"Directus metadata. Used to enable non-database relationship types"),e("div",{class:"definitions"},[e("p",null,[e("code",null,"id"),l(),e("strong",null,"integer"),e("br"),l(" Primary key of the metadata row in "),e("code",null,"directus_relations"),l(".")]),e("p",null,[e("code",null,"many_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the collection. Matches the top level "),e("code",null,"collection"),l(" field.")]),e("p",null,[e("code",null,"many_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the field. Matches the top level "),e("code",null,"field"),l(" field.")]),e("p",null,[e("code",null,"one_collection"),l(),e("strong",null,"string"),e("br"),l(" Name of the related collection. Matches the top level "),e("code",null,"related_collection"),l(" field.")]),e("p",null,[e("code",null,"one_field"),l(),e("strong",null,"string"),e("br"),l(" Name of the one to many field on the other side of the relation.")]),e("p",null,[e("code",null,"one_allowed_collections"),l(),e("strong",null,"string"),e("br"),l(" What collections are allowed to be used in a many-to-any context.")]),e("p",null,[e("code",null,"one_collection_field"),l(),e("strong",null,"string"),e("br"),l(" Field that holds the collection name in a many-to-any context.")]),e("p",null,[e("code",null,"one_deselect_action"),l(),e("strong",null,"nullify | delete"),e("br"),l(" Whether to nullify or delete related one-to-many records.")]),e("p",null,[e("code",null,"sort_field"),l(),e("strong",null,"string"),e("br"),l(" What field is used to hold the sort field.")]),e("p",null,[e("code",null,"junction_field"),l(),e("strong",null,"string"),e("br"),l(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),e("h4",{id:"schema"},[l("Schema "),e("a",{class:"header-anchor",href:"#schema"},"#")]),e("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),e("div",{class:"definitions"},[e("p",null,[e("code",null,"table"),l(),e("strong",null,"string"),e("br"),l(" The table name.")]),e("p",null,[e("code",null,"column"),l(),e("strong",null,"string"),e("br"),l(" The column name.")]),e("p",null,[e("code",null,"foreign_key_table"),l(),e("strong",null,"string"),e("br"),l(" Related table name.")]),e("p",null,[e("code",null,"foreign_key_column"),l(),e("strong",null,"string"),e("br"),l(" Related column name.")]),e("p",null,[e("code",null,"constraint_name"),l(),e("strong",null,"string"),e("br"),l(" Name for the foreign key constraint.")]),e("p",null,[e("code",null,"on_update"),l(),e("strong",null,"string"),e("br"),l(" Update trigger for the foreign key constraint.")]),e("p",null,[e("code",null,"on_delete"),l(),e("strong",null,"string"),e("br"),l(" Delete trigger for the foreign key constraint.")])])]),e("div",{class:"right"},[e("pre",null,[e("code",{class:"language-json"},[l(`{
2
- `),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"about_us"'),l(`,
3
- `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"logo"'),l(`,
4
- `),e("span",{class:"hljs-attr"},'"related_collection"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`,
5
- `),e("span",{class:"hljs-attr"},'"schema"'),l(`: {
6
- `),e("span",{class:"hljs-attr"},'"table"'),l(": "),e("span",{class:"hljs-string"},'"about_us"'),l(`,
7
- `),e("span",{class:"hljs-attr"},'"column"'),l(": "),e("span",{class:"hljs-string"},'"logo"'),l(`,
8
- `),e("span",{class:"hljs-attr"},'"foreign_key_table"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`,
9
- `),e("span",{class:"hljs-attr"},'"foreign_key_column"'),l(": "),e("span",{class:"hljs-string"},'"id"'),l(`,
10
- `),e("span",{class:"hljs-attr"},'"constraint_name"'),l(": "),e("span",{class:"hljs-string"},'"about_us_logo_foreign"'),l(`,
11
- `),e("span",{class:"hljs-attr"},'"on_update"'),l(": "),e("span",{class:"hljs-string"},'"NO ACTION"'),l(`,
12
- `),e("span",{class:"hljs-attr"},'"on_delete"'),l(": "),e("span",{class:"hljs-string"},'"SET NULL"'),l(`
13
- },
14
- `),e("span",{class:"hljs-attr"},'"meta"'),l(`: {
15
- `),e("span",{class:"hljs-attr"},'"id"'),l(": "),e("span",{class:"hljs-number"},"1"),l(`,
16
- `),e("span",{class:"hljs-attr"},'"junction_field"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
17
- `),e("span",{class:"hljs-attr"},'"many_collection"'),l(": "),e("span",{class:"hljs-string"},'"about_us"'),l(`,
18
- `),e("span",{class:"hljs-attr"},'"many_field"'),l(": "),e("span",{class:"hljs-string"},'"logo"'),l(`,
19
- `),e("span",{class:"hljs-attr"},'"one_allowed_collections"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
20
- `),e("span",{class:"hljs-attr"},'"one_collection"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`,
21
- `),e("span",{class:"hljs-attr"},'"one_collection_field"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
22
- `),e("span",{class:"hljs-attr"},'"one_deselect_action"'),l(": "),e("span",{class:"hljs-string"},'"nullify"'),l(`,
23
- `),e("span",{class:"hljs-attr"},'"one_field"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`,
24
- `),e("span",{class:"hljs-attr"},'"sort_field"'),l(": "),e("span",{class:"hljs-literal"},"null"),l(`
25
- }
26
- }
27
- `)])])])],-1),q=e("hr",null,null,-1),v=e("h2",{id:"list-relations"},[l("List relations "),e("a",{class:"header-anchor",href:"#list-relations"},"#")],-1),x=e("p",null,"List all relations that exist in Directus.",-1),w=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Permissions"),e("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, relations that apply to a collection that the current user doesn\u2019t have access to are stripped out.")]),e("h3",{id:"query-parameters"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"returns"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns"},"#")]),e("p",null,[l("Array of "),e("a",{href:"#the-relation-object"},"relation objects"),l(". If no items are available, data will be an empty array.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api"},"#")]),e("pre",null,[e("code",null,`GET /relations
28
- `)]),e("h3",{id:"graphql"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
29
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),l(` {
30
- relations: [directus_relations]
31
- }
32
- `)])]),e("h5",{id:"example"},[l("Example "),e("a",{class:"header-anchor",href:"#example"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
33
- relations {
34
- collection
35
- field
36
- }
37
- }
38
- `)])])])],-1),T=e("hr",null,null,-1),R=e("h2",{id:"list-relations-in-collection"},[l("List relations in collection "),e("a",{class:"header-anchor",href:"#list-relations-in-collection"},"#")],-1),E=e("p",null,"List all relations that exist in a given collection.",-1),k=e("div",{class:"two-up"},[e("div",{class:"left"},[e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Permissions"),e("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, relations that apply to a collection that the current user doesn\u2019t have access to are stripped out.")]),e("h3",{id:"query-parameters-2"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-2"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"returns-2"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-2"},"#")]),e("p",null,[l("Array of "),e("a",{href:"#the-relation-object"},"relation objects"),l(". If no items are available, data will be an empty array.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-2"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),e("pre",null,[e("code",null,`GET /relations/:collection
39
- `)]),e("h5",{id:"example-2"},[l("Example "),e("a",{class:"header-anchor",href:"#example-2"},"#")]),e("pre",null,[e("code",null,`GET /relations/articles
40
- `)]),e("h3",{id:"graphql-2"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-2"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
41
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),l(` {
42
- relations_in_collection(collection:`),e("span",{class:"hljs-type"}," String"),l(`!): [directus_relations]
43
- }
44
- `)])]),e("h5",{id:"example-3"},[l("Example "),e("a",{class:"header-anchor",href:"#example-3"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
45
- relations_in_collection(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(`) {
46
- collection
47
- field
48
- }
49
- }
50
- `)])])])],-1),P=e("hr",null,null,-1),S=e("h2",{id:"retrieve-a-relation"},[l("Retrieve a relation "),e("a",{class:"header-anchor",href:"#retrieve-a-relation"},"#")],-1),L=e("p",null,"List an existing relation by collection/field name.",-1),D=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-3"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-3"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"returns-3"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-3"},"#")]),e("p",null,[l("Returns the requested "),e("a",{href:"#the-relation-object"},"relation object"),l(".")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-3"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-3"},"#")]),e("pre",null,[e("code",null,`GET /relations/:collection/:field
51
- `)]),e("h5",{id:"example-4"},[l("Example "),e("a",{class:"header-anchor",href:"#example-4"},"#")]),e("pre",null,[e("code",null,`GET /relations/articles/featured_image
52
- `)]),e("h3",{id:"graphql-3"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-3"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
53
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Query"),l(` {
54
- relations_by_name(collection:`),e("span",{class:"hljs-type"}," String"),l("!, field:"),e("span",{class:"hljs-type"}," String"),l(`!): directus_relations
55
- }
56
- `)])]),e("h5",{id:"example-5"},[l("Example "),e("a",{class:"header-anchor",href:"#example-5"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"query"),l(` {
57
- relations_by_name(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(", field: "),e("span",{class:"hljs-string"},'"featured_image"'),l(`) {
58
- collection
59
- field
60
- related_collection
61
- }
62
- }
63
- `)])])])],-1),A=e("hr",null,null,-1),N=e("h2",{id:"create-a-relation"},[l("Create a Relation "),e("a",{class:"header-anchor",href:"#create-a-relation"},"#")],-1),Q=e("p",null,"Create a new relation.",-1),O=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-4"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-4"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"request-body"},[l("Request Body "),e("a",{class:"header-anchor",href:"#request-body"},"#")]),e("p",null,[l("A partial "),e("a",{href:"#the-relation-object"},"relation object"),l(".")]),e("h3",{id:"returns-4"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-4"},"#")]),e("p",null,[l("Returns the "),e("a",{href:"#the-relation-object"},"relation object"),l(" for the created relation.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-4"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-4"},"#")]),e("pre",null,[e("code",null,`POST /relations
64
- `)]),e("h5",{id:"example-6"},[l("Example "),e("a",{class:"header-anchor",href:"#example-6"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// POST /relations"),l(`
65
-
66
- {
67
- `),e("span",{class:"hljs-attr"},'"collection"'),l(": "),e("span",{class:"hljs-string"},'"articles"'),l(`,
68
- `),e("span",{class:"hljs-attr"},'"field"'),l(": "),e("span",{class:"hljs-string"},'"featured_image"'),l(`,
69
- `),e("span",{class:"hljs-attr"},'"related_collection"'),l(": "),e("span",{class:"hljs-string"},'"directus_files"'),l(`
70
- }
71
- `)])]),e("h3",{id:"graphql-4"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-4"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
72
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
73
- create_relations_item(data: create_directus_relations_input!): directus_relations
74
- }
75
- `)])]),e("h5",{id:"example-7"},[l("Example "),e("a",{class:"header-anchor",href:"#example-7"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),l(` {
76
- create_relations_item(
77
- data: { collection: `),e("span",{class:"hljs-string"},'"articles"'),l(", field: "),e("span",{class:"hljs-string"},'"featured_image"'),l(", related_collection: "),e("span",{class:"hljs-string"},'"directus_files"'),l(` }
78
- ) {
79
- collection
80
- field
81
- related_collection
82
- }
83
- }
84
- `)])])])],-1),G=e("hr",null,null,-1),C=e("h2",{id:"update-a-relation"},[l("Update a Relation "),e("a",{class:"header-anchor",href:"#update-a-relation"},"#")],-1),I=e("p",null,"Update an existing relation.",-1),M=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"query-parameters-5"},[l("Query Parameters "),e("a",{class:"header-anchor",href:"#query-parameters-5"},"#")]),e("p",null,"Doesn\u2019t support any query parameters."),e("h3",{id:"request-body-2"},[l("Request Body "),e("a",{class:"header-anchor",href:"#request-body-2"},"#")]),e("p",null,[l("A partial "),e("a",{href:"#the-relation-object"},"relation object"),l(".")]),e("h3",{id:"returns-5"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-5"},"#")]),e("p",null,[l("Returns the "),e("a",{href:"#the-relation-object"},"relation object"),l(" for the created relation.")])]),e("div",{class:"right"},[e("h3",{id:"rest-api-5"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-5"},"#")]),e("pre",null,[e("code",null,`PATCH /relations/:collection/:field
85
- `)]),e("h5",{id:"example-8"},[l("Example "),e("a",{class:"header-anchor",href:"#example-8"},"#")]),e("pre",null,[e("code",{class:"language-json"},[e("span",{class:"hljs-comment"},"// PATCH /relations/articles/author"),l(`
86
-
87
- {
88
- `),e("span",{class:"hljs-attr"},'"meta"'),l(`: {
89
- `),e("span",{class:"hljs-attr"},'"one_field"'),l(": "),e("span",{class:"hljs-string"},'"articles"'),l(`
90
- }
91
- }
92
- `)])]),e("h3",{id:"graphql-5"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-5"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
93
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
94
- update_relations_item(collection:`),e("span",{class:"hljs-type"}," String"),l("!, field:"),e("span",{class:"hljs-type"}," String"),l(`!, data: update_directus_relations_input!): directus_relations
95
- }
96
- `)])]),e("h5",{id:"example-9"},[l("Example "),e("a",{class:"header-anchor",href:"#example-9"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),l(` {
97
- update_relations_item(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(", field: "),e("span",{class:"hljs-string"},'"author"'),l(", data: { meta: { one_field: "),e("span",{class:"hljs-string"},'"articles"'),l(` } }) {
98
- collection
99
- field
100
- related_collection
101
- }
102
- }
103
- `)])])])],-1),W=e("hr",null,null,-1),B=e("h2",{id:"delete-a-relation"},[l("Delete a Relation "),e("a",{class:"header-anchor",href:"#delete-a-relation"},"#")],-1),U=e("p",null,"Delete an existing relation.",-1),F=e("div",{class:"two-up"},[e("div",{class:"left"},[e("h3",{id:"returns-6"},[l("Returns "),e("a",{class:"header-anchor",href:"#returns-6"},"#")]),e("p",null,"Empty body.")]),e("div",{class:"right"},[e("h3",{id:"rest-api-6"},[l("REST API "),e("a",{class:"header-anchor",href:"#rest-api-6"},"#")]),e("pre",null,[e("code",null,`DELETE /relations/:collection/:field
104
- `)]),e("h5",{id:"example-10"},[l("Example "),e("a",{class:"header-anchor",href:"#example-10"},"#")]),e("pre",null,[e("code",null,`DELETE /relations/articles/author
105
- `)]),e("h3",{id:"graphql-6"},[l("GraphQL "),e("a",{class:"header-anchor",href:"#graphql-6"},"#")]),e("pre",null,[e("code",null,`POST /graphql/system
106
- `)]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"type"),e("span",{class:"hljs-type"}," Mutation"),l(` {
107
- delete_relations_item(collection:`),e("span",{class:"hljs-type"}," String"),l("!, field:"),e("span",{class:"hljs-type"}," String"),l(`!): delete_one
108
- }
109
- `)])]),e("h5",{id:"example-11"},[l("Example "),e("a",{class:"header-anchor",href:"#example-11"},"#")]),e("pre",null,[e("code",{class:"language-graphql"},[e("span",{class:"hljs-keyword"},"mutation"),l(` {
110
- delete_relations_item(collection: `),e("span",{class:"hljs-string"},'"articles"'),l(", field: "),e("span",{class:"hljs-string"},'"author"'),l(`) {
111
- collection
112
- field
113
- }
114
- }
115
- `)])])])],-1),K={setup(V,{expose:n}){const a={title:"Relations",modularExtension:!1,pageClass:"page-reference"};return n({frontmatter:a}),(H,z)=>{const r=s("router-link"),o=s("DocsWrapper");return i(),c(o,{frontmatter:a},{default:t(()=>[e("div",d,[e("div",p,[e("div",u,[e("blockquote",null,[e("p",null,[_,h(r,{to:"/docs/getting-started/glossary/#relationships"},{default:t(()=>[g]),_:1}),f])])]),m]),y,j,b,q,v,x,w,T,R,E,k,P,S,L,D,A,N,Q,O,G,C,I,M,W,B,U,F])]),_:1})}}};export{K as default};
@@ -1,55 +0,0 @@
1
- import{r as s,p as c,q as h,w as n,z as e,t as l,S as t}from"./vendor.f59145b7.js";var d="assets/m2o.ac02ed03.png",u="assets/o2m.339378e0.png",f="assets/translations.2f0017a9.png",_="assets/translations-2.29d07342.png",m="assets/m2m.07bed843.png",p="assets/m2a.347ed339.png";const y={class:"markdown-body"},g=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),w=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"},"Many-to-One (M2O)")]),e("li",null,[e("a",{href:"#one-to-many-(o2m)"},"One-to-Many (O2M)")]),e("li",null,[e("a",{href:"#translations-(o2m)"},"Translations (O2M)")]),e("li",null,[e("a",{href:"#many-to-many-(m2m)"},"Many-to-Many (M2M)")]),e("li",null,[e("a",{href:"#many-to-any-(m2a)"},"Many-to-Any (M2A)")]),e("li",null,[e("a",{href:"#one-to-one-(o2o)"},"One-to-One (O2O)")])])])],-1),M=e("h3",{id:"introduction"},[t("Introduction "),e("a",{class:"header-anchor",href:"#introduction"},"#")],-1),v=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the sometimes confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize them in your mind\u2019s eye.",-1),b=e("h3",{id:"primary-and-foreign-keys"},[t("Primary and Foreign Keys "),e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#")],-1),O=t("Every "),k=t("Item"),T=t(" in a relational database has a unique "),C=t("Primary Key"),x=t(" (or \u201CPK\u201D) that identifies it within its "),A=t("Collection"),j=t(". Because it\u2019s required, the key is the first "),I=t("field"),P=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),D=e("em",null,"never",-1),S=t(" change."),F=e("p",null,[t("To link items together relationally, you simply save a reference to an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK). If the primary key is a "),e("em",null,"person"),t(", the foreign key is like their "),e("em",null,"business card"),t(". It references the actual person, providing just enough information to find them.")],-1),R=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Composite & Compound Keys"),e("p",null,[t("In the above explanation we\u2019ve ignored "),e("em",null,"composite"),t(" and "),e("em",null,"compound"),t(" keys, which are essentially unique keys created by combining "),e("em",null,"multiple"),t(" field/column values.")])],-1),K=e("h3",{id:"perspective-matters"},[t("Perspective Matters "),e("a",{class:"header-anchor",href:"#perspective-matters"},"#")],-1),q=e("p",null,"Just like primary and foreign keys, relationships are always described relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of the opposite collection would reverse it. This means that a many-to-one relationship can also be seen as a one-to-many relationship, it just depends on which collection is considered the parent.",-1),N=e("h2",{id:"many-to-one-(m2o)"},[t("Many-to-One (M2O) "),e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#")],-1),J=e("p",null,[t("The Many-to-One is the only relationship type with an actual field on the parent Collection. This field saves the foreign key to a single related item. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(".")],-1),W=e("p",null,"Below is an example of a M2O relationship:",-1),B=e("pre",null,[e("code",null,`cities (the "Many" Collection)
2
- - id (Primary Key)
3
- - name
4
- - country (the M2O field that stores the country key)
5
-
6
- countries (the "One" Collection)
7
- - id (Primary Key)
8
- - name
9
- `)],-1),Y=e("h3",{id:"setup"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup"},"#")],-1),U=e("p",null,[e("img",{src:d,alt:"M2O"})],-1),L=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its primary key field.",-1),z=e("p",null,[t("If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),E=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the O2M alias (see below) that pairs with this M2O.")],-1),H=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There is one option:")],-1),V=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Related Collection]"),t(" \u2014 When the related item (O2M) is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the parent M2O field (default)"),e("li",null,"Set the parent M2O field to its default value"),e("li",null,"Delete the parent collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),G=e("h2",{id:"one-to-many-(o2m)"},[t("One-to-Many (O2M) "),e("a",{class:"header-anchor",href:"#one-to-many-(o2m)"},"#")],-1),Q=t("The One-to-Many relationship is the "),X=e("strong",null,"exact same relationship",-1),Z=t(" as a Many-to-One (above), just seen from the opposite collection\u2019s perspective. The O2M is stored as an "),$=t("Alias"),ee=t(" field on its parent Collection that dynamically lists all items connected via the opposite Many-to-One. So, while the M2O will show a single country for the parent city, the O2M shows all cities for the parent country."),te=e("p",null,"Below is an example of a O2M relationship:",-1),ne=e("pre",null,[e("code",null,`countries (the "One" Collection)
10
- - id (Primary Key)
11
- - name
12
- - *cities* (the O2M alias field that lists references from "cities.country")
13
-
14
- cities (the "Many" Collection)
15
- - id (Primary Key)
16
- - name
17
- - country (the M2O field that stores the country key)
18
- `)],-1),oe=e("h3",{id:"setup-2"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-2"},"#")],-1),le=e("p",null,[e("img",{src:u,alt:"O2M"})],-1),ie=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its M2O field.",-1),se=e("p",null,[t("You can select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) or create a "),e("strong",null,"new"),t(" one by entering a unique collection name. Next, you can select an existing field (highlights green) or create a new one by entering a field name unique to its collection.")],-1),ae=e("p",null,"The related field will store the value of this collection\u2019s primary key field, so both must have the same type. For this reason, when selecting existing fields, options will be disabled if they don\u2019t have a matching type.",-1),re=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the M2O field (see above) that pairs with this O2M.")],-1),ce=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Related Collection, or entering the name of a new field to be created.")],-1),he=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are two options:")],-1),de=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Related Collection]"),t(" \u2014 When the value of the M2O is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the M2O field value (default)"),e("li",null,"Delete the M2O item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this O2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the related M2O field (default)"),e("li",null,"Set the related M2O field to its default value"),e("li",null,"Delete the related collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),ue=e("h2",{id:"translations-(o2m)"},[t("Translations (O2M) "),e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#")],-1),fe=t("The Translations relationship is just a special version of the standard O2M. Just like the O2M, it creates an "),_e=t("Alias"),me=t(" field that is used to list all related items (the translations). Translations themselves are stored in a separate collection, which is then further related to a "),pe=e("em",null,"third",-1),ye=t(" collection that stores all languages."),ge=e("h3",{id:"setup-3"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-3"},"#")],-1),we=e("p",null,[e("img",{src:f,alt:"Translations"})],-1),Me=e("p",null,"The easiest way to add translations is to use the wizard, which only asks for the Translation field name. All required fields and relationships will then be automatically created and configured.",-1),ve=e("p",null,[e("img",{src:_,alt:"Translations"})],-1),be=e("p",null,[t("If you choose to switch to "),e("strong",null,"manual setup"),t(", you will be presented with a similar relationship setup to O2M or M2M. The parent collection and primary key are known, so those fields are disabled.")],-1),Oe=e("p",null,"Next, we configure the Translation Collection. Set to \u201CAuto Fill\u201D by default, this will enter intelligent naming based on related names, and disables all fields. Disabling Auto Fill will enable all fields, allowing you to name the collection that holds the translations, as well as the two fields (each a M2O) that store foreign keys to the parent item and language.",-1),ke=e("p",null,[t("Lastly, you would select/create the Languages collection, which stores the languages available for this translations field. It is common practice to reuse a single languages collection throughout your project, unless translation fields need to support different language sets. For the language "),e("code",null,"code"),t(" we recommend using the IETF language tag (eg: "),e("code",null,"en-US"),t(") which combines the ISO 639-1 and ISO 3166\u20111 standards, but anything can be used (eg: "),e("code",null,"english"),t(").")],-1),Te=e("h2",{id:"many-to-many-(m2m)"},[t("Many-to-Many (M2M) "),e("a",{class:"header-anchor",href:"#many-to-many-(m2m)"},"#")],-1),Ce=t("The Many-to-Many relationship is actually just "),xe=e("strong",null,"two relationships combined",-1),Ae=t(" (O2M+M2O) that join together three different collections. The M2M is stored as an "),je=t("Alias"),Ie=t(" field on its parent Collection that dynamically lists all items connected via a "),Pe=t("junction collection"),De=t(". For example, a "),Se=e("em",null,"recipe",-1),Fe=t(" can have many "),Re=e("em",null,"ingredients",-1),Ke=t(", and "),qe=e("em",null,"ingredients",-1),Ne=t(" can be in many "),Je=e("em",null,"recipes",-1),We=t("."),Be=e("p",null,"Below is an example of a M2M relationship:",-1),Ye=e("pre",null,[e("code",null,`recipes (Collection)
19
- - id (Primary Key)
20
- - name
21
- - *ingredients* (M2M/O2M alias field that lists references from "recipe_ingredients")
22
-
23
- ingredients (Collection)
24
- - id (Primary Key)
25
- - name
26
- - *recipes* (M2M/O2M alias field that lists references from "recipe_ingredients")
27
-
28
- recipe_ingredients (Junction Collection)
29
- - id (Primary Key)
30
- - recipe (stores the recipe key)
31
- - ingredient (stores ingredient key)
32
- - quantity (other optional data on the connection)
33
- `)],-1),Ue=e("p",null,[t("Notice that the example above also has a "),e("code",null,"quantity"),t(" field on the Junction Collection, which tracks how much of each ingredient is needed for the recipe. You can add any other "),e("em",null,"contextual"),t(" fields to the junction, and they will also be included at the top of the App\u2019s relational Item Page form.")],-1),Le=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Self-Referencing"),e("p",null,[t("You can also have a M2M relationship that connects items within the "),e("em",null,"same"),t(" collection. An example of this is \u201CRelated Articles\u201D, where an article might relate to many other articles.")])],-1),ze=e("h3",{id:"setup-4"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-4"},"#")],-1),Ee=e("p",null,[e("img",{src:m,alt:"M2M"})],-1),He=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),Ve=e("p",null,[t("Next you should configure the Related Collection. If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),Ge=t("Lastly, we configure the "),Qe=t("Junction Collection"),Xe=t(", which sits between the two related collections, storing all links between the two. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),Ze=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the reverse M2M field on the "),e("em",null,"related"),t(" collection.")],-1),$e=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),et=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),tt=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2M is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Delete of [Related Collection Item]"),t(" \u2014 When the related M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),nt=e("h2",{id:"many-to-any-(m2a)"},[t("Many-to-Any (M2A) "),e("a",{class:"header-anchor",href:"#many-to-any-(m2a)"},"#")],-1),ot=t("Sometimes called a \u201Cmatrix field\u201D or \u201Creplicator\u201D. Like the M2M, the M2A is stored as an "),lt=t("Alias"),it=t(" field on its parent Collection that dynamically lists all items connected via a "),st=t("junction collection"),at=t(". However, there is one key difference: one side of the junction also stores a "),rt=e("strong",null,"collection key",-1),ct=t(". This combination of collection name and primary key means that you can effectively store a reference to "),ht=e("em",null,"any",-1),dt=t(" item in the database. You can then artificially limit which collections are valid through a related collections \u201Callow list\u201D."),ut=e("p",null,[t("A common example of a M2A is a \u201CPage Builder\u201D, which has a "),e("em",null,"Pages"),t(" collection that includes any number of different \u201Csection\u201D Collections, such as: \u201CHeading\u201D, \u201CText\u201D, and \u201CImage\u201D. In this example the junction table will link different sections (from different collections) with a page, creating relational layouts.")],-1),ft=e("p",null,"Below is an example of a M2A relationship:",-1),_t=e("pre",null,[e("code",null,`pages (Collection)
34
- - id
35
- - name
36
- - *sections* (O2M/M2A alias field that lists references from "page_sections")
37
-
38
- page_sections (Junction Collection)
39
- - id
40
- - pages_id (stores the primary key of the parent page)
41
- - collection (stores name of the related collection, for example "headings", "text", or "images")
42
- - item (stores the primary key of the related item)
43
-
44
- headings (Collection)
45
- - id
46
- - title
47
-
48
- text (Collection)
49
- - id
50
- - text
51
-
52
- images (Collection)
53
- - id
54
- - file
55
- `)],-1),mt=e("h3",{id:"setup-5"},[t("Setup "),e("a",{class:"header-anchor",href:"#setup-5"},"#")],-1),pt=e("p",null,[e("img",{src:p,alt:"M2A"})],-1),yt=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),gt=t("Next, we configure the "),wt=t("Junction Collection"),Mt=t(", which sits between the related collections, storing all links between them. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),vt=e("p",null,[t("Lastly, you should select any desired Related Collections. Unlike other relationships, you can\u2019t "),e("em",null,"create"),t(" these related collections here, so ensure all related collections you need are created beforehand.")],-1),bt=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Auto-generating"),e("p",null,"If you enter a collection/field name that doesn\u2019t exist yet, Directus will auto-generate these collections/fields once you save the changes on the new M2A field.")],-1),Ot=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this M2A field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),kt=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),Tt=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When a M2A item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2A is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])])],-1),Ct=e("h2",{id:"one-to-one-(o2o)"},[t("One-to-One (O2O) "),e("a",{class:"header-anchor",href:"#one-to-one-(o2o)"},"#")],-1),xt=t("Directus does not include a dedicated One-to-One (O2O) relationship type or interface. However, O2O is essentially the same as a M2O (storing a foreign key). The only difference is that a O2O enforces the cardinality. In other words, selecting a relational item in a O2O means that item can not be selected elsewhere (it can only be used once). This functionality can be added by checking and constraining uniqueness via a "),At=t("custom event hook"),jt=t(" or "),It=t("custom interface"),Pt=t("."),Dt=e("p",null,[t("An example of this is a "),e("em",null,"person"),t(" only has one unique set of "),e("em",null,"fingerprints"),t(", and those "),e("em",null,"fingerprints"),t(" only belong to one "),e("em",null,"person"),t(".")],-1),qt={setup(St,{expose:a}){const i={title:"Relationships",modularExtension:!1};return a({frontmatter:i}),(Ft,Rt)=>{const o=s("router-link"),r=s("DocsWrapper");return c(),h(r,{frontmatter:i},{default:n(()=>[e("div",y,[g,w,M,v,b,e("p",null,[O,l(o,{to:"/docs/getting-started/glossary/#items"},{default:n(()=>[k]),_:1}),T,l(o,{to:"/docs/getting-started/glossary/#primary-key-pk"},{default:n(()=>[C]),_:1}),x,l(o,{to:"/docs/getting-started/glossary/#collections"},{default:n(()=>[A]),_:1}),j,l(o,{to:"/docs/getting-started/glossary/#fields"},{default:n(()=>[I]),_:1}),P,D,S]),F,R,K,q,N,J,W,B,Y,U,L,z,E,H,V,G,e("p",null,[Q,X,Z,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[$]),_:1}),ee]),te,ne,oe,le,ie,se,ae,re,ce,he,de,ue,e("p",null,[fe,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[_e]),_:1}),me,pe,ye]),ge,we,Me,ve,be,Oe,ke,Te,e("p",null,[Ce,xe,Ae,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[je]),_:1}),Ie,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Pe]),_:1}),De,Se,Fe,Re,Ke,qe,Ne,Je,We]),Be,Ye,Ue,Le,ze,Ee,He,Ve,e("p",null,[Ge,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Qe]),_:1}),Xe]),Ze,$e,et,tt,nt,e("p",null,[ot,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[lt]),_:1}),it,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[st]),_:1}),at,rt,ct,ht,dt]),ut,ft,_t,mt,pt,yt,e("p",null,[gt,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[wt]),_:1}),Mt]),vt,bt,Ot,kt,Tt,Ct,e("p",null,[xt,l(o,{to:"/docs/extensions/hooks/"},{default:n(()=>[At]),_:1}),jt,l(o,{to:"/docs/extensions/interfaces/"},{default:n(()=>[It]),_:1}),Pt]),Dt])]),_:1})}}};export{qt as default};
@@ -1,40 +0,0 @@
1
- import{r as l,p as c,q as h,w as t,z as s,t as o,S as e}from"./vendor.f59145b7.js";const d={class:"markdown-body"},_={class:"two-up"},p={class:"left"},u=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),f=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"},"The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"},"List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"},"Retrieve a revision")])])])])],-1),g=s("hr",null,null,-1),y=s("h2",{id:"the-revision-object"},[e("The Revision Object "),s("a",{class:"header-anchor",href:"#the-revision-object"},"#")],-1),b={class:"two-up"},j={class:"left"},q={class:"definitions"},x=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),S=e(" Related activity record. Many-to-one to "),T=e("activity"),P=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),D=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),Q=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),A=s("p",null,[s("code",null,"parent"),e(),s("strong",null,"many-to-one"),s("br"),e(" Parent revision that triggered this revision. Many-to-one to revisions (recursive).")],-1),G=s("div",{class:"right"},[s("pre",null,[s("code",{class:"language-json"},[e(`{
2
- `),s("span",{class:"hljs-attr"},'"id"'),e(": "),s("span",{class:"hljs-number"},"368"),e(`,
3
- `),s("span",{class:"hljs-attr"},'"activity"'),e(": "),s("span",{class:"hljs-number"},"438"),e(`,
4
- `),s("span",{class:"hljs-attr"},'"collection"'),e(": "),s("span",{class:"hljs-string"},'"articles"'),e(`,
5
- `),s("span",{class:"hljs-attr"},'"item"'),e(": "),s("span",{class:"hljs-string"},'"1"'),e(`,
6
- `),s("span",{class:"hljs-attr"},'"data"'),e(`: {
7
- `),s("span",{class:"hljs-attr"},'"title"'),e(": "),s("span",{class:"hljs-string"},'"Hello World"'),e(`
8
- },
9
- `),s("span",{class:"hljs-attr"},'"delta"'),e(`: {
10
- `),s("span",{class:"hljs-attr"},'"title"'),e(": "),s("span",{class:"hljs-string"},'"Hello from the Docs!"'),e(`
11
- },
12
- `),s("span",{class:"hljs-attr"},'"parent"'),e(": "),s("span",{class:"hljs-literal"},"null"),e(`
13
- }
14
- `)])])],-1),H=s("hr",null,null,-1),I=s("h2",{id:"list-revisions"},[e("List revisions "),s("a",{class:"header-anchor",href:"#list-revisions"},"#")],-1),O=s("p",null,"List all revisions that exist in Directus.",-1),B={class:"two-up"},N={class:"left"},V=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, revisions that apply to a collection that the current user doesn\u2019t have access to are stripped out.")],-1),W=s("h3",{id:"query-parameters"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters"},"#")],-1),M=e("Supports all "),z=e("global query parameters"),F=e("."),J=s("h3",{id:"returns"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns"},"#")],-1),K=e("An array of up to "),U=e("limit"),X=e(),Y=s("a",{href:"#the-revision-object"},"revision objects",-1),Z=e(". If no items are available, data will be an empty array."),$={class:"right"},ss=s("h3",{id:"rest-api"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api"},"#")],-1),es=s("pre",null,[s("code",null,`GET /revisions
15
- SEARCH /revisions
16
- `)],-1),ts=e("Learn more about SEARCH ->"),ns=s("h3",{id:"graphql"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql"},"#")],-1),os=s("pre",null,[s("code",null,`POST /graphql/system
17
- `)],-1),as=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
18
- revisions: [directus_revisions]
19
- }
20
- `)])],-1),ls=s("h5",{id:"examples"},[e("Examples "),s("a",{class:"header-anchor",href:"#examples"},"#")],-1),rs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
21
- revisions {
22
- id
23
- data
24
- delta
25
- }
26
- }
27
- `)])],-1),is=s("hr",null,null,-1),cs=s("h2",{id:"retrieve-a-revision"},[e("Retrieve a revision "),s("a",{class:"header-anchor",href:"#retrieve-a-revision"},"#")],-1),hs=s("p",null,"List an existing revision by primary key.",-1),ds={class:"two-up"},_s={class:"left"},ps=s("h3",{id:"query-parameters-2"},[e("Query Parameters "),s("a",{class:"header-anchor",href:"#query-parameters-2"},"#")],-1),us=e("Supports all "),vs=e("global query parameters"),ms=e("."),fs=s("h3",{id:"returns-2"},[e("Returns "),s("a",{class:"header-anchor",href:"#returns-2"},"#")],-1),gs=s("p",null,[e("Returns the requested "),s("a",{href:"#the-revision-object"},"revision object"),e(".")],-1),ys=s("div",{class:"right"},[s("h3",{id:"rest-api-2"},[e("REST API "),s("a",{class:"header-anchor",href:"#rest-api-2"},"#")]),s("pre",null,[s("code",null,`GET /revisions/:id
28
- `)]),s("h5",{id:"example"},[e("Example "),s("a",{class:"header-anchor",href:"#example"},"#")]),s("pre",null,[s("code",null,`GET /revisions/322
29
- `)]),s("h3",{id:"graphql-2"},[e("GraphQL "),s("a",{class:"header-anchor",href:"#graphql-2"},"#")]),s("pre",null,[s("code",null,`POST /graphql/system
30
- `)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
31
- revisions_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_revisions
32
- }
33
- `)])]),s("h5",{id:"example-2"},[e("Example "),s("a",{class:"header-anchor",href:"#example-2"},"#")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
34
- revisions_by_id(id: `),s("span",{class:"hljs-number"},"322"),e(`) {
35
- id
36
- data
37
- delta
38
- }
39
- }
40
- `)])])],-1),ws={setup(bs,{expose:r}){const a={title:"Revisions",modularExtension:!1,pageClass:"page-reference"};return r({frontmatter:a}),(js,qs)=>{const n=l("router-link"),i=l("DocsWrapper");return c(),h(i,{frontmatter:a},{default:t(()=>[s("div",d,[s("div",_,[s("div",p,[s("blockquote",null,[s("p",null,[u,o(n,{to:"/docs/getting-started/glossary/#revisions"},{default:t(()=>[v]),_:1}),m])])]),f]),g,y,s("div",b,[s("div",j,[s("div",q,[x,s("p",null,[w,k,R,E,S,o(n,{to:"/docs/reference/system/activity/"},{default:t(()=>[T]),_:1}),P]),L,C,D,Q,A])]),G]),H,I,O,s("div",B,[s("div",N,[V,W,s("p",null,[M,o(n,{to:"/docs/reference/query"},{default:t(()=>[z]),_:1}),F]),J,s("p",null,[K,o(n,{to:"/docs/reference/query/#limit"},{default:t(()=>[U]),_:1}),X,Y,Z])]),s("div",$,[ss,es,s("p",null,[o(n,{to:"/docs/reference/introduction/#search-http-method"},{default:t(()=>[ts]),_:1})]),ns,os,as,ls,rs])]),is,cs,hs,s("div",ds,[s("div",_s,[ps,s("p",null,[us,o(n,{to:"/docs/reference/query"},{default:t(()=>[vs]),_:1}),ms]),fs,gs]),ys])])]),_:1})}}};export{ws as default};