@directus/app 9.16.1 → 9.17.2

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 (391) hide show
  1. package/dist/assets/{@directus_extensions-sdk.a04f8e82.entry.js → @directus_extensions-sdk.3ef017de.entry.js} +1 -1
  2. package/dist/assets/{accounts.2e114db8.js → accounts.e4c64fb1.js} +1 -1
  3. package/dist/assets/{active-line.c78f18d1.js → active-line.135641ca.js} +1 -1
  4. package/dist/assets/activity-log.147dd93e.js +1 -0
  5. package/dist/assets/{activity.5589dea9.js → activity.dd401932.js} +4 -4
  6. package/dist/assets/{apl.3bd507ca.js → apl.9e95400b.js} +1 -1
  7. package/dist/assets/{architecture.d16e36b1.js → architecture.aaf5c296.js} +1 -1
  8. package/dist/assets/{asciiarmor.23cc7d28.js → asciiarmor.e53bc239.js} +1 -1
  9. package/dist/assets/{asn.1.914dce71.js → asn.1.8d915c0c.js} +1 -1
  10. package/dist/assets/{asterisk.960196ef.js → asterisk.fa6be1a0.js} +1 -1
  11. package/dist/assets/{authentication.ee6465fd.js → authentication.61c42dda.js} +7 -7
  12. package/dist/assets/{autorefresh.9c9423b3.js → autorefresh.da8f1d1d.js} +1 -1
  13. package/dist/assets/{aws.8fa603ce.js → aws.55405db9.js} +1 -1
  14. package/dist/assets/{backing-directus.450274bb.js → backing-directus.bd29d5e2.js} +1 -1
  15. package/dist/assets/bg-BG.e76ce10c.js +1 -0
  16. package/dist/assets/{brainfuck.652d067a.js → brainfuck.af5df7f4.js} +1 -1
  17. package/dist/assets/{cli.495194f0.js → cli.b2fbc62f.js} +4 -4
  18. package/dist/assets/{cli.f4f23732.js → cli.ca0055cb.js} +2 -2
  19. package/dist/assets/{clike.d1e347d7.js → clike.ee280809.js} +1 -1
  20. package/dist/assets/{clojure.0ed660e3.js → clojure.a146bf23.js} +1 -1
  21. package/dist/assets/{cloudron.aa3368a8.js → cloudron.8200e84b.js} +1 -1
  22. package/dist/assets/{cmake.795b52a3.js → cmake.6b59d5a5.js} +1 -1
  23. package/dist/assets/{cobol.dadc6a67.js → cobol.08192929.js} +1 -1
  24. package/dist/assets/{codebase-overview.cf29e0f6.js → codebase-overview.7f69e795.js} +1 -1
  25. package/dist/assets/{coffeescript.ebb229e0.js → coffeescript.9e2efa26.js} +1 -1
  26. package/dist/assets/{collections.7776a374.js → collections.18cc2518.js} +2 -2
  27. package/dist/assets/{collections.74218877.js → collections.2fa0dd8e.js} +2 -2
  28. package/dist/assets/{collections.9e3af468.js → collections.b7aafbfb.js} +6 -6
  29. package/dist/assets/{commonlisp.3ab42a16.js → commonlisp.78d28584.js} +1 -1
  30. package/dist/assets/{conditions.1d6c9ac3.js → conditions.281a6ed5.js} +1 -1
  31. package/dist/assets/{config-options.3845d956.js → config-options.d33aab72.js} +14 -14
  32. package/dist/assets/{content.84d14f92.js → content.f9b34bf7.js} +1 -1
  33. package/dist/assets/{creating-extensions.50afb69b.js → creating-extensions.4533b8ed.js} +1 -1
  34. package/dist/assets/{crystal.efbb1bd7.js → crystal.eb2634a7.js} +1 -1
  35. package/dist/assets/cs-CZ.2c006c7b.js +1 -0
  36. package/dist/assets/{css.6fb39c02.js → css.a2d713ed.js} +1 -1
  37. package/dist/assets/{cypher.62403d7d.js → cypher.c949e68a.js} +1 -1
  38. package/dist/assets/{d.3e09de4f.js → d.2a37c670.js} +1 -1
  39. package/dist/assets/da-DK.f9d9d6ca.js +1 -0
  40. package/dist/assets/{dart.41841dee.js → dart.c6dbedeb.js} +1 -1
  41. package/dist/assets/{data-model.ef4eedaf.js → data-model.dbce1366.js} +7 -7
  42. package/dist/assets/de-DE.729a1127.js +1 -0
  43. package/dist/assets/{diff.545183ee.js → diff.8be02862.js} +1 -1
  44. package/dist/assets/{digitalocean-app-platform.5dd9a78b.js → digitalocean-app-platform.b046ae55.js} +2 -2
  45. package/dist/assets/{display-templates.6412d9bf.js → display-templates.91e34e9f.js} +1 -1
  46. package/dist/assets/display.494b7d1f.js +1 -0
  47. package/dist/assets/{displays.c3b9934b.js → displays.54ddeb10.js} +3 -3
  48. package/dist/assets/{django.17509d05.js → django.ee5dacbf.js} +1 -1
  49. package/dist/assets/{docker.2130afa6.js → docker.36215dae.js} +2 -2
  50. package/dist/assets/{dockerfile.8e4c8627.js → dockerfile.2cbe1412.js} +1 -1
  51. package/dist/assets/{documentation.e232fdb2.js → documentation.cb5bf843.js} +1 -1
  52. package/dist/assets/{dtd.c5634f07.js → dtd.613366e7.js} +1 -1
  53. package/dist/assets/{dylan.ed64e93d.js → dylan.213591bc.js} +1 -1
  54. package/dist/assets/{ebnf.f0a160c2.js → ebnf.f10d9554.js} +1 -1
  55. package/dist/assets/{ecl.f410edf0.js → ecl.ea8251b5.js} +1 -1
  56. package/dist/assets/{eiffel.fc6fa090.js → eiffel.994a28c8.js} +1 -1
  57. package/dist/assets/{elm.d1f7e66b.js → elm.62eeed51.js} +1 -1
  58. package/dist/assets/{email-templates.0aa59541.js → email-templates.b0b82036.js} +1 -1
  59. package/dist/assets/{endpoints.b664ef10.js → endpoints.1ba44e66.js} +1 -1
  60. package/dist/assets/{erlang.f5c5e431.js → erlang.3768ffe4.js} +1 -1
  61. package/dist/assets/es-419.9ec18edd.js +1 -0
  62. package/dist/assets/es-CL.4c3eb1b0.js +1 -0
  63. package/dist/assets/es-ES.4a8f0217.js +1 -0
  64. package/dist/assets/es-MX.76f4e344.js +1 -0
  65. package/dist/assets/{extensions.e511fc6d.js → extensions.b4c93ce0.js} +2 -2
  66. package/dist/assets/{factor.fdee7d27.js → factor.25b7e5ca.js} +1 -1
  67. package/dist/assets/{faq.cc159e10.js → faq.4ca4b467.js} +1 -1
  68. package/dist/assets/{fcl.8ef841db.js → fcl.4e536c5f.js} +1 -1
  69. package/dist/assets/fi-FI.38180e94.js +1 -0
  70. package/dist/assets/{field-types.129a2c41.js → field-types.ed85836e.js} +1 -1
  71. package/dist/assets/{field.3061af3d.js → field.fb2213dd.js} +1 -1
  72. package/dist/assets/{fields.9e13d3e0.js → fields.057754cf.js} +5 -5
  73. package/dist/assets/{fields.1a3f05d2.js → fields.f3868bd3.js} +1 -1
  74. package/dist/assets/{file-library.531c267c.js → file-library.5d646392.js} +1 -1
  75. package/dist/assets/{files.af2c1a43.js → files.e0ad4209.js} +6 -6
  76. package/dist/assets/{filter-rules.454352d1.js → filter-rules.22fc9a6d.js} +1 -1
  77. package/dist/assets/{filters.57f37ec6.js → filters.5cf9b5c5.js} +1 -1
  78. package/dist/assets/flows.79e56304.js +17 -0
  79. package/dist/assets/{flows.4d2856ca.js → flows.eec58d0b.js} +5 -5
  80. package/dist/assets/{folders.10accc4b.js → folders.83d5bb9d.js} +1 -1
  81. package/dist/assets/{forth.2b2f71e9.js → forth.60806310.js} +1 -1
  82. package/dist/assets/{fortran.eeb26d81.js → fortran.59922aba.js} +1 -1
  83. package/dist/assets/fr-CA.e0e0ef26.js +1 -0
  84. package/dist/assets/fr-FR.f3315fda.js +1 -0
  85. package/dist/assets/{gas.12f084f2.js → gas.675738c7.js} +1 -1
  86. package/dist/assets/{gcp.c7937b1a.js → gcp.60b49ff2.js} +1 -1
  87. package/dist/assets/{gfm.3b66480c.js → gfm.2c1ac50e.js} +1 -1
  88. package/dist/assets/{gherkin.91e46d93.js → gherkin.774e36f6.js} +1 -1
  89. package/dist/assets/{github-ci.f7ee57b8.js → github-ci.b23bbe2d.js} +2 -2
  90. package/dist/assets/{glossary.80e53e05.js → glossary.238763c8.js} +1 -1
  91. package/dist/assets/{glossary.c84cb559.js → glossary.db37b807.js} +1 -1
  92. package/dist/assets/{go.b86f91ab.js → go.bff42e4e.js} +1 -1
  93. package/dist/assets/{groovy.cd378bb4.js → groovy.2178a0f1.js} +1 -1
  94. package/dist/assets/{haml.a6cabf01.js → haml.315dd2c0.js} +1 -1
  95. package/dist/assets/{handlebars.5c6be823.js → handlebars.986c86d4.js} +1 -1
  96. package/dist/assets/{haskell-literate.c38a1697.js → haskell-literate.770d661e.js} +1 -1
  97. package/dist/assets/{haskell.a43190de.js → haskell.46e5ce8f.js} +1 -1
  98. package/dist/assets/{haxe.67ea76a0.js → haxe.d48c4abd.js} +1 -1
  99. package/dist/assets/he-IL.767fa735.js +1 -0
  100. package/dist/assets/{hooks.d1b00fc1.js → hooks.7b1e235e.js} +4 -4
  101. package/dist/assets/{htmlembedded.d7fc4ddf.js → htmlembedded.f6dde48f.js} +1 -1
  102. package/dist/assets/{htmlmixed.42236134.js → htmlmixed.4a641ad9.js} +1 -1
  103. package/dist/assets/{http.8876645f.js → http.3015a70d.js} +1 -1
  104. package/dist/assets/id-ID.f65ae499.js +1 -0
  105. package/dist/assets/{idl.1e06cb13.js → idl.f2f96147.js} +1 -1
  106. package/dist/assets/{iis.2b991a80.js → iis.67a83939.js} +1 -1
  107. package/dist/assets/{import-export.74a08d53.js → import-export.92aee031.js} +1 -1
  108. package/dist/assets/{index.ab135b59.js → index.0645834a.js} +1 -1
  109. package/dist/assets/{index.791e9a3d.js → index.0b247af5.js} +3 -3
  110. package/dist/assets/{index.4894f51e.js → index.0d2e59f7.js} +1 -1
  111. package/dist/assets/{index.15e3c95b.js → index.0eaf700c.js} +1 -1
  112. package/dist/assets/{index.58ce5d3f.js → index.197b17c1.js} +1 -1
  113. package/dist/assets/{index.36361e5b.js → index.1a3f31c4.js} +1 -1
  114. package/dist/assets/{index.e24720c2.js → index.1bbfd138.js} +1 -1
  115. package/dist/assets/{index.aeca2d25.js → index.1cd3d5ba.js} +1 -1
  116. package/dist/assets/{index.094d7435.js → index.22f2ba3c.js} +1 -1
  117. package/dist/assets/{index.b3227ed5.js → index.26419dc6.js} +1 -1
  118. package/dist/assets/{index.c0a6d945.js → index.27f67d42.js} +1 -1
  119. package/dist/assets/{index.5e2156f1.js → index.28a0ece3.js} +1 -1
  120. package/dist/assets/{index.719a1bf6.css → index.29c0adc9.css} +1 -1
  121. package/dist/assets/{index.43fc16cf.js → index.2e9e634f.js} +1 -1
  122. package/dist/assets/{index.a157d24b.js → index.322dc6a4.js} +1 -1
  123. package/dist/assets/{index.970729f9.js → index.32e3af07.js} +1 -1
  124. package/dist/assets/{index.44dfee18.js → index.34878ac2.js} +1 -1
  125. package/dist/assets/{index.b91f7cb9.js → index.38794fb2.js} +1 -1
  126. package/dist/assets/{index.4f3e1405.js → index.3907fbe9.js} +1 -1
  127. package/dist/assets/{index.8e6a2df6.js → index.39c3868e.js} +1 -1
  128. package/dist/assets/index.3ad998ab.css +1 -0
  129. package/dist/assets/{index.6b8582b3.js → index.46908e35.js} +1 -1
  130. package/dist/assets/{index.5785bd5b.js → index.4a4f8949.js} +1 -1
  131. package/dist/assets/{index.8b727b3d.js → index.4a82f998.js} +1 -1
  132. package/dist/assets/{index.3dbbeee8.js → index.54ef22f3.js} +1 -1
  133. package/dist/assets/index.556512f9.js +1 -0
  134. package/dist/assets/{index.ee33b489.js → index.5713cf94.js} +1 -1
  135. package/dist/assets/{index.5efaa053.js → index.57954ae2.js} +1 -1
  136. package/dist/assets/{index.21e15966.js → index.594e4655.js} +1 -1
  137. package/dist/assets/{index.5bccbb70.js → index.5af46380.js} +1 -1
  138. package/dist/assets/{index.f45296e2.js → index.5b4bffdb.js} +1 -1
  139. package/dist/assets/{index.7fe2a6c1.js → index.5b507941.js} +1 -1
  140. package/dist/assets/{index.b990ffa7.js → index.6120d483.js} +1 -1
  141. package/dist/assets/{index.1c2bca61.js → index.620380a7.js} +1 -1
  142. package/dist/assets/{index.4caf473d.js → index.66b6c68b.js} +1 -1
  143. package/dist/assets/{index.286f3139.js → index.686784f1.js} +1 -1
  144. package/dist/assets/{index.b4512435.js → index.6c88db6e.js} +1 -1
  145. package/dist/assets/{index.238d8ccc.js → index.78f834f7.js} +1 -1
  146. package/dist/assets/{index.ac660d97.js → index.7ce1e572.js} +1 -1
  147. package/dist/assets/{index.34e50685.js → index.7dfe02f2.js} +1 -1
  148. package/dist/assets/{index.16102ca4.js → index.7e2708ed.js} +1 -1
  149. package/dist/assets/{index.ca46607e.js → index.7e4713d2.js} +1 -1
  150. package/dist/assets/{index.d9e06c0f.js → index.7eae9d5a.js} +1 -1
  151. package/dist/assets/{index.63beca13.js → index.81aae858.js} +1 -1
  152. package/dist/assets/{index.fee1fadb.js → index.83e516d5.js} +1 -1
  153. package/dist/assets/{index.2fa94ca6.js → index.84f0c372.js} +1 -1
  154. package/dist/assets/{index.8d64a2cc.js → index.86670575.js} +1 -1
  155. package/dist/assets/{index.ebc5fd3e.js → index.87b80a1b.js} +1 -1
  156. package/dist/assets/{index.d78b4dd1.js → index.92f081c8.js} +1 -1
  157. package/dist/assets/{index.86900d0e.js → index.9728d28b.js} +1 -1
  158. package/dist/assets/{index.ebace2a1.js → index.9ea39797.js} +1 -1
  159. package/dist/assets/{index.ce459a32.js → index.9f6f893d.js} +1 -1
  160. package/dist/assets/{index.38ca65a8.js → index.a07c2783.js} +1 -1
  161. package/dist/assets/{index.3a449212.js → index.a1938c4c.js} +1 -1
  162. package/dist/assets/{index.d3e27d97.js → index.a1e36825.js} +1 -1
  163. package/dist/assets/{index.fd19f059.js → index.a4be7bd2.js} +1 -1
  164. package/dist/assets/{index.048bfcd4.js → index.a4f50556.js} +1 -1
  165. package/dist/assets/{index.727f38c4.js → index.a84a7598.js} +1 -1
  166. package/dist/assets/{index.9a2ded43.js → index.a981939a.js} +1 -1
  167. package/dist/assets/{index.ffa2a1cd.js → index.ad382721.js} +1 -1
  168. package/dist/assets/{index.dd5b5aec.js → index.b07b6c71.js} +1 -1
  169. package/dist/assets/{index.766f9329.js → index.b440ccbe.js} +1 -1
  170. package/dist/assets/{index.8b83352c.js → index.b4f005cc.js} +1 -1
  171. package/dist/assets/{index.504c871e.js → index.b7016c72.js} +1 -1
  172. package/dist/assets/{index.dae019ea.js → index.b73fc9df.js} +1 -1
  173. package/dist/assets/{index.efb2f918.js → index.b7eac46d.js} +1 -1
  174. package/dist/assets/{index.65ef9955.js → index.b8bc9ce9.js} +1 -1
  175. package/dist/assets/{index.6be1ec19.js → index.ba4d69a6.js} +1 -1
  176. package/dist/assets/{index.7f1515ca.js → index.babc408d.js} +1 -1
  177. package/dist/assets/{index.a14f652a.js → index.bb9b3d77.js} +1 -1
  178. package/dist/assets/{index.6ac5a367.js → index.bcef0184.js} +1 -1
  179. package/dist/assets/{index.558dbe9d.js → index.bf489604.js} +1 -1
  180. package/dist/assets/{index.5552d1ba.entry.js → index.c02613ac.entry.js} +219 -219
  181. package/dist/assets/{index.73791b0b.js → index.c210d71e.js} +1 -1
  182. package/dist/assets/{index.6c3cfd9d.js → index.c378895c.js} +1 -1
  183. package/dist/assets/{index.8b6e1cf5.js → index.c7c5db2b.js} +1 -1
  184. package/dist/assets/{index.909efb92.js → index.d7318062.js} +1 -1
  185. package/dist/assets/{index.bb39eac1.js → index.db3bc6a7.js} +1 -1
  186. package/dist/assets/{index.87997092.js → index.e18ed1ac.js} +1 -1
  187. package/dist/assets/{index.b73eaa87.js → index.e22e6eb6.js} +1 -1
  188. package/dist/assets/{index.e7e3b4f1.js → index.e3c74acd.js} +1 -1
  189. package/dist/assets/{index.0152af18.js → index.e5ffe5fd.js} +1 -1
  190. package/dist/assets/{index.dccdb81c.js → index.ef505888.js} +1 -1
  191. package/dist/assets/{index.938b9c64.js → index.f32b69c8.js} +1 -1
  192. package/dist/assets/{index.22cbe4df.js → index.f7c78032.js} +1 -1
  193. package/dist/assets/{index.937b45e4.js → index.fd0568fe.js} +1 -1
  194. package/dist/assets/{input-rich-text-html.c3a5d829.js → input-rich-text-html.f0b71db8.js} +30 -30
  195. package/dist/assets/{insights.0f2b188e.js → insights.c3df1bb3.js} +2 -2
  196. package/dist/assets/{installation.131e828a.js → installation.4ab6ce97.js} +1 -1
  197. package/dist/assets/{interface.aa4f61a0.js → interface.1195a442.js} +1 -1
  198. package/dist/assets/{interfaces.fc4c7384.js → interfaces.0dddec2f.js} +1 -1
  199. package/dist/assets/{introduction.b1da78a4.js → introduction.201b3a46.js} +2 -2
  200. package/dist/assets/{introduction.0f06a30b.js → introduction.2a49238f.js} +1 -1
  201. package/dist/assets/{introduction.24acabd2.js → introduction.569a3b41.js} +4 -4
  202. package/dist/assets/{introduction.e8ce5583.js → introduction.daef5dfe.js} +1 -1
  203. package/dist/assets/it-IT.b5b391d8.js +1 -0
  204. package/dist/assets/{items.cc5ed80d.js → items.207153dc.js} +10 -10
  205. package/dist/assets/{items.b5bb1efd.js → items.cc802753.js} +1 -1
  206. package/dist/assets/{javascript-hint.6d6f81e5.js → javascript-hint.da53c929.js} +1 -1
  207. package/dist/assets/{javascript.b46feeed.js → javascript.e7187534.js} +1 -1
  208. package/dist/assets/{jinja2.b4f1b6ad.js → jinja2.b92b3bf4.js} +1 -1
  209. package/dist/assets/{jsx.211683b6.js → jsx.cd35bc1f.js} +1 -1
  210. package/dist/assets/{julia.baee0bfc.js → julia.f2e27ad8.js} +1 -1
  211. package/dist/assets/{layouts.1b59a4c4.js → layouts.39ffa712.js} +1 -1
  212. package/dist/assets/{layouts.2759613b.js → layouts.6d10b629.js} +3 -3
  213. package/dist/assets/{livescript.cce15eeb.js → livescript.f9157170.js} +1 -1
  214. package/dist/assets/{localization.854fe2a6.js → localization.6486db5d.js} +1 -1
  215. package/dist/assets/{lua.2285f263.js → lua.fd37e5a7.js} +1 -1
  216. package/dist/assets/{manual.e19c207e.js → manual.edc6cff6.js} +4 -4
  217. package/dist/assets/{mark-selection.4abbe02e.js → mark-selection.5ffc9e99.js} +1 -1
  218. package/dist/assets/{match-highlighter.28d31a20.js → match-highlighter.55770437.js} +1 -1
  219. package/dist/assets/{mathematica.326d84f6.js → mathematica.5933a7bf.js} +1 -1
  220. package/dist/assets/{mbox.0bf9befe.js → mbox.48b2cada.js} +1 -1
  221. package/dist/assets/{migrations.70984e94.js → migrations.ecdb3334.js} +1 -1
  222. package/dist/assets/{mirc.6eedfef8.js → mirc.577ffc8b.js} +1 -1
  223. package/dist/assets/{mllike.96a9792b.js → mllike.71874c4d.js} +1 -1
  224. package/dist/assets/{modelica.a729f46d.js → modelica.910d3adb.js} +1 -1
  225. package/dist/assets/{modules.368e658d.js → modules.0dab0325.js} +1 -1
  226. package/dist/assets/{mscgen.fcbf244c.js → mscgen.12b68d55.js} +1 -1
  227. package/dist/assets/{multiplex.e75d927b.js → multiplex.c53fe1f2.js} +1 -1
  228. package/dist/assets/{mumps.b063975e.js → mumps.0ffff562.js} +1 -1
  229. package/dist/assets/{nginx.486ac0b3.js → nginx.61bbdd3d.js} +1 -1
  230. package/dist/assets/no-NO.f3dbe81b.js +1 -0
  231. package/dist/assets/{notifications.71793dcb.js → notifications.5b10ad0b.js} +1 -1
  232. package/dist/assets/{nsis.1f1f7f19.js → nsis.91b5976a.js} +1 -1
  233. package/dist/assets/{ntriples.23df3a06.js → ntriples.4da65405.js} +1 -1
  234. package/dist/assets/{octave.a7c39dfd.js → octave.4caf8800.js} +1 -1
  235. package/dist/assets/{operations.3a53915d.js → operations.296e9710.js} +11 -11
  236. package/dist/assets/operations.30fc2625.js +1 -0
  237. package/dist/assets/{operations.687b2da1.js → operations.c5ee7367.js} +3 -3
  238. package/dist/assets/{overlay.25718331.js → overlay.6ab0a439.js} +1 -1
  239. package/dist/assets/{overview.2aef2737.js → overview.211898b7.js} +1 -1
  240. package/dist/assets/{overview.77c84906.js → overview.91ec2552.js} +1 -1
  241. package/dist/assets/{overview.42c9bc71.js → overview.eb55d14f.js} +1 -1
  242. package/dist/assets/{oz.50920854.js → oz.f353e7c0.js} +1 -1
  243. package/dist/assets/{panels.1c9e59a5.js → panels.9b48e2ab.js} +3 -3
  244. package/dist/assets/{pascal.254524bf.js → pascal.81884765.js} +1 -1
  245. package/dist/assets/{pegjs.109b328f.js → pegjs.9b05a647.js} +1 -1
  246. package/dist/assets/{perl.a6a13b0b.js → perl.1864a477.js} +1 -1
  247. package/dist/assets/{permissions.7c6e7d90.js → permissions.66ecdced.js} +7 -7
  248. package/dist/assets/{php.ffc2eaca.js → php.005144e0.js} +1 -1
  249. package/dist/assets/{pig.5098455f.js → pig.849ddb42.js} +1 -1
  250. package/dist/assets/{pinia.b8e2dbe3.entry.js → pinia.ee5b7a45.entry.js} +2 -2
  251. package/dist/assets/pl-PL.25397b47.js +1 -0
  252. package/dist/assets/{plesk.09c47961.js → plesk.0a2c4855.js} +5 -5
  253. package/dist/assets/{powershell.1a2fb8e0.js → powershell.bb5a2d18.js} +1 -1
  254. package/dist/assets/presets-bookmarks.0a83b030.js +1 -0
  255. package/dist/assets/{presets.a6220515.js → presets.198afe35.js} +6 -6
  256. package/dist/assets/project-settings.eebfbd8c.js +1 -0
  257. package/dist/assets/{projects.7b210ac2.js → projects.398642da.js} +1 -1
  258. package/dist/assets/{properties.f55a4bf0.js → properties.fdd23eab.js} +1 -1
  259. package/dist/assets/{protobuf.9cc87b15.js → protobuf.da0cb1b3.js} +1 -1
  260. package/dist/assets/pt-BR.664ac34b.js +1 -0
  261. package/dist/assets/{pug.09de4b33.js → pug.a693bc7a.js} +1 -1
  262. package/dist/assets/{puppet.7cd5c3df.js → puppet.da6ba66e.js} +1 -1
  263. package/dist/assets/{python.8647bbb6.js → python.03cf4e30.js} +1 -1
  264. package/dist/assets/{q.83eacee3.js → q.bb726ddc.js} +1 -1
  265. package/dist/assets/{query.b72e23c9.js → query.8ccae3a9.js} +1 -1
  266. package/dist/assets/{quickstart.1d485356.js → quickstart.a567dd49.js} +2 -2
  267. package/dist/assets/{quickstart.0e152d2a.js → quickstart.de9843d9.js} +1 -1
  268. package/dist/assets/{r.22d59660.js → r.d66588c8.js} +1 -1
  269. package/dist/assets/{readme.a5652282.js → readme.1996f39f.js} +1 -1
  270. package/dist/assets/{relations.804b318b.js → relations.ad6c2398.js} +4 -4
  271. package/dist/assets/{relationship.040a5095.js → relationship.32af0bee.js} +1 -1
  272. package/dist/assets/{relationships.ff02a9ff.js → relationships.1cd9b5d9.js} +8 -8
  273. package/dist/assets/{resources.efe9810e.js → resources.f947272a.js} +1 -1
  274. package/dist/assets/{revisions.121cb7de.js → revisions.c13b66e0.js} +3 -3
  275. package/dist/assets/{roles.680acff2.js → roles.e767878c.js} +11 -11
  276. package/dist/assets/{rpm.45123b1f.js → rpm.d7012013.js} +1 -1
  277. package/dist/assets/{rst.0d2ffa96.js → rst.56d68830.js} +1 -1
  278. package/dist/assets/ru-RU.71121ae2.js +1 -0
  279. package/dist/assets/{ruby.0befbc72.js → ruby.6db5c270.js} +1 -1
  280. package/dist/assets/{running-locally.4b4aa0d8.js → running-locally.6bdbd71e.js} +4 -4
  281. package/dist/assets/{runtime-core.esm-bundler.e3d5f5b7.js → runtime-core.esm-bundler.32cac88a.js} +1 -1
  282. package/dist/assets/{rust.0aadcb17.js → rust.8f526a93.js} +1 -1
  283. package/dist/assets/{sas.6509cc75.js → sas.05b84ccc.js} +1 -1
  284. package/dist/assets/{sass.3fef2c5c.js → sass.b3a2e00a.js} +1 -1
  285. package/dist/assets/{schema.5f5eb18e.js → schema.7eb35ba9.js} +1 -1
  286. package/dist/assets/{scheme.6583195f.js → scheme.f2ccc6ec.js} +1 -1
  287. package/dist/assets/{sdk.84d76266.js → sdk.d1cc970a.js} +9 -9
  288. package/dist/assets/{security.6a8942ba.js → security.0f4880b1.js} +1 -1
  289. package/dist/assets/{server.b24a421b.js → server.bcf6175e.js} +5 -5
  290. package/dist/assets/{settings.d91e399d.js → settings.25cab07d.js} +1 -1
  291. package/dist/assets/{settings.d3a9b46c.js → settings.f21d244b.js} +10 -10
  292. package/dist/assets/{shares.6bb87993.js → shares.cc7ce751.js} +1 -1
  293. package/dist/assets/{shell.c33a256a.js → shell.35fbb76b.js} +1 -1
  294. package/dist/assets/{show-hint.e10f26ff.js → show-hint.2f9efc42.js} +1 -1
  295. package/dist/assets/{sieve.adb9c5cd.js → sieve.b326a040.js} +1 -1
  296. package/dist/assets/{slim.34875ef9.js → slim.cdf5ce1a.js} +1 -1
  297. package/dist/assets/{smalltalk.ce10cb5f.js → smalltalk.28f25b00.js} +1 -1
  298. package/dist/assets/{smarty.42882935.js → smarty.3ffc5d45.js} +1 -1
  299. package/dist/assets/{solr.5286f18c.js → solr.bf049032.js} +1 -1
  300. package/dist/assets/{soy.4f95bef4.js → soy.97d895d7.js} +1 -1
  301. package/dist/assets/{sparql.771a3939.js → sparql.f7c11eb4.js} +1 -1
  302. package/dist/assets/{spreadsheet.84749884.js → spreadsheet.583570fc.js} +1 -1
  303. package/dist/assets/{sql.e6ae0ded.js → sql.581815c1.js} +1 -1
  304. package/dist/assets/{sso-examples.eb8e7423.js → sso-examples.0b7c81f4.js} +3 -3
  305. package/dist/assets/{sso.c929d07f.js → sso.49e87f3a.js} +2 -2
  306. package/dist/assets/{stex.248311c6.js → stex.6a9989ca.js} +1 -1
  307. package/dist/assets/{stylus.75da53bc.js → stylus.6b1b2f94.js} +1 -1
  308. package/dist/assets/{support.09b549ef.js → support.55199a3e.js} +1 -1
  309. package/dist/assets/{swift.9d07c193.js → swift.b1b97d51.js} +1 -1
  310. package/dist/assets/{tcl.7a1d8f5e.js → tcl.9e42954d.js} +1 -1
  311. package/dist/assets/{teams.ab67345b.js → teams.541d1f0c.js} +1 -1
  312. package/dist/assets/{textile.3f318174.js → textile.d8117534.js} +1 -1
  313. package/dist/assets/{themes.078e9124.js → themes.47d63f74.js} +2 -2
  314. package/dist/assets/{tiddlywiki.70063591.js → tiddlywiki.e9e030d1.js} +1 -1
  315. package/dist/assets/{tiki.be5148f3.js → tiki.627c91cc.js} +1 -1
  316. package/dist/assets/{toml.1c4a2454.js → toml.ada24f3a.js} +1 -1
  317. package/dist/assets/{tornado.2951da45.js → tornado.c72c7dd4.js} +1 -1
  318. package/dist/assets/tr-TR.f894f4bf.js +1 -0
  319. package/dist/assets/{translation-strings.2e3ee87a.js → translation-strings.6f6737a7.js} +1 -1
  320. package/dist/assets/{translations.36a34606.js → translations.4a2d59ad.js} +1 -1
  321. package/dist/assets/{translations.fb062afb.js → translations.7e97efc3.js} +1 -1
  322. package/dist/assets/triggers.6baf300f.js +1 -0
  323. package/dist/assets/{troff.87ee9d68.js → troff.11b7056e.js} +1 -1
  324. package/dist/assets/{ttcn-cfg.c84cc180.js → ttcn-cfg.afb1561e.js} +1 -1
  325. package/dist/assets/{ttcn.2e4df029.js → ttcn.78233af9.js} +1 -1
  326. package/dist/assets/{turtle.95894809.js → turtle.77f61426.js} +1 -1
  327. package/dist/assets/{twig.d66473bf.js → twig.84e27436.js} +1 -1
  328. package/dist/assets/{ubuntu.79ece84b.js → ubuntu.14eb3ea1.js} +2 -2
  329. package/dist/assets/{upgrades-migrations.ea8bea7b.js → upgrades-migrations.a9a9ca7c.js} +1 -1
  330. package/dist/assets/{use-sync.1dee2657.js → use-sync.3af8e920.js} +8 -8
  331. package/dist/assets/{user-directory.bac5f2ee.js → user-directory.59b8470a.js} +1 -1
  332. package/dist/assets/{users-roles-permissions.e36d0bc8.js → users-roles-permissions.ed9e814c.js} +1 -1
  333. package/dist/assets/{users.a9ad4dd9.js → users.de050e21.js} +1 -1
  334. package/dist/assets/{utilities.00432834.js → utilities.99f7a370.js} +1 -1
  335. package/dist/assets/{validation.2c0c5444.js → validation.10b8a2f3.js} +1 -1
  336. package/dist/assets/{vb.6fa3f35c.js → vb.11aab2ba.js} +1 -1
  337. package/dist/assets/{vbscript.9733613a.js → vbscript.11dc0996.js} +1 -1
  338. package/dist/assets/{velocity.01fb0be3.js → velocity.8f652837.js} +1 -1
  339. package/dist/assets/{verilog.424d22ca.js → verilog.9b0b4ff6.js} +1 -1
  340. package/dist/assets/{vhdl.f35cfe5f.js → vhdl.1eeb9dd1.js} +1 -1
  341. package/dist/assets/vi-VN.a2a22682.js +1 -0
  342. package/dist/assets/{vue-i18n.3cc3a25f.entry.js → vue-i18n.ab96dd58.entry.js} +1 -1
  343. package/dist/assets/{vue-router.1ad5ff1f.entry.js → vue-router.4ad81e1d.entry.js} +2 -2
  344. package/dist/assets/vue.1c9ff390.entry.js +1 -0
  345. package/dist/assets/{vue.00bb2733.js → vue.853d1839.js} +1 -1
  346. package/dist/assets/{vue.runtime.esm-bundler.ee2a778f.js → vue.runtime.esm-bundler.61bedc6f.js} +1 -1
  347. package/dist/assets/{wast.70fe5a84.js → wast.9145f947.js} +1 -1
  348. package/dist/assets/{webhooks.e7e122b7.js → webhooks.53b2215e.js} +1 -1
  349. package/dist/assets/{webhooks.f0dfc270.js → webhooks.a7e035b7.js} +1 -1
  350. package/dist/assets/{webidl.b85758c5.js → webidl.3cd27141.js} +1 -1
  351. package/dist/assets/{xquery.ac0d6186.js → xquery.0d6b6717.js} +1 -1
  352. package/dist/assets/{yacas.bbc1de95.js → yacas.5ee3e34b.js} +1 -1
  353. package/dist/assets/{yaml-frontmatter.bcf994b4.js → yaml-frontmatter.995d4736.js} +1 -1
  354. package/dist/assets/{yaml.aa565fd3.js → yaml.0426b27a.js} +1 -1
  355. package/dist/assets/{z80.6ef87436.js → z80.415e79a5.js} +1 -1
  356. package/dist/assets/zh-CN.96c0a25c.js +1 -0
  357. package/dist/assets/zh-TW.7333a9ec.js +1 -0
  358. package/dist/index.html +8 -8
  359. package/package.json +26 -5
  360. package/dist/assets/activity-log.86a173c5.js +0 -1
  361. package/dist/assets/bg-BG.6ccbe392.js +0 -1
  362. package/dist/assets/cs-CZ.3f25becd.js +0 -1
  363. package/dist/assets/da-DK.3460bab1.js +0 -1
  364. package/dist/assets/de-DE.980a9df8.js +0 -1
  365. package/dist/assets/display.c9e4c238.js +0 -1
  366. package/dist/assets/es-419.b77b2103.js +0 -1
  367. package/dist/assets/es-CL.e5af69da.js +0 -1
  368. package/dist/assets/es-ES.7fd65f45.js +0 -1
  369. package/dist/assets/es-MX.84fb11f1.js +0 -1
  370. package/dist/assets/fi-FI.f2ba369a.js +0 -1
  371. package/dist/assets/flows.c21cd837.js +0 -16
  372. package/dist/assets/fr-CA.bd73b96f.js +0 -1
  373. package/dist/assets/fr-FR.f86a9f41.js +0 -1
  374. package/dist/assets/he-IL.7b11dc5e.js +0 -1
  375. package/dist/assets/id-ID.46c8c32a.js +0 -1
  376. package/dist/assets/index.03840c13.css +0 -1
  377. package/dist/assets/index.cd90c757.js +0 -1
  378. package/dist/assets/it-IT.922112b6.js +0 -1
  379. package/dist/assets/no-NO.3bb25fb7.js +0 -1
  380. package/dist/assets/operations.845da620.js +0 -1
  381. package/dist/assets/pl-PL.dfc1a032.js +0 -1
  382. package/dist/assets/presets-bookmarks.3d6f189f.js +0 -1
  383. package/dist/assets/project-settings.5ba0a483.js +0 -1
  384. package/dist/assets/pt-BR.a8e95f48.js +0 -1
  385. package/dist/assets/ru-RU.9f19c25d.js +0 -1
  386. package/dist/assets/tr-TR.039a12a9.js +0 -1
  387. package/dist/assets/triggers.44226865.js +0 -1
  388. package/dist/assets/vi-VN.fff05bda.js +0 -1
  389. package/dist/assets/vue.f73b7cd5.entry.js +0 -1
  390. package/dist/assets/zh-CN.e03e0e56.js +0 -1
  391. package/dist/assets/zh-TW.453f1e60.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as i,o as c,b as d,w as s,g as t,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("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),p=t("h2",{id:"1.-installation",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#1.-installation"},"#"),e(" 1. Installation")],-1),_=t("p",null,[e("Make sure you have the latest LTS version or newer of "),t("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),e(" installed, and have a running database ready to connect to.")],-1),g=t("p",null,"Run the following command in your terminal and follow the prompts.",-1),m=t("pre",null,[t("code",{class:"language-bash"},`npm init directus-project example-project
1
+ import{a as i,o as c,b as d,w as s,l as t,e as n,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const h={class:"markdown-body"},u=t("blockquote",null,[t("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),p=t("h2",{id:"1.-installation",tabindex:"-1"},[t("a",{class:"header-anchor",href:"#1.-installation"},"#"),e(" 1. Installation")],-1),_=t("p",null,[e("Make sure you have the latest LTS version or newer of "),t("a",{href:"https://nodejs.dev",target:"_blank",rel:"noopener noreferrer"},"Node.js"),e(" installed, and have a running database ready to connect to.")],-1),g=t("p",null,"Run the following command in your terminal and follow the prompts.",-1),m=t("pre",null,[t("code",{class:"language-bash"},`npm init directus-project example-project
2
2
  `)],-1),f=t("p",null,"Choose SQLite from the list. Use up/down arrow keys to select the SQL type.",-1),b=t("pre",null,[t("code",{class:"language-bash"},`? Choose your database client SQLite
3
3
  `)],-1),y=t("p",null,[e("After that a file path for "),t("code",null,"data.db"),e(", your database, will be suggested. Hit the enter key to stick with the default path.")],-1),w=t("pre",null,[t("code",{class:"language-bash"},`? Database File Path: <file-path>/example-project/data.db
4
4
  `)],-1),v=t("p",null,"Next you\u2019ll set your username/email and password.",-1),k=t("pre",null,[t("code",{class:"language-bash"},`Create your first admin user:
@@ -1 +1 @@
1
- import{y as S}from"./index.5552d1ba.entry.js";function O(c,x){return x.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(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(c,x){(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 b=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],y=["list","quote","bquote","eval","return","call","parse","deparse"],g=["if","else","repeat","while","function","for","in","next","break"],A=["if","else","repeat","while","function","for"];t.registerHelper("hintWords","r",b.concat(y,g));var E=f(b),w=f(y),N=f(g),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 v(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&&v(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"&&v(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?v(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 U=_.exports,j=O({__proto__:null,default:U},[_.exports]);export{j as r};
1
+ import{y as S}from"./index.c02613ac.entry.js";function O(c,x){return x.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(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var _={exports:{}};(function(c,x){(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 b=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],y=["list","quote","bquote","eval","return","call","parse","deparse"],g=["if","else","repeat","while","function","for","in","next","break"],A=["if","else","repeat","while","function","for"];t.registerHelper("hintWords","r",b.concat(y,g));var E=f(b),w=f(y),N=f(g),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 v(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&&v(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"&&v(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?v(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 U=_.exports,j=O({__proto__:null,default:U},[_.exports]);export{j as r};
@@ -1 +1 @@
1
- import{a as l,o as s,b as a,w as i,g as e,B as r}from"./runtime-core.esm-bundler.e3d5f5b7.js";const u=e("div",{class:"markdown-body"},[e("p",{align:"center"},[e("img",{alt:"Directus Logo",src:"https://user-images.githubusercontent.com/522079/158864859-0fbeae62-9d7a-4619-b35e-f8fa5f68e0c8.png"})]),e("br"),e("h2",{id:"%F0%9F%90%B0-introduction",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#%F0%9F%90%B0-introduction"},"#"),r(" \u{1F430} Introduction")]),e("p",null,[r("This is the official documentation for the Directus data platform. These docs are also available via "),e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"a public website"),r(".")]),e("p",null,[e("strong",null,[e("a",{href:"https://directus.io",target:"_blank",rel:"noopener noreferrer"},"Learn more about Directus")]),e("br"),r(),e("strong",null,[e("a",{href:"https://directus.cloud",target:"_blank",rel:"noopener noreferrer"},"Create your Free Project")])]),e("br"),e("h2",{id:"%F0%9F%A4%94-community-help",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#%F0%9F%A4%94-community-help"},"#"),r(" \u{1F914} Community Help")]),e("p",null,[e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"The Directus Documentation"),r(" is a great place to start, or explore these other channels:")]),e("ul",null,[e("li",null,[e("a",{href:"https://directus.chat",target:"_blank",rel:"noopener noreferrer"},"Discord"),r(" (Live Discussions)")]),e("li",null,[e("a",{href:"https://github.com/directus/directus/issues",target:"_blank",rel:"noopener noreferrer"},"GitHub Issues"),r(" (Report Bugs)")]),e("li",null,[e("a",{href:"https://github.com/directus/directus/discussions",target:"_blank",rel:"noopener noreferrer"},"GitHub Discussions"),r(" (Questions, Feature Requests)")]),e("li",null,[e("a",{href:"https://twitter.com/directus",target:"_blank",rel:"noopener noreferrer"},"Twitter"),r(" (Latest News)")]),e("li",null,[e("a",{href:"https://www.youtube.com/c/DirectusVideos/featured",target:"_blank",rel:"noopener noreferrer"},"YouTube"),r(" (Video Tutorials)")])]),e("br"),e("h2",{id:"contributing",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#contributing"},"#"),r(" Contributing")]),e("blockquote",null,[e("p",null,[e("strong",null,"Note")]),e("p",null,[r("This project uses "),e("a",{href:"https://pnpm.io",target:"_blank",rel:"noopener noreferrer"},[e("code",null,"pnpm")]),r(" to manage the dependencies, install it if you haven\u2019t via "),e("code",null,"npm i -g pnpm"),r(".")])]),e("ol",null,[e("li",null,"Fork and clone the repo"),e("li",null,[r("Install the dependencies through "),e("code",null,"pnpm install")]),e("li",null,[r("Run the docs website by running "),e("code",null,"pnpm dev")])])],-1),f="null",b=!1,m={name:"readme",setup(c,{expose:n}){const t={title:"null",modularExtension:!1};return n({frontmatter:t}),(p,d)=>{const o=l("docs-wrapper");return s(),a(o,{frontmatter:t},{default:i(()=>[u]),_:1})}}};export{m as default,b as modularExtension,f as title};
1
+ import{a as l,o as s,b as a,w as i,l as e,E as r}from"./runtime-core.esm-bundler.32cac88a.js";const u=e("div",{class:"markdown-body"},[e("p",{align:"center"},[e("img",{alt:"Directus Logo",src:"https://user-images.githubusercontent.com/522079/158864859-0fbeae62-9d7a-4619-b35e-f8fa5f68e0c8.png"})]),e("br"),e("h2",{id:"%F0%9F%90%B0-introduction",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#%F0%9F%90%B0-introduction"},"#"),r(" \u{1F430} Introduction")]),e("p",null,[r("This is the official documentation for the Directus data platform. These docs are also available via "),e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"a public website"),r(".")]),e("p",null,[e("strong",null,[e("a",{href:"https://directus.io",target:"_blank",rel:"noopener noreferrer"},"Learn more about Directus")]),e("br"),r(),e("strong",null,[e("a",{href:"https://directus.cloud",target:"_blank",rel:"noopener noreferrer"},"Create your Free Project")])]),e("br"),e("h2",{id:"%F0%9F%A4%94-community-help",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#%F0%9F%A4%94-community-help"},"#"),r(" \u{1F914} Community Help")]),e("p",null,[e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"The Directus Documentation"),r(" is a great place to start, or explore these other channels:")]),e("ul",null,[e("li",null,[e("a",{href:"https://directus.chat",target:"_blank",rel:"noopener noreferrer"},"Discord"),r(" (Live Discussions)")]),e("li",null,[e("a",{href:"https://github.com/directus/directus/issues",target:"_blank",rel:"noopener noreferrer"},"GitHub Issues"),r(" (Report Bugs)")]),e("li",null,[e("a",{href:"https://github.com/directus/directus/discussions",target:"_blank",rel:"noopener noreferrer"},"GitHub Discussions"),r(" (Questions, Feature Requests)")]),e("li",null,[e("a",{href:"https://twitter.com/directus",target:"_blank",rel:"noopener noreferrer"},"Twitter"),r(" (Latest News)")]),e("li",null,[e("a",{href:"https://www.youtube.com/c/DirectusVideos/featured",target:"_blank",rel:"noopener noreferrer"},"YouTube"),r(" (Video Tutorials)")])]),e("br"),e("h2",{id:"contributing",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#contributing"},"#"),r(" Contributing")]),e("blockquote",null,[e("p",null,[e("strong",null,"Note")]),e("p",null,[r("This project uses "),e("a",{href:"https://pnpm.io",target:"_blank",rel:"noopener noreferrer"},[e("code",null,"pnpm")]),r(" to manage the dependencies, install it if you haven\u2019t via "),e("code",null,"npm i -g pnpm"),r(".")])]),e("ol",null,[e("li",null,"Fork and clone the repo"),e("li",null,[r("Install the dependencies through "),e("code",null,"pnpm install")]),e("li",null,[r("Run the docs website by running "),e("code",null,"pnpm dev")])])],-1),f="null",b=!1,m={name:"readme",setup(c,{expose:n}){const t={title:"null",modularExtension:!1};return n({frontmatter:t}),(p,d)=>{const o=l("docs-wrapper");return s(),a(o,{frontmatter:t},{default:i(()=>[u]),_:1})}}};export{m as default,b as modularExtension,f as title};
@@ -1,4 +1,4 @@
1
- import{a as n,o as c,b as i,w as a,g as s,e as h,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},p=e("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. "),u=e("Learn more about Relationships"),_=e("."),j=s("hr",null,null,-1),g=s("h2",{id:"the-relation-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-relation-object"},"#"),e(" The Relation Object")],-1),m=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the collection. This matches the table name in the database.")],-1),f=s("p",null,[s("code",null,"field"),e(),s("strong",null,"string"),s("br"),e(" Name of the field that holds the related primary key. This matches the column name in the database.")],-1),b=s("p",null,[s("code",null,"related_collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the related collection. This matches the table name in the database.")],-1),y=s("h4",{id:"meta",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#meta"},"#"),e(" Meta")],-1),x=s("p",null,"Directus metadata. Used to enable non-database relationship types",-1),q=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the metadata row in "),s("code",null,"directus_relations"),e(".")],-1),T=s("p",null,[s("code",null,"many_collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the collection. Matches the top level "),s("code",null,"collection"),e(" field.")],-1),w=s("p",null,[s("code",null,"many_field"),e(),s("strong",null,"string"),s("br"),e(" Name of the field. Matches the top level "),s("code",null,"field"),e(" field.")],-1),k=s("p",null,[s("code",null,"one_collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the related collection. Matches the top level "),s("code",null,"related_collection"),e(" field.")],-1),E=s("p",null,[s("code",null,"one_field"),e(),s("strong",null,"string"),s("br"),e(" Name of the one to many field on the other side of the relation.")],-1),R=s("p",null,[s("code",null,"one_allowed_collections"),e(),s("strong",null,"string"),s("br"),e(" What collections are allowed to be used in a many-to-any context.")],-1),P=s("p",null,[s("code",null,"one_collection_field"),e(),s("strong",null,"string"),s("br"),e(" Field that holds the collection name in a many-to-any context.")],-1),S=s("p",null,[s("code",null,"one_deselect_action"),e(),s("strong",null,"nullify | delete"),s("br"),e(" Whether to nullify or delete related one-to-many records.")],-1),v=s("p",null,[s("code",null,"sort_field"),e(),s("strong",null,"string"),s("br"),e(" What field is used to hold the sort field.")],-1),L=s("p",null,[s("code",null,"junction_field"),e(),s("strong",null,"string"),s("br"),e(" What field connects two relations in a many-to-many (O2M-M2O) context.")],-1),A=s("h4",{id:"schema",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#schema"},"#"),e(" Schema")],-1),Q=s("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers.",-1),D=s("p",null,[s("code",null,"table"),e(),s("strong",null,"string"),s("br"),e(" The table name.")],-1),N=s("p",null,[s("code",null,"column"),e(),s("strong",null,"string"),s("br"),e(" The column name.")],-1),G=s("p",null,[s("code",null,"foreign_key_table"),e(),s("strong",null,"string"),s("br"),e(" Related table name.")],-1),O=s("p",null,[s("code",null,"foreign_key_column"),e(),s("strong",null,"string"),s("br"),e(" Related column name.")],-1),I=s("p",null,[s("code",null,"constraint_name"),e(),s("strong",null,"string"),s("br"),e(" Name for the foreign key constraint.")],-1),C=s("p",null,[s("code",null,"on_update"),e(),s("strong",null,"string"),s("br"),e(" Update trigger for the foreign key constraint.")],-1),M=s("p",null,[s("code",null,"on_delete"),e(),s("strong",null,"string"),s("br"),e(" Delete trigger for the foreign key constraint.")],-1),B=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
1
+ import{a as n,o as c,b as i,w as a,l as s,e as h,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},p=e("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. "),u=e("Learn more about Relationships"),_=e("."),j=s("hr",null,null,-1),g=s("h2",{id:"the-relation-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-relation-object"},"#"),e(" The Relation Object")],-1),m=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the collection. This matches the table name in the database.")],-1),f=s("p",null,[s("code",null,"field"),e(),s("strong",null,"string"),s("br"),e(" Name of the field that holds the related primary key. This matches the column name in the database.")],-1),b=s("p",null,[s("code",null,"related_collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the related collection. This matches the table name in the database.")],-1),y=s("h4",{id:"meta",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#meta"},"#"),e(" Meta")],-1),x=s("p",null,"Directus metadata. Used to enable non-database relationship types",-1),q=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the metadata row in "),s("code",null,"directus_relations"),e(".")],-1),T=s("p",null,[s("code",null,"many_collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the collection. Matches the top level "),s("code",null,"collection"),e(" field.")],-1),w=s("p",null,[s("code",null,"many_field"),e(),s("strong",null,"string"),s("br"),e(" Name of the field. Matches the top level "),s("code",null,"field"),e(" field.")],-1),E=s("p",null,[s("code",null,"one_collection"),e(),s("strong",null,"string"),s("br"),e(" Name of the related collection. Matches the top level "),s("code",null,"related_collection"),e(" field.")],-1),k=s("p",null,[s("code",null,"one_field"),e(),s("strong",null,"string"),s("br"),e(" Name of the one to many field on the other side of the relation.")],-1),R=s("p",null,[s("code",null,"one_allowed_collections"),e(),s("strong",null,"string"),s("br"),e(" What collections are allowed to be used in a many-to-any context.")],-1),P=s("p",null,[s("code",null,"one_collection_field"),e(),s("strong",null,"string"),s("br"),e(" Field that holds the collection name in a many-to-any context.")],-1),S=s("p",null,[s("code",null,"one_deselect_action"),e(),s("strong",null,"nullify | delete"),s("br"),e(" Whether to nullify or delete related one-to-many records.")],-1),v=s("p",null,[s("code",null,"sort_field"),e(),s("strong",null,"string"),s("br"),e(" What field is used to hold the sort field.")],-1),L=s("p",null,[s("code",null,"junction_field"),e(),s("strong",null,"string"),s("br"),e(" What field connects two relations in a many-to-many (O2M-M2O) context.")],-1),A=s("h4",{id:"schema",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#schema"},"#"),e(" Schema")],-1),Q=s("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers.",-1),D=s("p",null,[s("code",null,"table"),e(),s("strong",null,"string"),s("br"),e(" The table name.")],-1),N=s("p",null,[s("code",null,"column"),e(),s("strong",null,"string"),s("br"),e(" The column name.")],-1),G=s("p",null,[s("code",null,"foreign_key_table"),e(),s("strong",null,"string"),s("br"),e(" Related table name.")],-1),O=s("p",null,[s("code",null,"foreign_key_column"),e(),s("strong",null,"string"),s("br"),e(" Related column name.")],-1),I=s("p",null,[s("code",null,"constraint_name"),e(),s("strong",null,"string"),s("br"),e(" Name for the foreign key constraint.")],-1),C=s("p",null,[s("code",null,"on_update"),e(),s("strong",null,"string"),s("br"),e(" Update trigger for the foreign key constraint.")],-1),M=s("p",null,[s("code",null,"on_delete"),e(),s("strong",null,"string"),s("br"),e(" Delete trigger for the foreign key constraint.")],-1),B=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
2
2
  `),s("span",{class:"hljs-attr"},'"collection"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"about_us"'),s("span",{class:"hljs-punctuation"},","),e(`
3
3
  `),s("span",{class:"hljs-attr"},'"field"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"logo"'),s("span",{class:"hljs-punctuation"},","),e(`
4
4
  `),s("span",{class:"hljs-attr"},'"related_collection"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"directus_files"'),s("span",{class:"hljs-punctuation"},","),e(`
@@ -47,7 +47,7 @@ import{a as n,o as c,b as i,w as a,g as s,e as h,B as e}from"./runtime-core.esm-
47
47
  field
48
48
  }
49
49
  }
50
- `)])],-1),ys=s("hr",null,null,-1),xs=s("h2",{id:"retrieve-a-relation",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-relation"},"#"),e(" Retrieve a relation")],-1),qs=s("p",null,"List an existing relation by collection/field name.",-1),Ts=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),ws=s("p",null,"Doesn\u2019t support any query parameters.",-1),ks=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),Es=s("p",null,[e("Returns the requested "),s("a",{href:"#the-relation-object"},"relation object"),e(".")],-1),Rs=s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")],-1),Ps=s("pre",null,[s("code",null,`GET /relations/:collection/:field
50
+ `)])],-1),ys=s("hr",null,null,-1),xs=s("h2",{id:"retrieve-a-relation",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-relation"},"#"),e(" Retrieve a relation")],-1),qs=s("p",null,"List an existing relation by collection/field name.",-1),Ts=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),ws=s("p",null,"Doesn\u2019t support any query parameters.",-1),Es=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),ks=s("p",null,[e("Returns the requested "),s("a",{href:"#the-relation-object"},"relation object"),e(".")],-1),Rs=s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")],-1),Ps=s("pre",null,[s("code",null,`GET /relations/:collection/:field
51
51
  `)],-1),Ss=s("h5",{id:"example-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-3"},"#"),e(" Example")],-1),vs=s("pre",null,[s("code",null,`GET /relations/articles/featured_image
52
52
  `)],-1),Ls=s("h3",{id:"graphql-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-2"},"#"),e(" GraphQL")],-1),As=s("pre",null,[s("code",null,`POST /graphql/system
53
53
  `)],-1),Qs=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
@@ -101,7 +101,7 @@ import{a as n,o as c,b as i,w as a,g as s,e as h,B as e}from"./runtime-core.esm-
101
101
  }
102
102
  }
103
103
  `)])],-1),fe=s("hr",null,null,-1),be=s("h2",{id:"delete-a-relation",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#delete-a-relation"},"#"),e(" Delete a Relation")],-1),ye=s("p",null,"Delete an existing relation.",-1),xe=s("h3",{id:"returns-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-5"},"#"),e(" Returns")],-1),qe=s("p",null,"Empty body.",-1),Te=s("h3",{id:"rest-api-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-5"},"#"),e(" REST API")],-1),we=s("pre",null,[s("code",null,`DELETE /relations/:collection/:field
104
- `)],-1),ke=s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")],-1),Ee=s("pre",null,[s("code",null,`DELETE /relations/articles/author
104
+ `)],-1),Ee=s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")],-1),ke=s("pre",null,[s("code",null,`DELETE /relations/articles/author
105
105
  `)],-1),Re=s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),e(" GraphQL")],-1),Pe=s("pre",null,[s("code",null,`POST /graphql/system
106
106
  `)],-1),Se=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
107
107
  delete_relations_item(collection:`),s("span",{class:"hljs-type"}," String"),e("!, field:"),s("span",{class:"hljs-type"}," String"),e(`!): delete_one
@@ -112,4 +112,4 @@ import{a as n,o as c,b as i,w as a,g as s,e as h,B as e}from"./runtime-core.esm-
112
112
  field
113
113
  }
114
114
  }
115
- `)])],-1),Ge="Relations",Oe=!1,Ie="REST and GraphQL API documentation on the Relations collection in Directus.",Ce="5 min read",Me="page-reference",Be={name:"relations",setup(Ae,{expose:l}){const t={title:"Relations",modularExtension:!1,description:"REST and GraphQL API documentation on the Relations collection in Directus.",readTime:"5 min read",pageClass:"page-reference"};return l({frontmatter:t}),(Qe,De)=>{const o=n("router-link"),r=n("docs-wrapper");return c(),i(r,{frontmatter:t},{default:a(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,h(o,{to:"/docs/getting-started/glossary#relationships"},{default:a(()=>[u]),_:1}),_])]),j,g,m,f,b,y,x,q,T,w,k,E,R,P,S,v,L,A,Q,D,N,G,O,I,C,M,B,U,W,F,V,H,z,J,K,X,Y,Z,$,ss,es,ts,ns,as,ls,os,rs,cs,is,hs,ds,ps,us,_s,js,gs,ms,fs,bs,ys,xs,qs,Ts,ws,ks,Es,Rs,Ps,Ss,vs,Ls,As,Qs,Ds,Ns,Gs,Os,Is,Cs,Ms,Bs,Us,Ws,Fs,Vs,Hs,zs,Js,Ks,Xs,Ys,Zs,$s,se,ee,te,ne,ae,le,oe,re,ce,ie,he,de,pe,ue,_e,je,ge,me,fe,be,ye,xe,qe,Te,we,ke,Ee,Re,Pe,Se,ve,Le])]),_:1})}}};export{Be as default,Ie as description,Oe as modularExtension,Me as pageClass,Ce as readTime,Ge as title};
115
+ `)])],-1),Ge="Relations",Oe=!1,Ie="REST and GraphQL API documentation on the Relations collection in Directus.",Ce="5 min read",Me="page-reference",Be={name:"relations",setup(Ae,{expose:l}){const t={title:"Relations",modularExtension:!1,description:"REST and GraphQL API documentation on the Relations collection in Directus.",readTime:"5 min read",pageClass:"page-reference"};return l({frontmatter:t}),(Qe,De)=>{const o=n("router-link"),r=n("docs-wrapper");return c(),i(r,{frontmatter:t},{default:a(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,h(o,{to:"/docs/getting-started/glossary#relationships"},{default:a(()=>[u]),_:1}),_])]),j,g,m,f,b,y,x,q,T,w,E,k,R,P,S,v,L,A,Q,D,N,G,O,I,C,M,B,U,W,F,V,H,z,J,K,X,Y,Z,$,ss,es,ts,ns,as,ls,os,rs,cs,is,hs,ds,ps,us,_s,js,gs,ms,fs,bs,ys,xs,qs,Ts,ws,Es,ks,Rs,Ps,Ss,vs,Ls,As,Qs,Ds,Ns,Gs,Os,Is,Cs,Ms,Bs,Us,Ws,Fs,Vs,Hs,zs,Js,Ks,Xs,Ys,Zs,$s,se,ee,te,ne,ae,le,oe,re,ce,ie,he,de,pe,ue,_e,je,ge,me,fe,be,ye,xe,qe,Te,we,Ee,ke,Re,Pe,Se,ve,Le])]),_:1})}}};export{Be as default,Ie as description,Oe as modularExtension,Me as pageClass,Ce as readTime,Ge as title};
@@ -1 +1 @@
1
- import{a as i,o as r,b as c,w as t,g as o,e as s,B as n}from"./runtime-core.esm-bundler.e3d5f5b7.js";const _={class:"markdown-body"},h=o("p",null,"This pane is only shown when configuring relational fields (including images and translations). Depending on the type of relationship, you\u2019ll be presented with one of the following set of options:",-1),p=n("Many-to-One"),u=n("One-to-Many"),m=n("Many-to-Many"),f=n("Many-to-Any"),y=n("Translations"),g=o("li",null,"One-to-One",-1),w={class:"tip hint"},x=o("div",{class:"hint-title"},"Corresponding Field",-1),k=n("Relationships go both ways"),v=n(", so when creating a new relation Field, Directus offers to automatically create the corresponding Field on the related Collection."),O="Relationship",F=!1,N={name:"relationship",setup(M,{expose:l}){const a={title:"Relationship",modularExtension:!1};return l({frontmatter:a}),(b,B)=>{const e=i("router-link"),d=i("docs-wrapper");return r(),c(d,{frontmatter:a},{default:t(()=>[o("div",_,[h,o("ul",null,[o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#many-to-one-m2o"},{default:t(()=>[p]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#one-to-many-o2m"},{default:t(()=>[u]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#many-to-many-m2m"},{default:t(()=>[m]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#many-to-many-m2m"},{default:t(()=>[f]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#translations-o2m"},{default:t(()=>[y]),_:1})]),g]),o("div",w,[x,o("p",null,[s(e,{to:"/docs/configuration/data-model/relationships#perspective-matters"},{default:t(()=>[k]),_:1}),v])])])]),_:1})}}};export{N as default,F as modularExtension,O as title};
1
+ import{a as i,o as r,b as c,w as t,l as o,e as s,E as n}from"./runtime-core.esm-bundler.32cac88a.js";const _={class:"markdown-body"},h=o("p",null,"This pane is only shown when configuring relational fields (including images and translations). Depending on the type of relationship, you\u2019ll be presented with one of the following set of options:",-1),p=n("Many-to-One"),u=n("One-to-Many"),m=n("Many-to-Many"),f=n("Many-to-Any"),y=n("Translations"),g=o("li",null,"One-to-One",-1),w={class:"tip hint"},x=o("div",{class:"hint-title"},"Corresponding Field",-1),k=n("Relationships go both ways"),v=n(", so when creating a new relation Field, Directus offers to automatically create the corresponding Field on the related Collection."),B="Relationship",E=!1,F={name:"relationship",setup(M,{expose:l}){const a={title:"Relationship",modularExtension:!1};return l({frontmatter:a}),(b,C)=>{const e=i("router-link"),d=i("docs-wrapper");return r(),c(d,{frontmatter:a},{default:t(()=>[o("div",_,[h,o("ul",null,[o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#many-to-one-m2o"},{default:t(()=>[p]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#one-to-many-o2m"},{default:t(()=>[u]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#many-to-many-m2m"},{default:t(()=>[m]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#many-to-many-m2m"},{default:t(()=>[f]),_:1})]),o("li",null,[s(e,{to:"/docs/configuration/data-model/relationships#translations-o2m"},{default:t(()=>[y]),_:1})]),g]),o("div",w,[x,o("p",null,[s(e,{to:"/docs/configuration/data-model/relationships#perspective-matters"},{default:t(()=>[k]),_:1}),v])])])]),_:1})}}};export{F as default,E as modularExtension,B as title};
@@ -1,11 +1,11 @@
1
- import{a,o as d,b as r,w as n,g as e,e as i,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("Relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more of its own "),e("em",null,"compound"),t(" types, which are custom-tailored to make certain "),e("em",null,"common but complex"),t(" tasks a breeze.")])],-1),_=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Before You Begin"),e("p",null,"Regardless of the relationship you want to configure, we recommend you read every section of this document, in order, at least once. This is because you must understand how M2Os work in Directus to understand O2Ms, you must understand M2Os and O2Ms to understand M2Ms, etc.")],-1),m=e("h2",{id:"overview",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#overview"},"#"),t(" Overview")],-1),f=e("p",null,[t("The Data Studio makes "),e("em",null,"the process"),t(" of configuring relational data models easier, faster, and more intuitive by offering no-code configuration. Directus "),e("em",null,"does not"),t(" enforce opinionated schemas, rule systems, or other arbitrary limitations to your data models. Therefore, aside from any technical limitations of your project\u2019s infrastructure or core requirements for any relational data model, "),e("em",null,"like having a primary key field for every collection or a data type assigned to every field,"),t(" you are free to build the data model as you want.")],-1),p=e("p",null,"In this guide, we will go over the following topics:",-1),y=e("ul",null,[e("li",null,"What kinds of relationships exist within Directus."),e("li",null,"How to configure a desired relationship within the Data Studio."),e("li",null,"How relationships are implemented in the data model and displayed in the Data Studio."),e("li",null,"When it might be appropriate to use a given type of relationship.")],-1),g=e("p",null,"By the end, you\u2019ll understand everything needed to start building data models in Directus, even if relational data model concepts are a new concept to you.",-1),w=e("h3",{id:"directus-vs-classic-data-model-terms",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#directus-vs-classic-data-model-terms"},"#"),t(" Directus vs Classic Data Model Terms")],-1),M=e("p",null,[t("When we use classic data model terms, "),e("em",null,"such as data table, column, row, etc\u2026"),t(" this signals that the explanation is focused strictly on what happens in the database. When Directus terminology is used, "),e("em",null,"such as collection, field, item, etc\u2026"),t(" this signals that the explanation includes Directus logic and functionality.")],-1),O=e("h2",{id:"many-to-one-(m2o)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#"),t(" Many-to-One (M2O)")],-1),b=e("p",null,"In an M2O relationship, multiple items from the parent collection are linked to one item in a related collection. For example, there are many cities in a country, but a city can only be in one country.",-1),v=e("p",null,[t("To create an M2O relationship, we add a foreign key field to the parent collection, which links items from the parent collection to items in the related collection. If we have two tables, "),e("code",null,"cities"),t(" and "),e("code",null,"countries"),t(", we can create a "),e("code",null,"cities.country_id"),t(" foreign key field.")],-1),k=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/m2o-20220805A.webp",alt:"Many-to-One Relational Diagram"})],-1),x=e("p",null,"Let\u2019s take a look at the schema.",-1),A=e("pre",null,[e("code",null,`cities
1
+ import{a,o as d,b as r,w as n,l as e,e as i,E as t}from"./runtime-core.esm-bundler.32cac88a.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("Relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more of its own "),e("em",null,"compound"),t(" types, which are custom-tailored to make certain "),e("em",null,"common but complex"),t(" tasks a breeze.")])],-1),_=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Before You Begin"),e("p",null,"Regardless of the relationship you want to configure, we recommend you read every section of this document, in order, at least once. This is because you must understand how M2Os work in Directus to understand O2Ms, you must understand M2Os and O2Ms to understand M2Ms, etc.")],-1),m=e("h2",{id:"overview",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#overview"},"#"),t(" Overview")],-1),f=e("p",null,[t("The Data Studio makes "),e("em",null,"the process"),t(" of configuring relational data models easier, faster, and more intuitive by offering no-code configuration. Directus "),e("em",null,"does not"),t(" enforce opinionated schemas, rule systems, or other arbitrary limitations to your data models. Therefore, aside from any technical limitations of your project\u2019s infrastructure or core requirements for any relational data model, "),e("em",null,"like having a primary key field for every collection or a data type assigned to every field,"),t(" you are free to build the data model as you want.")],-1),p=e("p",null,"In this guide, we will go over the following topics:",-1),g=e("ul",null,[e("li",null,"What kinds of relationships exist within Directus."),e("li",null,"How to configure a desired relationship within the Data Studio."),e("li",null,"How relationships are implemented in the data model and displayed in the Data Studio."),e("li",null,"When it might be appropriate to use a given type of relationship.")],-1),y=e("p",null,"By the end, you\u2019ll understand everything needed to start building data models in Directus, even if relational data model concepts are a new concept to you.",-1),w=e("h3",{id:"directus-vs-classic-data-model-terms",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#directus-vs-classic-data-model-terms"},"#"),t(" Directus vs Classic Data Model Terms")],-1),M=e("p",null,[t("When we use classic data model terms, "),e("em",null,"such as data table, column, row, etc\u2026"),t(" this signals that the explanation is focused strictly on what happens in the database. When Directus terminology is used, "),e("em",null,"such as collection, field, item, etc\u2026"),t(" this signals that the explanation includes Directus logic and functionality.")],-1),O=e("h2",{id:"many-to-one-(m2o)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#many-to-one-(m2o)"},"#"),t(" Many-to-One (M2O)")],-1),b=e("p",null,"In an M2O relationship, multiple items from the parent collection are linked to one item in a related collection. For example, there are many cities in a country, but a city can only be in one country.",-1),v=e("p",null,[t("To create an M2O relationship, we add a foreign key field to the parent collection, which links items from the parent collection to items in the related collection. If we have two tables, "),e("code",null,"cities"),t(" and "),e("code",null,"countries"),t(", we can create a "),e("code",null,"cities.country_id"),t(" foreign key field.")],-1),k=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/m2o-20220805A.webp",alt:"Many-to-One Relational Diagram"})],-1),x=e("p",null,"Let\u2019s take a look at the schema.",-1),A=e("pre",null,[e("code",null,`cities
2
2
  - id
3
3
  - name
4
4
  - country_id (a foreign key field, stores a key from countries.id)
5
5
  `)],-1),T=e("pre",null,[e("code",null,`countries
6
6
  - id
7
7
  - name
8
- `)],-1),D=e("p",null,"Note the following things from the schema above:",-1),I=e("ul",null,[e("li",null,"An M2O relationship requires just one column within the parent table."),e("li",null,[t("When an M2O relational field is configured in Directus, an Item Page on the parent collection will enable access to the item from the related collection. So in our example above, an Item Page in "),e("code",null,"cities"),t(" will enable access to the related country from the "),e("code",null,"countries"),t(" table.")])],-1),S=e("p",null,[t("However, in the Directus Data Studio, an M2O field does not automatically provide access to the parent collection\u2019s items within the related collection. In our example, this means that when you open an Item Page in "),e("code",null,"countries"),t(", you will not see related cities.")],-1),j=e("p",null,"This is where O2M fields come in to play.",-1),W={class:"tip hint"},q=e("div",{class:"hint-title"},"Configure an M2O",-1),R=t("The easiest way to configure an M2O field is to follow the guide on how to "),C=t("create a field (standard)"),B=t(" and select the M2O Interface from the template wizard."),N=e("h2",{id:"one-to-many-(o2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#one-to-many-(o2m)"},"#"),t(" One-to-Many (O2M)")],-1),L=t("Within a relational database, an O2M relationship is the exact same type of relationship as an M2O. Remember, at the end of the "),H=e("a",{href:"#many-to-one-m2o"},"M2O",-1),z=t(" section, we learned that configuring an M2O in Directus does not let us access related items within an Item Page on the related collection. In Directus, configuring an O2M creates an "),P=t("Alias"),Y=t(" field, which lets us access related items. To demonstrate this, let\u2019s continue with the "),E=e("code",null,"cities",-1),U=t(" and "),V=e("code",null,"countries",-1),F=t(" example relationship used in the M2O section."),J=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2m-20220805A.webp",alt:"One-to-Many Relational Diagram"})],-1),G=e("p",null,"Let\u2019s take a look at the schema.",-1),K=e("pre",null,[e("code",null,`countries
8
+ `)],-1),D=e("p",null,"Note the following things from the schema above:",-1),I=e("ul",null,[e("li",null,"An M2O relationship requires just one column within the parent table."),e("li",null,[t("When an M2O relational field is configured in Directus, an Item Page on the parent collection will enable access to the item from the related collection. So in our example above, an Item Page in "),e("code",null,"cities"),t(" will enable access to the related country from the "),e("code",null,"countries"),t(" table.")])],-1),S=e("p",null,[t("However, in the Directus Data Studio, an M2O field does not automatically provide access to the parent collection\u2019s items within the related collection. In our example, this means that when you open an Item Page in "),e("code",null,"countries"),t(", you will not see related cities.")],-1),j=e("p",null,"This is where O2M fields come in to play.",-1),W={class:"tip hint"},q=e("div",{class:"hint-title"},"Configure an M2O",-1),C=t("The easiest way to configure an M2O field is to follow the guide on how to "),R=t("create a field (standard)"),N=t(" and select the M2O Interface from the template wizard."),B=e("h2",{id:"one-to-many-(o2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#one-to-many-(o2m)"},"#"),t(" One-to-Many (O2M)")],-1),L=t("Within a relational database, an O2M relationship is the exact same type of relationship as an M2O. Remember, at the end of the "),H=e("a",{href:"#many-to-one-m2o"},"M2O",-1),z=t(" section, we learned that configuring an M2O in Directus does not let us access related items within an Item Page on the related collection. In Directus, configuring an O2M creates an "),P=t("Alias"),E=t(" field, which lets us access related items. To demonstrate this, let\u2019s continue with the "),Y=e("code",null,"cities",-1),U=t(" and "),V=e("code",null,"countries",-1),F=t(" example relationship used in the M2O section."),J=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2m-20220805A.webp",alt:"One-to-Many Relational Diagram"})],-1),G=e("p",null,"Let\u2019s take a look at the schema.",-1),K=e("pre",null,[e("code",null,`countries
9
9
  - id
10
10
  - name
11
11
  - cities (the O2M alias field, does not exist in the data table. Allows access to all cities linked to a country.)
@@ -13,7 +13,7 @@ import{a,o as d,b as r,w as n,g as e,e as i,B as t}from"./runtime-core.esm-bundl
13
13
  - id
14
14
  - name
15
15
  - country_id (the M2O field)
16
- `)],-1),X=e("p",null,"Note the following points from the schema above. When we create an O2M in Directus:",-1),Z=e("ul",null,[e("li",null,[t("Since the perspective is flipped, we now consider "),e("code",null,"countries"),t(" to be the parent collection.")]),e("li",null,"It isn\u2019t always necessary to create an O2M. In some cases, you won\u2019t want or need to access items from both sides."),e("li",null,[t("At first glance, this O2M alias field might make it "),e("em",null,"look and feel"),t(" like a new column was created, but the O2M field is purely "),e("em",null,"virtual"),t(". It creates an Interface within the Data Studio to access items from an O2M perspective. In other words, the O2M alias field allows us to access any related items from "),e("code",null,"cities"),t(" within an Item Details Page in the "),e("code",null,"countries"),t(" collection.")])],-1),$={class:"tip hint"},ee=e("div",{class:"hint-title"},"Configure an O2M",-1),te=t("The easiest way to configure an O2M is to follow the guide on how to "),ne=t("create a field (standard)"),oe=t(" and select the O2M alias field type from the template wizard."),ie=e("h2",{id:"one-to-one-(o2o)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#one-to-one-(o2o)"},"#"),t(" One-to-One (O2O)")],-1),se=e("p",null,[t("Directus does not include a dedicated One-to-One (O2O) relationship type or Interface. However, in the database, O2O is almost exactly the same as an M2O. The only difference is that an O2O enforces "),e("em",null,"cardinality"),t(". In other words, one item from the parent collection can be linked with one item on the related collection, and vice-versa.")],-1),ae=e("p",null,[t("For example, each country has one capital city, and vice versa. This is an O2O. To demonstrate how it works, let\u2019s add this O2O to the "),e("code",null,"cities"),t(" and "),e("code",null,"countries"),t(" example relationship used in the previous sections.")],-1),le=t("The first strategy you may think of it to add a new "),ce=e("code",null,"capital_city",-1),de=t(" field on the "),re=e("code",null,"countries",-1),he=t(" collection, storing the name of the capital city directly. But this would create "),ue=t("data redundancy"),_e=t(", because the same city would exist in both "),me=e("code",null,"countries.capital_city",-1),fe=t(" as well as "),pe=e("code",null,"cities.name",-1),ye=t(". But remember, we want to "),ge=e("em",null,"avoid data redundancy!",-1),we=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2o-redundant-20220805A.webp",alt:"Capital Cities Redundancy"})],-1),Me=e("p",null,[t("Instead, we want to use an O2O relationship. Let\u2019s try adding a "),e("code",null,"cities.capital_of"),t(" field.")],-1),Oe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2o-inefficient-20220805A.webp",alt:"An inefficient One-to-One Relationship"})],-1),be=e("p",null,"Let\u2019s take a look at the schema.",-1),ve=e("pre",null,[e("code",null,`cities
16
+ `)],-1),X=e("p",null,"Note the following points from the schema above. When we create an O2M in Directus:",-1),Z=e("ul",null,[e("li",null,[t("Since the perspective is flipped, we now consider "),e("code",null,"countries"),t(" to be the parent collection.")]),e("li",null,"It isn\u2019t always necessary to create an O2M. In some cases, you won\u2019t want or need to access items from both sides."),e("li",null,[t("At first glance, this O2M alias field might make it "),e("em",null,"look and feel"),t(" like a new column was created, but the O2M field is purely "),e("em",null,"virtual"),t(". It creates an Interface within the Data Studio to access items from an O2M perspective. In other words, the O2M alias field allows us to access any related items from "),e("code",null,"cities"),t(" within an Item Details Page in the "),e("code",null,"countries"),t(" collection.")])],-1),$={class:"tip hint"},ee=e("div",{class:"hint-title"},"Configure an O2M",-1),te=t("The easiest way to configure an O2M is to follow the guide on how to "),ne=t("create a field (standard)"),oe=t(" and select the O2M alias field type from the template wizard."),ie=e("h2",{id:"one-to-one-(o2o)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#one-to-one-(o2o)"},"#"),t(" One-to-One (O2O)")],-1),se=e("p",null,[t("Directus does not include a dedicated One-to-One (O2O) relationship type or Interface. However, in the database, O2O is almost exactly the same as an M2O. The only difference is that an O2O enforces "),e("em",null,"cardinality"),t(". In other words, one item from the parent collection can be linked with one item on the related collection, and vice-versa.")],-1),ae=e("p",null,[t("For example, each country has one capital city, and vice versa. This is an O2O. To demonstrate how it works, let\u2019s add this O2O to the "),e("code",null,"cities"),t(" and "),e("code",null,"countries"),t(" example relationship used in the previous sections.")],-1),le=t("The first strategy you may think of it to add a new "),ce=e("code",null,"capital_city",-1),de=t(" field on the "),re=e("code",null,"countries",-1),he=t(" collection, storing the name of the capital city directly. But this would create "),ue=t("duplicate data"),_e=t(", because the same city would exist in both "),me=e("code",null,"countries.capital_city",-1),fe=t(" as well as "),pe=e("code",null,"cities.name",-1),ge=t(". But remember, we want to "),ye=e("em",null,"avoid duplicate data!",-1),we=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2o-redundant-20220805A.webp",alt:"Duplicate Data from Capital Cities"})],-1),Me=e("p",null,[t("Instead, we want to use an O2O relationship. Let\u2019s try adding a "),e("code",null,"cities.capital_of"),t(" field.")],-1),Oe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2o-inefficient-20220805A.webp",alt:"An inefficient One-to-One Relationship"})],-1),be=e("p",null,"Let\u2019s take a look at the schema.",-1),ve=e("pre",null,[e("code",null,`cities
17
17
  - id
18
18
  - name
19
19
  - country_id
@@ -31,7 +31,7 @@ import{a,o as d,b as r,w as n,g as e,e as i,B as t}from"./runtime-core.esm-bundl
31
31
  - id
32
32
  - name
33
33
  - country_id
34
- `)],-1),Se=e("p",null,"Note the following points from the schema above. When we create an O2O in Directus:",-1),je=e("ul",null,[e("li",null,"We can add the O2O field on either collection. However, in some cases it is more efficient to add it to a specific collection."),e("li",null,[t("Since the O2O field is really just an M2O field behind the scenes, and since Directus doesn\u2019t automatically display M2O fields in the related collection, you may want to "),e("a",{href:"#one-to-many-o2m"},"configure an O2M field"),t(" so that you can access items from the related collection as well.")])],-1),We={class:"tip hint"},qe=e("div",{class:"hint-title"},"Configure an O2O",-1),Re=t("The easiest way to configure an O2O is to follow the guide on how to "),Ce=t("create a field (standard)"),Be=t(" and select the "),Ne=e("strong",null,"M2O",-1),Le=t(" field type from the template wizard. Then, "),He=t("configure the field\u2019s schema"),ze=t(", toggling on "),Pe=e("strong",null,"Unique",-1),Ye=t(" so that each value in the M2O field is unique, resulting in an O2O relationship."),Ee=e("h2",{id:"many-to-many-(m2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#many-to-many-(m2m)"},"#"),t(" Many-to-Many (M2M)")],-1),Ue=e("p",null,[t("The relationship types we have seen so far only required one foreign key column to link the parent collection and related collection. An M2M relationship is composed "),e("em",null,"of two foreign key columns"),t(" stored within an additional table, called a "),e("em",null,"junction table"),t(", which stores each linked row between the parent table and related table.")],-1),Ve=e("p",null,[t("Junction tables are required in M2M relationships because the number of relationships created can "),e("em",null,"(and often will!)"),t(" outnumber the number of rows in either data table. In other words, if you have "),e("code",null,"x"),t(" rows in the parent column and "),e("code",null,"y"),t(" rows in the related column, you need room to store up to "),e("code",null,"x * y"),t(" rows. Junction tables provide a place to store all the relationships between rows, no matter how many exist.")],-1),Fe=e("p",null,[t("To demonstrate this, let\u2019s think about the relationship between recipes and ingredients: a "),e("em",null,"recipe"),t(" can have many "),e("em",null,"ingredients"),t(", and "),e("em",null,"ingredients"),t(" can be in many "),e("em",null,"recipes"),t(".")],-1),Je=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/m2m-20220805A.webp",alt:"Many-to-Many Relational Diagram"})],-1),Ge=e("p",null,"Let\u2019s take a look at the schema.",-1),Ke=e("pre",null,[e("code",null,`recipes
34
+ `)],-1),Se=e("p",null,"Note the following points from the schema above. When we create an O2O in Directus:",-1),je=e("ul",null,[e("li",null,"We can add the O2O field on either collection. However, in some cases it is more efficient to add it to a specific collection."),e("li",null,[t("Since the O2O field is really just an M2O field behind the scenes, and since Directus doesn\u2019t automatically display M2O fields in the related collection, you may want to "),e("a",{href:"#one-to-many-o2m"},"configure an O2M field"),t(" so that you can access items from the related collection as well.")])],-1),We={class:"tip hint"},qe=e("div",{class:"hint-title"},"Configure an O2O",-1),Ce=t("The easiest way to configure an O2O is to follow the guide on how to "),Re=t("create a field (standard)"),Ne=t(" and select the "),Be=e("strong",null,"M2O",-1),Le=t(" field type from the template wizard. Then, "),He=t("configure the field\u2019s schema"),ze=t(", toggling on "),Pe=e("strong",null,"Unique",-1),Ee=t(" so that each value in the M2O field is unique, resulting in an O2O relationship."),Ye=e("h2",{id:"many-to-many-(m2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#many-to-many-(m2m)"},"#"),t(" Many-to-Many (M2M)")],-1),Ue=e("p",null,[t("The relationship types we have seen so far only required one foreign key column to link the parent collection and related collection. An M2M relationship is composed "),e("em",null,"of two foreign key columns"),t(" stored within an additional table, called a "),e("em",null,"junction table"),t(", which stores each linked row between the parent table and related table.")],-1),Ve=e("p",null,[t("Junction tables are required in M2M relationships because the number of relationships created can "),e("em",null,"(and often will!)"),t(" outnumber the number of rows in either data table. In other words, if you have "),e("code",null,"x"),t(" rows in the parent column and "),e("code",null,"y"),t(" rows in the related column, you need room to store up to "),e("code",null,"x * y"),t(" rows. Junction tables provide a place to store all the relationships between rows, no matter how many exist.")],-1),Fe=e("p",null,[t("To demonstrate this, let\u2019s think about the relationship between recipes and ingredients: a "),e("em",null,"recipe"),t(" can have many "),e("em",null,"ingredients"),t(", and "),e("em",null,"ingredients"),t(" can be in many "),e("em",null,"recipes"),t(".")],-1),Je=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/m2m-20220805A.webp",alt:"Many-to-Many Relational Diagram"})],-1),Ge=e("p",null,"Let\u2019s take a look at the schema.",-1),Ke=e("pre",null,[e("code",null,`recipes
35
35
  - id
36
36
  - name
37
37
  - ingredients (An M2M alias field. Does not exist in the database, allows access to ingredients linked from recipe_ingredients)
@@ -47,7 +47,7 @@ import{a,o as d,b as r,w as n,g as e,e as i,B as t}from"./runtime-core.esm-bundl
47
47
  - id
48
48
  - name
49
49
  - recipes (an O2M alias field, does not exist in the database, enables access to all the recipes related to an ingredient)
50
- `)],-1),tt=e("ul",null,[e("li",null,[t("Notice that the junction collection also has a "),e("code",null,"quantity"),t(" field, which tracks how much of each ingredient is needed for the recipe. This is called a "),e("em",null,"contextual field"),t(". The Data Studio provides full access to the junction collection, so you can add any number of contextual fields needed to the junction collection.")]),e("li",null,[t("You can also have a self-referencing M2M relationship that connects items in the "),e("em",null,"same collection"),t(". One example is \u201CRelated Articles\u201D, where each article relates to many other articles.")])],-1),nt={class:"tip hint"},ot=e("div",{class:"hint-title"},"Configure an M2M",-1),it=t("The easiest way to configure an M2M is to follow the guide on how to "),st=t("create a field (standard)"),at=t(" and select "),lt=e("strong",null,"Many to Many",-1),ct=t(" from the template wizard."),dt=e("h2",{id:"many-to-any-(m2a)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#many-to-any-(m2a)"},"#"),t(" Many-to-Any (M2A)")],-1),rt=t("Sometimes called a "),ht=e("em",null,"matrix field",-1),ut=t(" or "),_t=e("em",null,"replicator",-1),mt=t(", an M2A relationship allows you to link items from the parent collection to any item in any collection in the database. When you configure an M2A in Directus, an M2A "),ft=t("Alias"),pt=t(" field is created as well as a junction collection, like we saw on M2M relationships. The difference is that the junction collection on an M2A also has a field to store the "),yt=e("strong",null,"collection key",-1),gt=e("em",null,"(the name of the collection)",-1),wt=t(" for related collections."),Mt=e("p",null,[t("One common example of when M2As are used is for "),e("em",null,"page builders"),t(", which have a "),e("code",null,"pages"),t(" collection that combines multiple collections for each type of page section, such as "),e("code",null,"heading"),t(", "),e("code",null,"text_bodies"),t(", "),e("code",null,"image"),t(", "),e("code",null,"video"),t(", "),e("em",null,"etc"),t(".")],-1),Ot=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/m2a-20220805A.webp",alt:"Many-to-Any Relational Diagram"})],-1),bt=e("p",null,"Let\u2019s take a look at the schema:",-1),vt=e("pre",null,[e("code",null,`pages
50
+ `)],-1),tt=e("ul",null,[e("li",null,[t("Notice that the junction collection also has a "),e("code",null,"quantity"),t(" field, which tracks how much of each ingredient is needed for the recipe. This is called a "),e("em",null,"contextual field"),t(". The Data Studio provides full access to the junction collection, so you can add any number of contextual fields needed to the junction collection.")]),e("li",null,[t("You can also have a self-referencing M2M relationship that connects items in the "),e("em",null,"same collection"),t(". One example is \u201CRelated Articles\u201D, where each article relates to many other articles.")])],-1),nt={class:"tip hint"},ot=e("div",{class:"hint-title"},"Configure an M2M",-1),it=t("The easiest way to configure an M2M is to follow the guide on how to "),st=t("create a field (standard)"),at=t(" and select "),lt=e("strong",null,"Many to Many",-1),ct=t(" from the template wizard."),dt=e("h2",{id:"many-to-any-(m2a)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#many-to-any-(m2a)"},"#"),t(" Many-to-Any (M2A)")],-1),rt=t("Sometimes called a "),ht=e("em",null,"matrix field",-1),ut=t(" or "),_t=e("em",null,"replicator",-1),mt=t(", an M2A relationship allows you to link items from the parent collection to any item in any collection in the database. When you configure an M2A in Directus, an M2A "),ft=t("Alias"),pt=t(" field is created as well as a junction collection, like we saw on M2M relationships. The difference is that the junction collection on an M2A also has a field to store the "),gt=e("strong",null,"collection key",-1),yt=e("em",null,"(the name of the collection)",-1),wt=t(" for related collections."),Mt=e("p",null,[t("One common example of when M2As are used is for "),e("em",null,"page builders"),t(", which have a "),e("code",null,"pages"),t(" collection that combines multiple collections for each type of page section, such as "),e("code",null,"heading"),t(", "),e("code",null,"text_bodies"),t(", "),e("code",null,"image"),t(", "),e("code",null,"video"),t(", "),e("em",null,"etc"),t(".")],-1),Ot=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/m2a-20220805A.webp",alt:"Many-to-Any Relational Diagram"})],-1),bt=e("p",null,"Let\u2019s take a look at the schema:",-1),vt=e("pre",null,[e("code",null,`pages
51
51
  - id
52
52
  - name
53
53
  - sections (An M2A alias field, does not exist in the database. Provides access to items from page_sections.)
@@ -65,12 +65,12 @@ import{a,o as d,b as r,w as n,g as e,e as i,B as t}from"./runtime-core.esm-bundl
65
65
  `)],-1),Tt=e("pre",null,[e("code",null,`images
66
66
  - id
67
67
  - file
68
- `)],-1),Dt=e("p",null,"Note the following points from the schema above. When we create an M2A in Directus:",-1),It=e("ul",null,[e("li",null,[t("Compared to the M2O and M2M relationships, there may be a lower likelihood that you will need to configure alias fields on related collections, such as "),e("code",null,"headings"),t(", "),e("code",null,"text_bodies"),t(" and "),e("code",null,"images"),t(", as these collections may not be as useful without the parent collection.")]),e("li",null,[t("Each collection has a unique collection name, so this serves as an adequate foreign key in the "),e("code",null,"page_sections.collection"),t(" field.")])],-1),St={class:"tip hint"},jt=e("div",{class:"hint-title"},"Configure an M2A",-1),Wt=t("The easiest way to configure an M2A is to follow the guide on how to "),qt=t("create a field (standard)"),Rt=t(" and select the "),Ct=e("strong",null,"Many to Any",-1),Bt=t(" Interface from the template wizard."),Nt=e("h2",{id:"translations-(o2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#"),t(" Translations (O2M)")],-1),Lt=e("p",null,[t("Directus provides this special relational Interface designed specifically to handle translations. When you create a Translations O2M in the Data Studio, the following things happen within your data model. A Translations O2M alias field is created. A junction collection and a "),e("code",null,"languages"),t(" collection are created. All your translations are stored within context fields, configured by you, on the junction collection. Therefore, when you create a Translations O2M, you also create an M2M relationship behind the scenes. So remember, it is called the Translations O2M because we interact with the Translations O2M alias field. But behind the scenes, it is powered by an M2M.")],-1),Ht=e("p",null,[t("To demonstrate, let\u2019s create a Translations O2M relationship for "),e("code",null,"articles"),t(", a common content type that you may want to translate.")],-1),zt=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2m-translations-20220805A.webp",alt:"Translations O2M"})],-1),Pt=e("p",null,"Let\u2019s take a look at the schema.",-1),Yt=e("pre",null,[e("code",null,`articles
68
+ `)],-1),Dt=e("p",null,"Note the following points from the schema above. When we create an M2A in Directus:",-1),It=e("ul",null,[e("li",null,[t("Compared to the M2O and M2M relationships, there may be a lower likelihood that you will need to configure alias fields on related collections, such as "),e("code",null,"headings"),t(", "),e("code",null,"text_bodies"),t(" and "),e("code",null,"images"),t(", as these collections may not be as useful without the parent collection.")]),e("li",null,[t("Each collection has a unique collection name, so this serves as an adequate foreign key in the "),e("code",null,"page_sections.collection"),t(" field.")])],-1),St={class:"tip hint"},jt=e("div",{class:"hint-title"},"Configure an M2A",-1),Wt=t("The easiest way to configure an M2A is to follow the guide on how to "),qt=t("create a field (standard)"),Ct=t(" and select the "),Rt=e("strong",null,"Many to Any",-1),Nt=t(" Interface from the template wizard."),Bt=e("h2",{id:"translations-(o2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#"),t(" Translations (O2M)")],-1),Lt=e("p",null,[t("Directus provides this special relational Interface designed specifically to handle translations. When you create a Translations O2M in the Data Studio, the following things happen within your data model. A Translations O2M alias field is created. A junction collection and a "),e("code",null,"languages"),t(" collection are created. All your translations are stored within context fields, configured by you, on the junction collection. Therefore, when you create a Translations O2M, you also create an M2M relationship behind the scenes. So remember, it is called the Translations O2M because we interact with the Translations O2M alias field. But behind the scenes, it is powered by an M2M.")],-1),Ht=e("p",null,[t("To demonstrate, let\u2019s create a Translations O2M relationship for "),e("code",null,"articles"),t(", a common content type that you may want to translate.")],-1),zt=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/relationships-20220805/o2m-translations-20220805A.webp",alt:"Translations O2M"})],-1),Pt=e("p",null,"Let\u2019s take a look at the schema.",-1),Et=e("pre",null,[e("code",null,`articles
69
69
  - id
70
70
  - author (a field that is not translated)
71
71
  - date_published (a field that is not translated)
72
72
  - translations (A Translations O2M alias field, does not exist within the data table. Allows access to items from article_translations)
73
- `)],-1),Et=e("pre",null,[e("code",null,`article_translations
73
+ `)],-1),Yt=e("pre",null,[e("code",null,`article_translations
74
74
  - id
75
75
  - article_id (an M2O, stores foreign key article.id)
76
76
  - language_id (an M2O, stores foreign key languages.language_code)
@@ -79,4 +79,4 @@ import{a,o as d,b as r,w as n,g as e,e as i,B as t}from"./runtime-core.esm-bundl
79
79
  `)],-1),Ut=e("pre",null,[e("code",null,`languages
80
80
  - language_code (A primary key. A manually typed language code, e.g., "en-US")
81
81
  - name (Stores the language name, e.g., "English")
82
- `)],-1),Vt=e("p",null,"Note the following points from the schema above. When we create a Translations O2M:",-1),Ft=e("li",null,[t("As demonstrated by "),e("code",null,"article_translations.title"),t(" and "),e("code",null,"article_translations.text"),t(", any "),e("em",null,"translated"),t(" fields should be added as context fields on the junction collection.")],-1),Jt=e("li",null,[t("You are not bound to use this for translations. You can build your data model as desired. You could create individual fields for each translation, such as "),e("code",null,"title_english"),t(", "),e("code",null,"title_german"),t(", "),e("code",null,"title_french"),t(", and so on. However, this is not easily extensible and it creates a sub-optimal experience to have every single translation of every field on the item details page. The Translations O2M alias field is designed specifically to make the translation process easier.")],-1),Gt=t("There may come a time when you want to make a pre-existing parent field translatable. To do this, you can "),Kt=t("duplicate a field"),Qt=t(", move it to the translation collection, and then delete the parent field. However, be aware that duplicating a field does "),Xt=e("em",null,"not",-1),Zt=t(" duplicate any existing field values."),$t={class:"tip hint"},en=e("div",{class:"hint-title"},"Configure a Translations O2M",-1),tn=t("The easiest way to configure a Translations relationship is to follow the guide on how to "),nn=t("create a field (standard)"),on=t(" and select the "),sn=e("strong",null,"Translations O2M",-1),an=t(" Interface from the template wizard."),hn="Relationships",un=!1,_n={name:"relationships",setup(ln,{expose:l}){const s={title:"Relationships",modularExtension:!1};return l({frontmatter:s}),(cn,dn)=>{const o=a("router-link"),c=a("docs-wrapper");return d(),r(c,{frontmatter:s},{default:n(()=>[e("div",h,[u,_,m,f,p,y,g,w,M,O,b,v,k,x,A,T,D,I,S,j,e("div",W,[q,e("p",null,[R,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[C]),_:1}),B])]),N,e("p",null,[L,H,z,i(o,{to:"/docs/getting-started/glossary#alias"},{default:n(()=>[P]),_:1}),Y,E,U,V,F]),J,G,K,Q,X,Z,e("div",$,[ee,e("p",null,[te,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[ne]),_:1}),oe])]),ie,se,ae,e("p",null,[le,ce,de,re,he,i(o,{to:"/docs/configuration/data-model#avoid-data-redundancy"},{default:n(()=>[ue]),_:1}),_e,me,fe,pe,ye,ge]),we,Me,Oe,be,ve,ke,xe,Ae,Te,De,Ie,Se,je,e("div",We,[qe,e("p",null,[Re,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[Ce]),_:1}),Be,Ne,Le,i(o,{to:"/docs/configuration/data-model/fields/schema"},{default:n(()=>[He]),_:1}),ze,Pe,Ye])]),Ee,Ue,Ve,Fe,Je,Ge,Ke,Qe,Xe,Ze,$e,et,tt,e("div",nt,[ot,e("p",null,[it,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[st]),_:1}),at,lt,ct])]),dt,e("p",null,[rt,ht,ut,_t,mt,i(o,{to:"/docs/getting-started/glossary#alias"},{default:n(()=>[ft]),_:1}),pt,yt,gt,wt]),Mt,Ot,bt,vt,kt,xt,At,Tt,Dt,It,e("div",St,[jt,e("p",null,[Wt,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[qt]),_:1}),Rt,Ct,Bt])]),Nt,Lt,Ht,zt,Pt,Yt,Et,Ut,Vt,e("ul",null,[Ft,Jt,e("li",null,[Gt,i(o,{to:"/docs/configuration/data-model/fields/#duplicate-a-field"},{default:n(()=>[Kt]),_:1}),Qt,Xt,Zt])]),e("div",$t,[en,e("p",null,[tn,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[nn]),_:1}),on,sn,an])])])]),_:1})}}};export{_n as default,un as modularExtension,hn as title};
82
+ `)],-1),Vt=e("p",null,"Note the following points from the schema above. When we create a Translations O2M:",-1),Ft=e("li",null,[t("As demonstrated by "),e("code",null,"article_translations.title"),t(" and "),e("code",null,"article_translations.text"),t(", any "),e("em",null,"translated"),t(" fields should be added as context fields on the junction collection.")],-1),Jt=e("li",null,[t("You are not bound to use this for translations. You can build your data model as desired. You could create individual fields for each translation, such as "),e("code",null,"title_english"),t(", "),e("code",null,"title_german"),t(", "),e("code",null,"title_french"),t(", and so on. However, this is not easily extensible and it creates a sub-optimal experience to have every single translation of every field on the item details page. The Translations O2M alias field is designed specifically to make the translation process easier.")],-1),Gt=t("There may come a time when you want to make a pre-existing parent field translatable. To do this, you can "),Kt=t("duplicate a field"),Qt=t(", move it to the translation collection, and then delete the parent field. However, be aware that duplicating a field does "),Xt=e("em",null,"not",-1),Zt=t(" duplicate any existing field values."),$t={class:"tip hint"},en=e("div",{class:"hint-title"},"Configure a Translations O2M",-1),tn=t("The easiest way to configure a Translations relationship is to follow the guide on how to "),nn=t("create a field (standard)"),on=t(" and select the "),sn=e("strong",null,"Translations O2M",-1),an=t(" Interface from the template wizard."),hn="Relationships",un=!1,_n={name:"relationships",setup(ln,{expose:l}){const s={title:"Relationships",modularExtension:!1};return l({frontmatter:s}),(cn,dn)=>{const o=a("router-link"),c=a("docs-wrapper");return d(),r(c,{frontmatter:s},{default:n(()=>[e("div",h,[u,_,m,f,p,g,y,w,M,O,b,v,k,x,A,T,D,I,S,j,e("div",W,[q,e("p",null,[C,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[R]),_:1}),N])]),B,e("p",null,[L,H,z,i(o,{to:"/docs/getting-started/glossary#alias"},{default:n(()=>[P]),_:1}),E,Y,U,V,F]),J,G,K,Q,X,Z,e("div",$,[ee,e("p",null,[te,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[ne]),_:1}),oe])]),ie,se,ae,e("p",null,[le,ce,de,re,he,i(o,{to:"/docs/configuration/data-model#avoid-data-duplication"},{default:n(()=>[ue]),_:1}),_e,me,fe,pe,ge,ye]),we,Me,Oe,be,ve,ke,xe,Ae,Te,De,Ie,Se,je,e("div",We,[qe,e("p",null,[Ce,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[Re]),_:1}),Ne,Be,Le,i(o,{to:"/docs/configuration/data-model/fields/schema"},{default:n(()=>[He]),_:1}),ze,Pe,Ee])]),Ye,Ue,Ve,Fe,Je,Ge,Ke,Qe,Xe,Ze,$e,et,tt,e("div",nt,[ot,e("p",null,[it,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[st]),_:1}),at,lt,ct])]),dt,e("p",null,[rt,ht,ut,_t,mt,i(o,{to:"/docs/getting-started/glossary#alias"},{default:n(()=>[ft]),_:1}),pt,gt,yt,wt]),Mt,Ot,bt,vt,kt,xt,At,Tt,Dt,It,e("div",St,[jt,e("p",null,[Wt,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[qt]),_:1}),Ct,Rt,Nt])]),Bt,Lt,Ht,zt,Pt,Et,Yt,Ut,Vt,e("ul",null,[Ft,Jt,e("li",null,[Gt,i(o,{to:"/docs/configuration/data-model/fields/#duplicate-a-field"},{default:n(()=>[Kt]),_:1}),Qt,Xt,Zt])]),e("div",$t,[en,e("p",null,[tn,i(o,{to:"/docs/configuration/data-model/fields/#create-a-field-standard"},{default:n(()=>[nn]),_:1}),on,sn,an])])])]),_:1})}}};export{_n as default,un as modularExtension,hn as title};
@@ -1 +1 @@
1
- import{a as t,o as i,b as c,w as n,g as e,e as u,B as r}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},h=e("h2",{id:"cloud",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#cloud"},"#"),r(" Cloud")],-1),p=e("li",null,[e("strong",null,[e("a",{href:"https://directus.cloud",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud")]),r(" \u2014 The best way to get your Project up and running.")],-1),f=e("li",null,[e("strong",null,[e("a",{href:"https://directus.io/contact",target:"_blank",rel:"noopener noreferrer"},"Enterprise Cloud")]),r(" \u2014 Custom-tailored solutions for industrial scale projects.")],-1),m=r("Cloud Documentation"),_=r(" \u2014 Docs for Directus cloud."),g=e("li",null,[e("strong",null,[e("a",{href:"https://status.directus.cloud",target:"_blank",rel:"noopener noreferrer"},"System Status")]),r(" \u2014 Up-to-date information on our various cloud systems.")],-1),k=e("h2",{id:"developer-resources",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#developer-resources"},"#"),r(" Developer Resources")],-1),b=e("ul",null,[e("li",null,[e("strong",null,[e("a",{href:"https://github.com/directus/directus",target:"_blank",rel:"noopener noreferrer"},"GitHub")]),r(" \u2014 The open-source repository and version control.")]),e("li",null,[e("strong",null,[e("a",{href:"https://www.npmjs.com/package/directus",target:"_blank",rel:"noopener noreferrer"},"NPM Package")]),r(" \u2014 The official Directus node package.")]),e("li",null,[e("strong",null,[e("a",{href:"https://hub.docker.com/r/directus/directus",target:"_blank",rel:"noopener noreferrer"},"Docker Image")]),r(" \u2014 The official Directus docker image.")]),e("li",null,[e("strong",null,[e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"Documentation")]),r(" \u2014 Docs for the most recent version of Directus.")]),e("li",null,[e("strong",null,[e("a",{href:"https://locales.directus.io",target:"_blank",rel:"noopener noreferrer"},"Crowdin")]),r(" \u2014 Service for managing the App\u2019s many language translations.")])],-1),w=e("h2",{id:"community",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#community"},"#"),r(" Community")],-1),D=e("ul",null,[e("li",null,[e("strong",null,[e("a",{href:"https://www.youtube.com/c/DirectusVideos",target:"_blank",rel:"noopener noreferrer"},"YouTube")]),r(" \u2014 Checkout our channel with video tutorials and feature overviews.")]),e("li",null,[e("strong",null,[e("a",{href:"https://directus.chat",target:"_blank",rel:"noopener noreferrer"},"Discord")]),r(" \u2014 A growing community of 4K+ developers.")]),e("li",null,[e("strong",null,[e("a",{href:"https://twitter.com/directus",target:"_blank",rel:"noopener noreferrer"},"Twitter")]),r(" \u2014 The latest product info and sneak-peeks.")]),e("li",null,[e("strong",null,[e("a",{href:"https://directus.io",target:"_blank",rel:"noopener noreferrer"},"Website")]),r(" \u2014 General information, resources, and team info.")]),e("li",null,[e("strong",null,[e("a",{href:"https://github.com/directus-community/awesome-directus",target:"_blank",rel:"noopener noreferrer"},"Awesome List")]),r(" \u2014 A list of awesome things related Directus.")])],-1),x="Resources",A=!1,B="Additional resources to the Directus community.",N="1 min read",V={name:"resources",setup(v,{expose:s}){const o={title:"Resources",modularExtension:!1,description:"Additional resources to the Directus community.",readTime:"1 min read"};return s({frontmatter:o}),(y,C)=>{const l=t("router-link"),a=t("docs-wrapper");return i(),c(a,{frontmatter:o},{default:n(()=>[e("div",d,[h,e("ul",null,[p,f,e("li",null,[e("strong",null,[u(l,{to:"/docs/cloud/overview"},{default:n(()=>[m]),_:1})]),_]),g]),k,b,w,D])]),_:1})}}};export{V as default,B as description,A as modularExtension,N as readTime,x as title};
1
+ import{a as t,o as i,b as c,w as n,l as e,e as u,E as r}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},h=e("h2",{id:"cloud",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#cloud"},"#"),r(" Cloud")],-1),p=e("li",null,[e("strong",null,[e("a",{href:"https://directus.cloud",target:"_blank",rel:"noopener noreferrer"},"Directus Cloud")]),r(" \u2014 The best way to get your Project up and running.")],-1),f=e("li",null,[e("strong",null,[e("a",{href:"https://directus.io/contact",target:"_blank",rel:"noopener noreferrer"},"Enterprise Cloud")]),r(" \u2014 Custom-tailored solutions for industrial scale projects.")],-1),m=r("Cloud Documentation"),_=r(" \u2014 Docs for Directus cloud."),g=e("li",null,[e("strong",null,[e("a",{href:"https://status.directus.cloud",target:"_blank",rel:"noopener noreferrer"},"System Status")]),r(" \u2014 Up-to-date information on our various cloud systems.")],-1),k=e("h2",{id:"developer-resources",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#developer-resources"},"#"),r(" Developer Resources")],-1),b=e("ul",null,[e("li",null,[e("strong",null,[e("a",{href:"https://github.com/directus/directus",target:"_blank",rel:"noopener noreferrer"},"GitHub")]),r(" \u2014 The open-source repository and version control.")]),e("li",null,[e("strong",null,[e("a",{href:"https://www.npmjs.com/package/directus",target:"_blank",rel:"noopener noreferrer"},"NPM Package")]),r(" \u2014 The official Directus node package.")]),e("li",null,[e("strong",null,[e("a",{href:"https://hub.docker.com/r/directus/directus",target:"_blank",rel:"noopener noreferrer"},"Docker Image")]),r(" \u2014 The official Directus docker image.")]),e("li",null,[e("strong",null,[e("a",{href:"https://docs.directus.io",target:"_blank",rel:"noopener noreferrer"},"Documentation")]),r(" \u2014 Docs for the most recent version of Directus.")]),e("li",null,[e("strong",null,[e("a",{href:"https://locales.directus.io",target:"_blank",rel:"noopener noreferrer"},"Crowdin")]),r(" \u2014 Service for managing the App\u2019s many language translations.")])],-1),w=e("h2",{id:"community",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#community"},"#"),r(" Community")],-1),D=e("ul",null,[e("li",null,[e("strong",null,[e("a",{href:"https://www.youtube.com/c/DirectusVideos",target:"_blank",rel:"noopener noreferrer"},"YouTube")]),r(" \u2014 Checkout our channel with video tutorials and feature overviews.")]),e("li",null,[e("strong",null,[e("a",{href:"https://directus.chat",target:"_blank",rel:"noopener noreferrer"},"Discord")]),r(" \u2014 A growing community of 4K+ developers.")]),e("li",null,[e("strong",null,[e("a",{href:"https://twitter.com/directus",target:"_blank",rel:"noopener noreferrer"},"Twitter")]),r(" \u2014 The latest product info and sneak-peeks.")]),e("li",null,[e("strong",null,[e("a",{href:"https://directus.io",target:"_blank",rel:"noopener noreferrer"},"Website")]),r(" \u2014 General information, resources, and team info.")]),e("li",null,[e("strong",null,[e("a",{href:"https://github.com/directus-community/awesome-directus",target:"_blank",rel:"noopener noreferrer"},"Awesome List")]),r(" \u2014 A list of awesome things related Directus.")])],-1),x="Resources",A=!1,E="Additional resources to the Directus community.",N="1 min read",V={name:"resources",setup(v,{expose:s}){const o={title:"Resources",modularExtension:!1,description:"Additional resources to the Directus community.",readTime:"1 min read"};return s({frontmatter:o}),(y,C)=>{const l=t("router-link"),a=t("docs-wrapper");return i(),c(a,{frontmatter:o},{default:n(()=>[e("div",d,[h,e("ul",null,[p,f,e("li",null,[e("strong",null,[u(l,{to:"/docs/cloud/overview"},{default:n(()=>[m]),_:1})]),_]),g]),k,b,w,D])]),_:1})}}};export{V as default,E as description,A as modularExtension,N as readTime,x as title};
@@ -1,4 +1,4 @@
1
- import{a as l,o as c,b as h,w as t,g as s,e as a,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},p=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. "),u=e("Learn more about Revisions"),_=e("."),m=s("hr",null,null,-1),v=s("h2",{id:"the-revision-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-revision-object"},"#"),e(" The Revision Object")],-1),j=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),y=s("code",null,"activity",-1),g=e(),b=s("strong",null,"many-to-one",-1),f=s("br",null,null,-1),x=e(" Related activity record. Many-to-one to "),q=e("activity"),R=e("."),k=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),w=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),E=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),T=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),P=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),S=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
1
+ import{a as l,o as c,b as h,w as t,l as s,e as a,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},p=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. "),u=e("Learn more about Revisions"),_=e("."),m=s("hr",null,null,-1),v=s("h2",{id:"the-revision-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-revision-object"},"#"),e(" The Revision Object")],-1),j=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),y=s("code",null,"activity",-1),g=e(),b=s("strong",null,"many-to-one",-1),f=s("br",null,null,-1),x=e(" Related activity record. Many-to-one to "),q=e("activity"),R=e("."),k=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),w=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),E=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),T=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),P=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),S=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-number"},"368"),s("span",{class:"hljs-punctuation"},","),e(`
3
3
  `),s("span",{class:"hljs-attr"},'"activity"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-number"},"438"),s("span",{class:"hljs-punctuation"},","),e(`
4
4
  `),s("span",{class:"hljs-attr"},'"collection"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"articles"'),s("span",{class:"hljs-punctuation"},","),e(`
@@ -11,7 +11,7 @@ import{a as l,o as c,b as h,w as t,g as s,e as a,B as e}from"./runtime-core.esm-
11
11
  `),s("span",{class:"hljs-punctuation"},"}"),s("span",{class:"hljs-punctuation"},","),e(`
12
12
  `),s("span",{class:"hljs-attr"},'"parent"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"null")]),e(`
13
13
  `),s("span",{class:"hljs-punctuation"},"}"),e(`
14
- `)])],-1),L=s("hr",null,null,-1),Q=s("h2",{id:"list-revisions",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-revisions"},"#"),e(" List revisions")],-1),A=s("p",null,"List all revisions that exist in Directus.",-1),C=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),G=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),D=e("Supports all "),I=e("global query parameters"),B=e("."),H=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),N=e("An array of up to "),O=e("limit"),V=e(),M=s("a",{href:"#the-revision-object"},"revision objects",-1),F=e(". If no items are available, data will be an empty array."),W=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),z=s("pre",null,[s("code",null,`GET /revisions
14
+ `)])],-1),L=s("hr",null,null,-1),Q=s("h2",{id:"list-revisions",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-revisions"},"#"),e(" List revisions")],-1),A=s("p",null,"List all revisions that exist in Directus.",-1),C=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),G=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),D=e("Supports all "),I=e("global query parameters"),H=e("."),B=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),N=e("An array of up to "),O=e("limit"),V=e(),M=s("a",{href:"#the-revision-object"},"revision objects",-1),F=e(". If no items are available, data will be an empty array."),W=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),z=s("pre",null,[s("code",null,`GET /revisions
15
15
  SEARCH /revisions
16
16
  `)],-1),J=e("Learn more about SEARCH ->"),K=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),e(" GraphQL")],-1),U=s("pre",null,[s("code",null,`POST /graphql/system
17
17
  `)],-1),X=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
@@ -37,4 +37,4 @@ SEARCH /revisions
37
37
  delta
38
38
  }
39
39
  }
40
- `)])],-1),fs="Revisions",xs=!1,qs="REST and GraphQL API documentation on the Revisions collection in Directus.",Rs="2 min read",ks="page-reference",ws={name:"revisions",setup(js,{expose:i}){const o={title:"Revisions",modularExtension:!1,description:"REST and GraphQL API documentation on the Revisions collection in Directus.",readTime:"2 min read",pageClass:"page-reference"};return i({frontmatter:o}),(ys,gs)=>{const n=l("router-link"),r=l("docs-wrapper");return c(),h(r,{frontmatter:o},{default:t(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,a(n,{to:"/docs/getting-started/glossary#revisions"},{default:t(()=>[u]),_:1}),_])]),m,v,j,s("p",null,[y,g,b,f,x,a(n,{to:"/docs/reference/system/activity"},{default:t(()=>[q]),_:1}),R]),k,w,E,T,P,S,L,Q,A,C,G,s("p",null,[D,a(n,{to:"/docs/reference/query"},{default:t(()=>[I]),_:1}),B]),H,s("p",null,[N,a(n,{to:"/docs/reference/query#limit"},{default:t(()=>[O]),_:1}),V,M,F]),W,z,s("p",null,[a(n,{to:"/docs/reference/introduction#search-http-method"},{default:t(()=>[J]),_:1})]),K,U,X,Y,Z,$,ss,es,ts,s("p",null,[ns,a(n,{to:"/docs/reference/query"},{default:t(()=>[as]),_:1}),os]),ls,is,rs,cs,hs,ds,ps,us,_s,ms,vs])]),_:1})}}};export{ws as default,qs as description,xs as modularExtension,ks as pageClass,Rs as readTime,fs as title};
40
+ `)])],-1),fs="Revisions",xs=!1,qs="REST and GraphQL API documentation on the Revisions collection in Directus.",Rs="2 min read",ks="page-reference",ws={name:"revisions",setup(js,{expose:i}){const o={title:"Revisions",modularExtension:!1,description:"REST and GraphQL API documentation on the Revisions collection in Directus.",readTime:"2 min read",pageClass:"page-reference"};return i({frontmatter:o}),(ys,gs)=>{const n=l("router-link"),r=l("docs-wrapper");return c(),h(r,{frontmatter:o},{default:t(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,a(n,{to:"/docs/getting-started/glossary#revisions"},{default:t(()=>[u]),_:1}),_])]),m,v,j,s("p",null,[y,g,b,f,x,a(n,{to:"/docs/reference/system/activity"},{default:t(()=>[q]),_:1}),R]),k,w,E,T,P,S,L,Q,A,C,G,s("p",null,[D,a(n,{to:"/docs/reference/query"},{default:t(()=>[I]),_:1}),H]),B,s("p",null,[N,a(n,{to:"/docs/reference/query#limit"},{default:t(()=>[O]),_:1}),V,M,F]),W,z,s("p",null,[a(n,{to:"/docs/reference/introduction#search-http-method"},{default:t(()=>[J]),_:1})]),K,U,X,Y,Z,$,ss,es,ts,s("p",null,[ns,a(n,{to:"/docs/reference/query"},{default:t(()=>[as]),_:1}),os]),ls,is,rs,cs,hs,ds,ps,us,_s,ms,vs])]),_:1})}}};export{ws as default,qs as description,xs as modularExtension,ks as pageClass,Rs as readTime,fs as title};
@@ -1,4 +1,4 @@
1
- import{a as o,o as h,b as i,w as a,g as s,e as n,B as e}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},p=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),u=e("Learn more about Roles"),_=e("."),j=s("hr",null,null,-1),m=s("h2",{id:"the-role-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-role-object"},"#"),e(" The Role Object")],-1),f=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),g=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),b=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),y=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),x=s("p",null,[s("code",null,"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" A CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),q=s("p",null,[s("code",null,"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),R=s("p",null,[s("code",null,"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),E=s("p",null,[s("code",null,"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),k=s("code",null,"users",-1),w=e(),T=s("strong",null,"one-to-many",-1),P=s("br",null,null,-1),A=e(" The users in this role. One-to-many to "),S=e("users"),I=e("."),D=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
1
+ import{a as o,o as h,b as i,w as a,l as s,e as n,E as e}from"./runtime-core.esm-bundler.32cac88a.js";const d={class:"markdown-body"},p=e("Roles define a specific set of access permissions, and are the primary organizational structure for Users within the platform. "),u=e("Learn more about Roles"),_=e("."),j=s("hr",null,null,-1),m=s("h2",{id:"the-role-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-role-object"},"#"),e(" The Role Object")],-1),f=s("p",null,[s("code",null,"id"),e(),s("strong",null,"uuid"),s("br"),e(" Primary key of the role.")],-1),b=s("p",null,[s("code",null,"name"),e(),s("strong",null,"string"),s("br"),e(" Name of the role.")],-1),g=s("p",null,[s("code",null,"icon"),e(),s("strong",null,"string"),s("br"),e(" Icon for the role. Displayed in the Admin App.")],-1),y=s("p",null,[s("code",null,"description"),e(),s("strong",null,"string"),s("br"),e(" Description for the role. Displayed in the Admin App.")],-1),x=s("p",null,[s("code",null,"ip_access"),e(),s("strong",null,"csv"),s("br"),e(" A CSV of IP addresses that have access to this role. Allows you to configure an allowlist of IP addresses.")],-1),q=s("p",null,[s("code",null,"enforce_tfa"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not Two-Factor Authentication is required for users in this role.")],-1),R=s("p",null,[s("code",null,"admin_access"),e(),s("strong",null,"boolean"),s("br"),e(" If this role is considered an admin role. This means that users in this role have full permissions to everything.")],-1),E=s("p",null,[s("code",null,"app_access"),e(),s("strong",null,"boolean"),s("br"),e(" Whether or not users in this role have access to use the Admin App.")],-1),k=s("code",null,"users",-1),w=e(),T=s("strong",null,"one-to-many",-1),P=s("br",null,null,-1),A=e(" The users in this role. One-to-many to "),S=e("users"),I=e("."),D=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-punctuation"},"{"),e(`
2
2
  `),s("span",{class:"hljs-attr"},'"id"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),s("span",{class:"hljs-punctuation"},","),e(`
3
3
  `),s("span",{class:"hljs-attr"},'"name"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"Admin"'),s("span",{class:"hljs-punctuation"},","),e(`
4
4
  `),s("span",{class:"hljs-attr"},'"icon"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"supervised_user_circle"'),s("span",{class:"hljs-punctuation"},","),e(`
@@ -9,7 +9,7 @@ import{a as o,o as h,b as i,w as a,g as s,e as n,B as e}from"./runtime-core.esm-
9
9
  `),s("span",{class:"hljs-attr"},'"app_access"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-literal"},[s("span",{class:"hljs-keyword"},"true")]),s("span",{class:"hljs-punctuation"},","),e(`
10
10
  `),s("span",{class:"hljs-attr"},'"users"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"0bc7b36a-9ba9-4ce0-83f0-0a526f354e07"'),s("span",{class:"hljs-punctuation"},"]"),e(`
11
11
  `),s("span",{class:"hljs-punctuation"},"}"),e(`
12
- `)])],-1),L=s("hr",null,null,-1),Q=s("h2",{id:"list-roles",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-roles"},"#"),e(" List Roles")],-1),C=s("p",null,"List all roles that exist in Directus.",-1),v=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),O=e("Supports all "),G=e("global query parameters"),B=e("."),M=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),H=e("An array of up to "),U=e("limit"),N=e(),V=s("a",{href:"#the-role-object"},"role objects",-1),W=e(". If no items are available, data will be an empty array."),z=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),F=s("pre",null,[s("code",null,`GET /roles
12
+ `)])],-1),L=s("hr",null,null,-1),Q=s("h2",{id:"list-roles",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-roles"},"#"),e(" List Roles")],-1),C=s("p",null,"List all roles that exist in Directus.",-1),v=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),O=e("Supports all "),G=e("global query parameters"),M=e("."),B=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),H=e("An array of up to "),U=e("limit"),N=e(),V=s("a",{href:"#the-role-object"},"role objects",-1),W=e(". If no items are available, data will be an empty array."),z=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),F=s("pre",null,[s("code",null,`GET /roles
13
13
  SEARCH /roles
14
14
  `)],-1),J=e("Learn more about SEARCH ->"),K=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),e(" GraphQL")],-1),X=s("pre",null,[s("code",null,`POST /graphql/system
15
15
  `)],-1),Y=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
@@ -39,7 +39,7 @@ SEARCH /roles
39
39
  }
40
40
  }
41
41
  }
42
- `)])],-1),gs=s("hr",null,null,-1),bs=s("h2",{id:"create-a-role",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-a-role"},"#"),e(" Create a Role")],-1),ys=s("p",null,"Create a new role.",-1),xs=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),qs=e("Supports all "),Rs=e("global query parameters"),Es=e("."),ks=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),ws=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),Ts=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),Ps=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the created role.")],-1),As=s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")],-1),Ss=s("pre",null,[s("code",null,`POST /roles
42
+ `)])],-1),bs=s("hr",null,null,-1),gs=s("h2",{id:"create-a-role",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-a-role"},"#"),e(" Create a Role")],-1),ys=s("p",null,"Create a new role.",-1),xs=s("h3",{id:"query-parameters-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),e(" Query Parameters")],-1),qs=e("Supports all "),Rs=e("global query parameters"),Es=e("."),ks=s("h3",{id:"request-body",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body"},"#"),e(" Request Body")],-1),ws=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),Ts=s("h3",{id:"returns-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-2"},"#"),e(" Returns")],-1),Ps=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the created role.")],-1),As=s("h3",{id:"rest-api-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-2"},"#"),e(" REST API")],-1),Ss=s("pre",null,[s("code",null,`POST /roles
43
43
  `)],-1),Is=s("h5",{id:"example-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-3"},"#"),e(" Example")],-1),Ds=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /roles"),e(`
44
44
 
45
45
  `),s("span",{class:"hljs-punctuation"},"{"),e(`
@@ -64,7 +64,7 @@ SEARCH /roles
64
64
  }
65
65
  }
66
66
  }
67
- `)])],-1),Gs=s("hr",null,null,-1),Bs=s("h2",{id:"create-multiple-roles",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-multiple-roles"},"#"),e(" Create Multiple Roles")],-1),Ms=s("p",null,"Create multiple new roles.",-1),Hs=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),e(" Query Parameters")],-1),Us=e("Supports all "),Ns=e("global query parameters"),Vs=e("."),Ws=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),e(" Request Body")],-1),zs=s("p",null,[e("An array of partial "),s("a",{href:"#the-role-object"},"role objects"),e(".")],-1),Fs=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),e(" Returns")],-1),Js=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the created roles.")],-1),Ks=s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),e(" REST API")],-1),Xs=s("pre",null,[s("code",null,`POST /roles
67
+ `)])],-1),Gs=s("hr",null,null,-1),Ms=s("h2",{id:"create-multiple-roles",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#create-multiple-roles"},"#"),e(" Create Multiple Roles")],-1),Bs=s("p",null,"Create multiple new roles.",-1),Hs=s("h3",{id:"query-parameters-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),e(" Query Parameters")],-1),Us=e("Supports all "),Ns=e("global query parameters"),Vs=e("."),Ws=s("h3",{id:"request-body-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-1"},"#"),e(" Request Body")],-1),zs=s("p",null,[e("An array of partial "),s("a",{href:"#the-role-object"},"role objects"),e(".")],-1),Fs=s("h3",{id:"returns-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-3"},"#"),e(" Returns")],-1),Js=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the created roles.")],-1),Ks=s("h3",{id:"rest-api-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-3"},"#"),e(" REST API")],-1),Xs=s("pre",null,[s("code",null,`POST /roles
68
68
  `)],-1),Ys=s("h5",{id:"example-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-5"},"#"),e(" Example")],-1),Zs=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// POST /roles"),e(`
69
69
 
70
70
  `),s("span",{class:"hljs-punctuation"},"["),e(`
@@ -102,12 +102,12 @@ SEARCH /roles
102
102
  }
103
103
  }
104
104
  `)])],-1),ne=s("hr",null,null,-1),le=s("h2",{id:"update-a-role",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-a-role"},"#"),e(" Update a Role")],-1),oe=s("p",null,"Update an existing role.",-1),re=s("h3",{id:"query-parameters-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),e(" Query Parameters")],-1),ce=e("Supports all "),he=e("global query parameters"),ie=e("."),de=s("h3",{id:"request-body-2",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-2"},"#"),e(" Request Body")],-1),pe=s("p",null,[e("A partial "),s("a",{href:"#the-role-object"},"role object"),e(".")],-1),ue=s("h3",{id:"returns-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-4"},"#"),e(" Returns")],-1),_e=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role object"),e(" for the updated role.")],-1),je=s("h3",{id:"rest-api-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-4"},"#"),e(" REST API")],-1),me=s("pre",null,[s("code",null,`PATCH /roles/:id
105
- `)],-1),fe=s("h5",{id:"example-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-7"},"#"),e(" Example")],-1),ge=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /roles/c86c2761-65d3-43c3-897f-6f74ad6a5bd7"),e(`
105
+ `)],-1),fe=s("h5",{id:"example-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-7"},"#"),e(" Example")],-1),be=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /roles/c86c2761-65d3-43c3-897f-6f74ad6a5bd7"),e(`
106
106
 
107
107
  `),s("span",{class:"hljs-punctuation"},"{"),e(`
108
108
  `),s("span",{class:"hljs-attr"},'"icon"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"attractions"'),e(`
109
109
  `),s("span",{class:"hljs-punctuation"},"}"),e(`
110
- `)])],-1),be=s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),e(" GraphQL")],-1),ye=s("pre",null,[s("code",null,`POST /graphql/system
110
+ `)])],-1),ge=s("h3",{id:"graphql-4",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-4"},"#"),e(" GraphQL")],-1),ye=s("pre",null,[s("code",null,`POST /graphql/system
111
111
  `)],-1),xe=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
112
112
  update_roles_item(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!, data: update_directus_roles_input): directus_roles
113
113
  }
@@ -121,7 +121,7 @@ SEARCH /roles
121
121
  }
122
122
  }
123
123
  `)])],-1),Ee=s("hr",null,null,-1),ke=s("h2",{id:"update-multiple-roles",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#update-multiple-roles"},"#"),e(" Update Multiple Roles")],-1),we=s("p",null,"Update multiple existing roles.",-1),Te=s("h3",{id:"query-parameters-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-5"},"#"),e(" Query Parameters")],-1),Pe=e("Supports all "),Ae=e("global query parameters"),Se=e("."),Ie=s("h3",{id:"request-body-3",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#request-body-3"},"#"),e(" Request Body")],-1),De=s("p",null,[s("code",null,"keys"),e(),s("strong",null,"Required"),s("br"),e(" Array of primary keys of the roles you\u2019d like to update.")],-1),Le=s("p",null,[s("code",null,"data"),e(),s("strong",null,"Required"),s("br"),e(" Any of "),s("a",{href:"#the-role-object"},"the role object"),e("\u2019s properties.")],-1),Qe=s("h3",{id:"returns-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-5"},"#"),e(" Returns")],-1),Ce=s("p",null,[e("Returns the "),s("a",{href:"#the-role-object"},"role objects"),e(" for the updated roles.")],-1),ve=s("h3",{id:"rest-api-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-5"},"#"),e(" REST API")],-1),Oe=s("pre",null,[s("code",null,`PATCH /roles
124
- `)],-1),Ge=s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")],-1),Be=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /roles"),e(`
124
+ `)],-1),Ge=s("h5",{id:"example-9",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-9"},"#"),e(" Example")],-1),Me=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// PATCH /roles"),e(`
125
125
 
126
126
  `),s("span",{class:"hljs-punctuation"},"{"),e(`
127
127
  `),s("span",{class:"hljs-attr"},'"keys"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"6fc3d5d3-a37b-4da8-a2f4-ed62ad5abe03"'),s("span",{class:"hljs-punctuation"},"]"),s("span",{class:"hljs-punctuation"},","),e(`
@@ -129,7 +129,7 @@ SEARCH /roles
129
129
  `),s("span",{class:"hljs-attr"},'"icon"'),s("span",{class:"hljs-punctuation"},":"),e(),s("span",{class:"hljs-string"},'"attractions"'),e(`
130
130
  `),s("span",{class:"hljs-punctuation"},"}"),e(`
131
131
  `),s("span",{class:"hljs-punctuation"},"}"),e(`
132
- `)])],-1),Me=s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),e(" GraphQL")],-1),He=s("pre",null,[s("code",null,`POST /graphql/system
132
+ `)])],-1),Be=s("h3",{id:"graphql-5",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-5"},"#"),e(" GraphQL")],-1),He=s("pre",null,[s("code",null,`POST /graphql/system
133
133
  `)],-1),Ue=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
134
134
  update_roles_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!, data: update_directus_roles_input): [directus_roles]
135
135
  }
@@ -160,12 +160,12 @@ SEARCH /roles
160
160
  `)],-1),_a=s("h5",{id:"example-13",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-13"},"#"),e(" Example")],-1),ja=s("pre",null,[s("code",{class:"language-json"},[s("span",{class:"hljs-comment"},"// DELETE /roles"),e(`
161
161
  `),s("span",{class:"hljs-punctuation"},"["),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),s("span",{class:"hljs-punctuation"},","),e(),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),s("span",{class:"hljs-punctuation"},"]"),e(`
162
162
  `)])],-1),ma=s("h3",{id:"graphql-7",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-7"},"#"),e(" GraphQL")],-1),fa=s("pre",null,[s("code",null,`POST /graphql/system
163
- `)],-1),ga=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
163
+ `)],-1),ba=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Mutation"),e(` {
164
164
  delete_roles_items(ids: `),s("span",{class:"hljs-literal"},"[ID"),e(`!]!): delete_many
165
165
  }
166
- `)])],-1),ba=s("h5",{id:"example-14",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-14"},"#"),e(" Example")],-1),ya=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
166
+ `)])],-1),ga=s("h5",{id:"example-14",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-14"},"#"),e(" Example")],-1),ya=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"mutation"),e(` {
167
167
  delete_roles_items(ids: [`),s("span",{class:"hljs-string"},'"653925a9-970e-487a-bfc0-ab6c96affcdc"'),e(", "),s("span",{class:"hljs-string"},'"c86c2761-65d3-43c3-897f-6f74ad6a5bd7"'),e(`]) {
168
168
  ids
169
169
  }
170
170
  }
171
- `)])],-1),xa=s("hr",null,null,-1),wa="Roles",Ta=!1,Pa="REST and GraphQL API documentation on the Roles collection in Directus.",Aa="5 min read",Sa="page-reference",Ia={name:"roles",setup(qa,{expose:r}){const l={title:"Roles",modularExtension:!1,description:"REST and GraphQL API documentation on the Roles collection in Directus.",readTime:"5 min read",pageClass:"page-reference"};return r({frontmatter:l}),(Ra,Ea)=>{const t=o("router-link"),c=o("docs-wrapper");return h(),i(c,{frontmatter:l},{default:a(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,n(t,{to:"/docs/getting-started/glossary#roles"},{default:a(()=>[u]),_:1}),_])]),j,m,f,g,b,y,x,q,R,E,s("p",null,[k,w,T,P,A,n(t,{to:"/docs/reference/system/users"},{default:a(()=>[S]),_:1}),I]),D,L,Q,C,v,s("p",null,[O,n(t,{to:"/docs/reference/query"},{default:a(()=>[G]),_:1}),B]),M,s("p",null,[H,n(t,{to:"/docs/reference/query#limit"},{default:a(()=>[U]),_:1}),N,V,W]),z,F,s("p",null,[n(t,{to:"/docs/reference/introduction#search-http-method"},{default:a(()=>[J]),_:1})]),K,X,Y,Z,$,ss,es,as,ts,s("p",null,[ns,n(t,{to:"/docs/reference/query"},{default:a(()=>[ls]),_:1}),os]),rs,cs,hs,is,ds,ps,us,_s,js,ms,fs,gs,bs,ys,xs,s("p",null,[qs,n(t,{to:"/docs/reference/query"},{default:a(()=>[Rs]),_:1}),Es]),ks,ws,Ts,Ps,As,Ss,Is,Ds,Ls,Qs,Cs,vs,Os,Gs,Bs,Ms,Hs,s("p",null,[Us,n(t,{to:"/docs/reference/query"},{default:a(()=>[Ns]),_:1}),Vs]),Ws,zs,Fs,Js,Ks,Xs,Ys,Zs,$s,se,ee,ae,te,ne,le,oe,re,s("p",null,[ce,n(t,{to:"/docs/reference/query"},{default:a(()=>[he]),_:1}),ie]),de,pe,ue,_e,je,me,fe,ge,be,ye,xe,qe,Re,Ee,ke,we,Te,s("p",null,[Pe,n(t,{to:"/docs/reference/query"},{default:a(()=>[Ae]),_:1}),Se]),Ie,De,Le,Qe,Ce,ve,Oe,Ge,Be,Me,He,Ue,Ne,Ve,We,ze,Fe,Je,Ke,Xe,Ye,Ze,$e,sa,ea,aa,ta,na,la,oa,ra,ca,ha,ia,da,pa,ua,_a,ja,ma,fa,ga,ba,ya,xa])]),_:1})}}};export{Ia as default,Pa as description,Ta as modularExtension,Sa as pageClass,Aa as readTime,wa as title};
171
+ `)])],-1),xa=s("hr",null,null,-1),wa="Roles",Ta=!1,Pa="REST and GraphQL API documentation on the Roles collection in Directus.",Aa="5 min read",Sa="page-reference",Ia={name:"roles",setup(qa,{expose:r}){const l={title:"Roles",modularExtension:!1,description:"REST and GraphQL API documentation on the Roles collection in Directus.",readTime:"5 min read",pageClass:"page-reference"};return r({frontmatter:l}),(Ra,Ea)=>{const t=o("router-link"),c=o("docs-wrapper");return h(),i(c,{frontmatter:l},{default:a(()=>[s("div",d,[s("blockquote",null,[s("p",null,[p,n(t,{to:"/docs/getting-started/glossary#roles"},{default:a(()=>[u]),_:1}),_])]),j,m,f,b,g,y,x,q,R,E,s("p",null,[k,w,T,P,A,n(t,{to:"/docs/reference/system/users"},{default:a(()=>[S]),_:1}),I]),D,L,Q,C,v,s("p",null,[O,n(t,{to:"/docs/reference/query"},{default:a(()=>[G]),_:1}),M]),B,s("p",null,[H,n(t,{to:"/docs/reference/query#limit"},{default:a(()=>[U]),_:1}),N,V,W]),z,F,s("p",null,[n(t,{to:"/docs/reference/introduction#search-http-method"},{default:a(()=>[J]),_:1})]),K,X,Y,Z,$,ss,es,as,ts,s("p",null,[ns,n(t,{to:"/docs/reference/query"},{default:a(()=>[ls]),_:1}),os]),rs,cs,hs,is,ds,ps,us,_s,js,ms,fs,bs,gs,ys,xs,s("p",null,[qs,n(t,{to:"/docs/reference/query"},{default:a(()=>[Rs]),_:1}),Es]),ks,ws,Ts,Ps,As,Ss,Is,Ds,Ls,Qs,Cs,vs,Os,Gs,Ms,Bs,Hs,s("p",null,[Us,n(t,{to:"/docs/reference/query"},{default:a(()=>[Ns]),_:1}),Vs]),Ws,zs,Fs,Js,Ks,Xs,Ys,Zs,$s,se,ee,ae,te,ne,le,oe,re,s("p",null,[ce,n(t,{to:"/docs/reference/query"},{default:a(()=>[he]),_:1}),ie]),de,pe,ue,_e,je,me,fe,be,ge,ye,xe,qe,Re,Ee,ke,we,Te,s("p",null,[Pe,n(t,{to:"/docs/reference/query"},{default:a(()=>[Ae]),_:1}),Se]),Ie,De,Le,Qe,Ce,ve,Oe,Ge,Me,Be,He,Ue,Ne,Ve,We,ze,Fe,Je,Ke,Xe,Ye,Ze,$e,sa,ea,aa,ta,na,la,oa,ra,ca,ha,ia,da,pa,ua,_a,ja,ma,fa,ba,ga,ya,xa])]),_:1})}}};export{Ia as default,Pa as description,Ta as modularExtension,Sa as pageClass,Aa as readTime,wa as title};
@@ -1 +1 @@
1
- import{y as d}from"./index.5552d1ba.entry.js";function m(i,f){return f.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(n){if(n!=="default"&&!(n in i)){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var p={exports:{}};(function(i,f){(function(e){e(d.exports)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,a=/^[\w+.-]+@[\w.-]+/;return{token:function(o){return o.sol()&&(o.match(n)||o.match(c))?"tag":o.match(a)?"string":(o.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,a=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,o=/^%(ifnarch|ifarch|if)/,u=/^%(else|endif)/,l=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(a))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(u))return"keyword";if(r.match(o))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(l))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(n))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var g=p.exports,v=m({__proto__:null,default:g},[p.exports]);export{v as r};
1
+ import{y as d}from"./index.c02613ac.entry.js";function m(i,f){return f.forEach(function(e){e&&typeof e!="string"&&!Array.isArray(e)&&Object.keys(e).forEach(function(n){if(n!=="default"&&!(n in i)){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(i,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}})}),Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var p={exports:{}};(function(i,f){(function(e){e(d.exports)})(function(e){e.defineMode("rpm-changes",function(){var n=/^-+$/,c=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,a=/^[\w+.-]+@[\w.-]+/;return{token:function(o){return o.sol()&&(o.match(n)||o.match(c))?"tag":o.match(a)?"string":(o.next(),null)}}}),e.defineMIME("text/x-rpm-changes","rpm-changes"),e.defineMode("rpm-spec",function(){var n=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,c=/^[a-zA-Z0-9()]+:/,a=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,o=/^%(ifnarch|ifarch|if)/,u=/^%(else|endif)/,l=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;return{startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(r,t){var h=r.peek();if(h=="#")return r.skipToEnd(),"comment";if(r.sol()){if(r.match(c))return"header";if(r.match(a))return"atom"}if(r.match(/^\$\w+/)||r.match(/^\$\{\w+\}/))return"def";if(r.match(u))return"keyword";if(r.match(o))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(r.match(l))return"operator";if(r.match(/^(\d+)/))return"number";r.eol()&&(t.controlFlow=!1)}if(r.match(n))return r.eol()&&(t.controlFlow=!1),"number";if(r.match(/^%[\w]+/))return r.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(r.match(/^\d+/))return"number";if(r.match(")"))return t.macroParameters=!1,"keyword"}return r.match(/^%\{\??[\w \-\:\!]+\}/)?(r.eol()&&(t.controlFlow=!1),"def"):(r.next(),null)}}}),e.defineMIME("text/x-rpm-spec","rpm-spec")})})();var g=p.exports,v=m({__proto__:null,default:g},[p.exports]);export{v as r};