@directus/app 9.14.5 → 9.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/@directus_extensions-sdk.a04f8e82.entry.js +1 -0
- package/dist/assets/{accounts.d4221901.js → accounts.8fbf8699.js} +1 -1
- package/dist/assets/{active-line.5b9f7d21.js → active-line.37204566.js} +1 -1
- package/dist/assets/{activity-log.0479877c.js → activity-log.edaa174f.js} +0 -0
- package/dist/assets/{activity.941cbf2b.js → activity.f03e4c50.js} +19 -19
- package/dist/assets/{apl.38b1f117.js → apl.aa72adb8.js} +1 -1
- package/dist/assets/{architecture.ddda2484.js → architecture.a1dad632.js} +0 -0
- package/dist/assets/{asciiarmor.de2f91d3.js → asciiarmor.67b12091.js} +1 -1
- package/dist/assets/{asn.1.2671e5d6.js → asn.1.c5725a55.js} +1 -1
- package/dist/assets/{asterisk.265fd20b.js → asterisk.0f667406.js} +1 -1
- package/dist/assets/{authentication.d5cd539e.js → authentication.a37290ac.js} +14 -14
- package/dist/assets/{autorefresh.d7b5f888.js → autorefresh.e9c801fd.js} +1 -1
- package/dist/assets/{aws.65b39fe1.js → aws.81dde688.js} +1 -1
- package/dist/assets/{backing-directus.2809dd5a.js → backing-directus.877781ff.js} +1 -1
- package/dist/assets/bg-BG.8d8c105a.js +1 -0
- package/dist/assets/{brainfuck.b5c5b4d3.js → brainfuck.e73b74b2.js} +1 -1
- package/dist/assets/{cli.6ee7cfc0.js → cli.acbc6a21.js} +3 -3
- package/dist/assets/{cli.fce4fcbe.js → cli.e9c97474.js} +12 -12
- package/dist/assets/{clike.f961e135.js → clike.296c3a16.js} +1 -1
- package/dist/assets/{clojure.4dd0505f.js → clojure.d9687d7c.js} +1 -1
- package/dist/assets/{cloudron.735aeaf5.js → cloudron.ccb9f60b.js} +0 -0
- package/dist/assets/{cmake.ed515b1b.js → cmake.c00d972a.js} +1 -1
- package/dist/assets/{cobol.fc02ebc2.js → cobol.029a8cf3.js} +1 -1
- package/dist/assets/{codebase-overview.3de1bbdc.js → codebase-overview.2867468d.js} +1 -1
- package/dist/assets/{coffeescript.4cf3e4f3.js → coffeescript.8aefc36c.js} +1 -1
- package/dist/assets/{collections.11aae4a8.js → collections.09fe8eef.js} +20 -20
- package/dist/assets/collections.d440e2c1.js +2 -0
- package/dist/assets/commonlisp.0b15e5a5.js +1 -0
- package/dist/assets/{config-options.9b79feaf.js → config-options.592aab17.js} +15 -15
- package/dist/assets/content.d6024fae.js +1 -0
- package/dist/assets/{creating-extensions.054f4231.js → creating-extensions.028151bd.js} +5 -5
- package/dist/assets/{crystal.de3725fb.js → crystal.e19a3a38.js} +1 -1
- package/dist/assets/{cs-CZ.5045b098.js → cs-CZ.ba778ad2.js} +1 -1
- package/dist/assets/{css.98183349.js → css.2715c204.js} +1 -1
- package/dist/assets/{cypher.c571b7dd.js → cypher.00e9acae.js} +1 -1
- package/dist/assets/{d.0053cf91.js → d.5a35cc30.js} +1 -1
- package/dist/assets/{da-DK.3c379038.js → da-DK.38409d46.js} +1 -1
- package/dist/assets/{dart.62f7758b.js → dart.a107f6c3.js} +1 -1
- package/dist/assets/{data-model.eb5f7e27.js → data-model.b806a25a.js} +1 -1
- package/dist/assets/de-DE.8d6a71ed.js +1 -0
- package/dist/assets/{diff.6acd273a.js → diff.035b0e41.js} +1 -1
- package/dist/assets/{digitalocean-app-platform.62c81303.js → digitalocean-app-platform.542bac85.js} +1 -1
- package/dist/assets/{display-templates.2bbee0eb.js → display-templates.af38b75d.js} +1 -1
- package/dist/assets/{displays.037994a0.js → displays.027c9ffc.js} +4 -4
- package/dist/assets/django.771bf030.js +1 -0
- package/dist/assets/{docker.1f4e694b.js → docker.ce60011d.js} +5 -5
- package/dist/assets/{dockerfile.4721ec68.js → dockerfile.69a18e53.js} +1 -1
- package/dist/assets/{documentation.60e724e3.js → documentation.d5124166.js} +0 -0
- package/dist/assets/{dtd.1a26b16b.js → dtd.df94c92f.js} +1 -1
- package/dist/assets/{dylan.27c31fbb.js → dylan.4f1df30d.js} +1 -1
- package/dist/assets/{ebnf.5a331186.js → ebnf.5b209db0.js} +1 -1
- package/dist/assets/{ecl.5288ac09.js → ecl.7e72deb8.js} +1 -1
- package/dist/assets/{eiffel.d48a1fb6.js → eiffel.9bf84ee8.js} +1 -1
- package/dist/assets/{elm.5525d8fa.js → elm.46445fd8.js} +1 -1
- package/dist/assets/{email-templates.062d08d1.js → email-templates.cf7de2aa.js} +1 -1
- package/dist/assets/en-GB.61c87be5.js +1 -0
- package/dist/assets/{endpoints.b6214ea4.js → endpoints.0f025685.js} +2 -2
- package/dist/assets/{erlang.acb354b6.js → erlang.50accc38.js} +1 -1
- package/dist/assets/{extensions.0f9a4545.js → extensions.27ee4742.js} +4 -4
- package/dist/assets/{factor.74747951.js → factor.164d6f9d.js} +1 -1
- package/dist/assets/{faq.c134fb00.js → faq.633c25f1.js} +2 -2
- package/dist/assets/{fcl.76ae408d.js → fcl.2c3dc0b9.js} +1 -1
- package/dist/assets/{fields.2c2cc037.js → fields.47aabeca.js} +24 -24
- package/dist/assets/file-library.82e96a16.js +1 -0
- package/dist/assets/{files.1d250203.js → files.97dd14f6.js} +34 -34
- package/dist/assets/{filter-rules.6cc70dd4.js → filter-rules.f7296d23.js} +6 -6
- package/dist/assets/{filters.0ef5a5ed.js → filters.b1397c95.js} +1 -1
- package/dist/assets/{flows.19c6599f.js → flows.0173f6d4.js} +36 -36
- package/dist/assets/{flows.03ed1b32.js → flows.7116f535.js} +3 -3
- package/dist/assets/{folders.e417fd8b.js → folders.0622ae98.js} +32 -32
- package/dist/assets/{forth.7ddbc993.js → forth.49d85bf7.js} +1 -1
- package/dist/assets/{fortran.d23e51d4.js → fortran.12803734.js} +1 -1
- package/dist/assets/fr-CA.87857f82.js +1 -0
- package/dist/assets/fr-FR.43594476.js +1 -0
- package/dist/assets/{gas.b4331512.js → gas.912b174f.js} +1 -1
- package/dist/assets/{gcp.293edb91.js → gcp.8ca78211.js} +2 -2
- package/dist/assets/{gfm.9d7d842c.js → gfm.95f7b838.js} +1 -1
- package/dist/assets/{gherkin.a2d07b4b.js → gherkin.ef890b31.js} +1 -1
- package/dist/assets/{github-ci.20236bca.js → github-ci.40c9d16d.js} +1 -1
- package/dist/assets/{glossary.26a7ec6d.js → glossary.38068d72.js} +1 -1
- package/dist/assets/{glossary.c947165b.js → glossary.ecc8e7cf.js} +1 -1
- package/dist/assets/go.ec5a1c94.js +1 -0
- package/dist/assets/{groovy.494f3e93.js → groovy.0da0e846.js} +1 -1
- package/dist/assets/{haml.1f9900d3.js → haml.0ccf17af.js} +1 -1
- package/dist/assets/{handlebars.9bc2d0c9.js → handlebars.c8657b1d.js} +1 -1
- package/dist/assets/{haskell-literate.5435a3e9.js → haskell-literate.8c4cf534.js} +1 -1
- package/dist/assets/{haskell.fc63f26c.js → haskell.0a0dfa79.js} +1 -1
- package/dist/assets/{haxe.94355408.js → haxe.72a9d4fd.js} +1 -1
- package/dist/assets/he-IL.7b11dc5e.js +1 -0
- package/dist/assets/{hooks.619f1e3f.js → hooks.5488f34d.js} +4 -4
- package/dist/assets/{htmlembedded.6ebc575e.js → htmlembedded.ea02349b.js} +1 -1
- package/dist/assets/{htmlmixed.fddfb235.js → htmlmixed.71c55a95.js} +1 -1
- package/dist/assets/http.e373a3b6.js +1 -0
- package/dist/assets/hu-HU.3c8e2cdc.js +1 -0
- package/dist/assets/{idl.87aed386.js → idl.9bc82209.js} +1 -1
- package/dist/assets/{iis.28211ce4.js → iis.9e682df0.js} +2 -2
- package/dist/assets/{import-export.34657c23.js → import-export.2114c732.js} +2 -2
- package/dist/assets/{index.7c8f7bca.js → index.0152af18.js} +1 -1
- package/dist/assets/{index.a2d2ff92.js → index.048bfcd4.js} +1 -1
- package/dist/assets/{index.e95f45d7.js → index.094d7435.js} +1 -1
- package/dist/assets/{index.91fbefea.js → index.15e3c95b.js} +1 -1
- package/dist/assets/{index.65c58270.js → index.16102ca4.js} +1 -1
- package/dist/assets/{index.04f4681f.js → index.1c2bca61.js} +1 -1
- package/dist/assets/{index.e0295cb0.js → index.21e15966.js} +1 -1
- package/dist/assets/{index.51da8268.js → index.22cbe4df.js} +1 -1
- package/dist/assets/{index.7b1ae0e3.js → index.238d8ccc.js} +1 -1
- package/dist/assets/{index.632970d8.js → index.286f3139.js} +1 -1
- package/dist/assets/{index.610f817e.js → index.2fa94ca6.js} +1 -1
- package/dist/assets/{index.f3a47a7c.js → index.34e50685.js} +1 -1
- package/dist/assets/{index.a977949d.js → index.36361e5b.js} +1 -1
- package/dist/assets/{index.733f5f4d.js → index.38ca65a8.js} +1 -1
- package/dist/assets/{index.f1e5bfe4.js → index.3a449212.js} +1 -1
- package/dist/assets/{index.70c01091.js → index.3dbbeee8.js} +1 -1
- package/dist/assets/{index.b22c6489.js → index.43fc16cf.js} +1 -1
- package/dist/assets/{index.ba2729bd.js → index.44dfee18.js} +1 -1
- package/dist/assets/{index.998500ca.js → index.4caf473d.js} +1 -1
- package/dist/assets/{index.9c1c3dcb.js → index.4f3e1405.js} +1 -1
- package/dist/assets/{index.7fee55e4.js → index.504c871e.js} +1 -1
- package/dist/assets/{index.2aaac8bd.js → index.558dbe9d.js} +1 -1
- package/dist/assets/{index.a3a6d636.js → index.5785bd5b.js} +1 -1
- package/dist/assets/{index.062b5c4e.js → index.58ce5d3f.js} +1 -1
- package/dist/assets/{index.55f95a2f.js → index.5bccbb70.js} +1 -1
- package/dist/assets/{index.e975fc43.js → index.5e2156f1.js} +1 -1
- package/dist/assets/{index.dff2a130.js → index.5efaa053.js} +1 -1
- package/dist/assets/{index.552cd104.js → index.63beca13.js} +1 -1
- package/dist/assets/{index.2799a3fe.js → index.65ef9955.js} +1 -1
- package/dist/assets/{index.a968c50b.js → index.6ac5a367.js} +1 -1
- package/dist/assets/{index.0b930698.js → index.6b8582b3.js} +1 -1
- package/dist/assets/{index.55a57945.js → index.6be1ec19.js} +1 -1
- package/dist/assets/{index.888b390d.js → index.6c3cfd9d.js} +1 -1
- package/dist/assets/index.719a1bf6.css +1 -0
- package/dist/assets/{index.c1fc17bc.js → index.727f38c4.js} +1 -1
- package/dist/assets/{index.8849b22a.js → index.73791b0b.js} +1 -1
- package/dist/assets/{index.c62ebcc5.js → index.766f9329.js} +1 -1
- package/dist/assets/{index.899d7ee6.js → index.7f1515ca.js} +1 -1
- package/dist/assets/{index.2e81f792.js → index.7fe2a6c1.js} +1 -1
- package/dist/assets/{index.d3abd983.js → index.8627ddb4.js} +0 -0
- package/dist/assets/{index.903dc700.js → index.86900d0e.js} +1 -1
- package/dist/assets/{index.46f1f69a.js → index.87997092.js} +1 -1
- package/dist/assets/{index.9f57589f.js → index.8b6e1cf5.js} +1 -1
- package/dist/assets/{index.b62592c3.js → index.8b727b3d.js} +1 -1
- package/dist/assets/{index.172f9ed4.js → index.8b83352c.js} +1 -1
- package/dist/assets/{index.01a3b92d.js → index.8d64a2cc.js} +1 -1
- package/dist/assets/{index.74e00be8.js → index.8e6a2df6.js} +1 -1
- package/dist/assets/{index.107979f6.js → index.909efb92.js} +1 -1
- package/dist/assets/{index.64d37708.js → index.937b45e4.js} +1 -1
- package/dist/assets/{index.84179c87.js → index.938b9c64.js} +1 -1
- package/dist/assets/{index.5cee23da.js → index.970729f9.js} +1 -1
- package/dist/assets/{index.ad338b08.js → index.9a2ded43.js} +1 -1
- package/dist/assets/{index.7aa33ef4.js → index.a14f652a.js} +1 -1
- package/dist/assets/{index.e282364f.js → index.a157d24b.js} +1 -1
- package/dist/assets/{index.c859516b.js → index.ab135b59.js} +1 -1
- package/dist/assets/{index.e003b179.js → index.ac660d97.js} +1 -1
- package/dist/assets/{index.a0faf01e.js → index.aeca2d25.js} +1 -1
- package/dist/assets/{index.243aba72.js → index.b3227ed5.js} +1 -1
- package/dist/assets/{index.df853543.js → index.b4512435.js} +1 -1
- package/dist/assets/{index.777553ca.js → index.b73eaa87.js} +1 -1
- package/dist/assets/{index.f6326954.js → index.b91f7cb9.js} +1 -1
- package/dist/assets/{index.a8265354.js → index.b990ffa7.js} +1 -1
- package/dist/assets/index.b9f1c213.css +1 -0
- package/dist/assets/{index.3fc8253a.js → index.bb39eac1.js} +1 -1
- package/dist/assets/{index.4d7f8516.js → index.c0a6d945.js} +1 -1
- package/dist/assets/{index.9ac7a0ad.js → index.ca46607e.js} +1 -1
- package/dist/assets/{index.61092ae0.js → index.ce459a32.js} +1 -1
- package/dist/assets/{index.201cdc9c.js → index.d3e27d97.js} +1 -1
- package/dist/assets/{index.fe5f6362.js → index.d78b4dd1.js} +1 -1
- package/dist/assets/{index.60e074b9.js → index.d9e06c0f.js} +1 -1
- package/dist/assets/{index.76fb5db6.js → index.dae019ea.js} +1 -1
- package/dist/assets/{index.19099a8f.js → index.dccdb81c.js} +1 -1
- package/dist/assets/{index.640cb361.js → index.dd5b5aec.js} +1 -1
- package/dist/assets/{index.917a76e9.entry.js → index.e00d2c6d.entry.js} +642 -642
- package/dist/assets/{index.2598162d.js → index.e24720c2.js} +1 -1
- package/dist/assets/{index.ad869bd2.js → index.e7e3b4f1.js} +1 -1
- package/dist/assets/{index.0659d17a.js → index.ebace2a1.js} +1 -1
- package/dist/assets/{index.90f3c017.js → index.ebc5fd3e.js} +1 -1
- package/dist/assets/index.ec7b5840.js +26 -0
- package/dist/assets/{index.28d160f6.js → index.ee33b489.js} +1 -1
- package/dist/assets/{index.476a4006.js → index.efb2f918.js} +1 -1
- package/dist/assets/{index.6a44e176.js → index.f45296e2.js} +1 -1
- package/dist/assets/{index.ca7fad51.js → index.fd19f059.js} +1 -1
- package/dist/assets/{index.2451efbb.js → index.fee1fadb.js} +1 -1
- package/dist/assets/{index.2ef6ea17.js → index.ffa2a1cd.js} +1 -1
- package/dist/assets/{input-rich-text-html.e69dfa94.js → input-rich-text-html.0b6df824.js} +2 -2
- package/dist/assets/{input-rich-text-html.0cdbc326.css → input-rich-text-html.49906812.css} +1 -1
- package/dist/assets/{insights.9f2c43c6.js → insights.7988716a.js} +1 -1
- package/dist/assets/{installation.76fec85e.js → installation.5215ce07.js} +1 -1
- package/dist/assets/{interfaces.a65a79df.js → interfaces.38099de0.js} +3 -3
- package/dist/assets/introduction.807bce52.js +1 -0
- package/dist/assets/{introduction.eda1c2c4.js → introduction.a173e7ad.js} +7 -7
- package/dist/assets/{introduction.e73b1c6c.js → introduction.a6b2c1f0.js} +1 -1
- package/dist/assets/{introduction.32669a19.js → introduction.e6dc6284.js} +3 -3
- package/dist/assets/it-IT.39e71c5e.js +1 -0
- package/dist/assets/items.02ad4f11.js +1 -0
- package/dist/assets/{items.f5cdbca8.js → items.ba1efbf4.js} +33 -33
- package/dist/assets/ja-JP.bfb2f81a.js +1 -0
- package/dist/assets/{javascript-hint.d74b2cdb.js → javascript-hint.bd8ca2b7.js} +1 -1
- package/dist/assets/{javascript.b2307aa3.js → javascript.498e8ddb.js} +1 -1
- package/dist/assets/{jinja2.4886bfd6.js → jinja2.54efd8a5.js} +1 -1
- package/dist/assets/{jsx.8937d19d.js → jsx.efc77b84.js} +1 -1
- package/dist/assets/{julia.a7a31ee0.js → julia.90341379.js} +1 -1
- package/dist/assets/ku-TR.ad6b2677.js +1 -0
- package/dist/assets/{layouts.fc5fee9f.js → layouts.dded37a5.js} +1 -1
- package/dist/assets/{layouts.e590b93d.js → layouts.f9cfede4.js} +3 -3
- package/dist/assets/{livescript.9a710f73.js → livescript.cb85e981.js} +1 -1
- package/dist/assets/localization.f384f316.js +1 -0
- package/dist/assets/{lua.d236c940.js → lua.cc15c79a.js} +1 -1
- package/dist/assets/{manual.363297f0.js → manual.cc05cff9.js} +4 -4
- package/dist/assets/{mark-selection.cb7787e2.js → mark-selection.cfa3fcec.js} +1 -1
- package/dist/assets/{match-highlighter.450b65c5.js → match-highlighter.bd16b014.js} +1 -1
- package/dist/assets/{mathematica.f8910884.js → mathematica.17c84e9b.js} +1 -1
- package/dist/assets/{mbox.18380965.js → mbox.c07261a5.js} +1 -1
- package/dist/assets/{migrations.5af99cef.js → migrations.fa20b23d.js} +3 -3
- package/dist/assets/{mirc.31870a2d.js → mirc.6c81e0d9.js} +1 -1
- package/dist/assets/{mllike.0e1e0100.js → mllike.647fee7d.js} +1 -1
- package/dist/assets/{modelica.7ecb8aeb.js → modelica.7f095a0c.js} +1 -1
- package/dist/assets/{modules.2403c678.js → modules.aed8795b.js} +4 -4
- package/dist/assets/{mscgen.c34e85a5.js → mscgen.e7ec6db0.js} +1 -1
- package/dist/assets/{multiplex.225aced9.js → multiplex.b20d59d9.js} +2 -2
- package/dist/assets/{mumps.7a0dbb45.js → mumps.e1926e1a.js} +1 -1
- package/dist/assets/{nginx.1bc410b6.js → nginx.3e60b1d8.js} +1 -1
- package/dist/assets/nl-NL.e613d40a.js +1 -0
- package/dist/assets/{notifications.152d86b7.js → notifications.5186ee54.js} +32 -32
- package/dist/assets/{nsis.04a63636.js → nsis.b4d2f79d.js} +1 -1
- package/dist/assets/{ntriples.0d5ceb8c.js → ntriples.23fe57b5.js} +1 -1
- package/dist/assets/{octave.ce59fab4.js → octave.bc18fbba.js} +1 -1
- package/dist/assets/{operations.f00b8c11.js → operations.51c06345.js} +1 -1
- package/dist/assets/operations.a263ba49.js +30 -0
- package/dist/assets/{operations.9b3b2514.js → operations.eaacfa1d.js} +34 -34
- package/dist/assets/{overlay.7f8598fd.js → overlay.914efac4.js} +1 -1
- package/dist/assets/{overview.c3e64ee1.js → overview.0fe284a4.js} +1 -1
- package/dist/assets/{overview.d2dd9f17.js → overview.21a42c2e.js} +1 -1
- package/dist/assets/{overview.288d5f54.js → overview.a1598534.js} +1 -1
- package/dist/assets/{oz.7763d971.js → oz.467f2daf.js} +1 -1
- package/dist/assets/{panels.f1f6334b.js → panels.d307c197.js} +3 -3
- package/dist/assets/{pascal.fa5fc379.js → pascal.3b07fc1d.js} +1 -1
- package/dist/assets/{pegjs.5286f797.js → pegjs.d8aa363f.js} +1 -1
- package/dist/assets/{perl.7bceb7a2.js → perl.5b744b42.js} +1 -1
- package/dist/assets/{permissions.de41ff3d.js → permissions.355cb88d.js} +32 -32
- package/dist/assets/{php.fc781bce.js → php.139f8b23.js} +1 -1
- package/dist/assets/{pig.a02372ee.js → pig.df6cedd4.js} +1 -1
- package/dist/assets/{pl-PL.6e87b518.js → pl-PL.91a0c1e6.js} +1 -1
- package/dist/assets/{plesk.0ef5ab4c.js → plesk.c1379970.js} +6 -6
- package/dist/assets/{powershell.5a697151.js → powershell.b3b5efd9.js} +1 -1
- package/dist/assets/{presets-bookmarks.5ef79225.js → presets-bookmarks.668779cf.js} +1 -1
- package/dist/assets/{presets.db317f9f.js → presets.0d5dc9c6.js} +32 -32
- package/dist/assets/{project-settings.e940a11b.js → project-settings.2a64f071.js} +1 -1
- package/dist/assets/{projects.5cc2ad0c.js → projects.f82931e8.js} +1 -1
- package/dist/assets/{properties.7b2f128a.js → properties.7b21f6e1.js} +1 -1
- package/dist/assets/{protobuf.4e0b6dfc.js → protobuf.a9cd2a14.js} +1 -1
- package/dist/assets/pt-BR.ce1fdc59.js +1 -0
- package/dist/assets/{pug.4829baa5.js → pug.1187ae8d.js} +1 -1
- package/dist/assets/{puppet.0cc3dfc6.js → puppet.19c616b8.js} +1 -1
- package/dist/assets/{python.97758a3a.js → python.ccb55c13.js} +1 -1
- package/dist/assets/{q.f7c0a7a0.js → q.24958204.js} +1 -1
- package/dist/assets/{query.f187b00c.js → query.8fb6cf04.js} +27 -27
- package/dist/assets/{quickstart.8d5c02c2.js → quickstart.c0e4b8bd.js} +2 -2
- package/dist/assets/{quickstart.62cbd1cd.js → quickstart.f2432960.js} +1 -1
- package/dist/assets/{r.65bf4228.js → r.acb07d5a.js} +1 -1
- package/dist/assets/{relations.a37c187d.js → relations.2dfa7993.js} +24 -24
- package/dist/assets/{relationships.5cda18e3.js → relationships.eb7e340c.js} +5 -5
- package/dist/assets/{resources.540de098.js → resources.b4808e35.js} +1 -1
- package/dist/assets/{revisions.e044726e.js → revisions.cf799486.js} +8 -8
- package/dist/assets/{roles.83da9d9c.js → roles.b0107422.js} +32 -32
- package/dist/assets/{rpm.4485b248.js → rpm.f085c147.js} +1 -1
- package/dist/assets/{rst.9bf2ecf3.js → rst.d419af03.js} +1 -1
- package/dist/assets/ru-RU.74ac881b.js +1 -0
- package/dist/assets/{ruby.3f0bf45a.js → ruby.43be0a34.js} +1 -1
- package/dist/assets/{running-locally.31538f1b.js → running-locally.a3ec7567.js} +8 -8
- package/dist/assets/{rust.4520397b.js → rust.cce3b400.js} +1 -1
- package/dist/assets/{sas.94641767.js → sas.16484722.js} +1 -1
- package/dist/assets/{sass.ebdaaefc.js → sass.7051c1f1.js} +1 -1
- package/dist/assets/scheme.ca9d730a.js +1 -0
- package/dist/assets/{sdk.297840b0.js → sdk.ea5b0946.js} +54 -54
- package/dist/assets/security.b7fcc1c2.js +1 -0
- package/dist/assets/{server.d8bb0f4c.js → server.22f6f2c1.js} +17 -17
- package/dist/assets/{settings.6c879748.js → settings.509b7560.js} +0 -0
- package/dist/assets/{settings.65d8a9b5.js → settings.c4a634ae.js} +8 -8
- package/dist/assets/shares.4d7659d8.js +1 -0
- package/dist/assets/{shell.9d77a8b4.js → shell.459f40ee.js} +1 -1
- package/dist/assets/{show-hint.0e85091b.js → show-hint.e01428dd.js} +1 -1
- package/dist/assets/{sieve.0bb4a673.js → sieve.0bc80c89.js} +1 -1
- package/dist/assets/{slim.87008de5.js → slim.2d290285.js} +1 -1
- package/dist/assets/smalltalk.41636747.js +1 -0
- package/dist/assets/{smarty.fefb4633.js → smarty.d1631985.js} +1 -1
- package/dist/assets/solr.b1df9d52.js +1 -0
- package/dist/assets/{soy.ca07f4e2.js → soy.99e75aa8.js} +1 -1
- package/dist/assets/{sparql.5d956528.js → sparql.d5b1eee4.js} +1 -1
- package/dist/assets/{spreadsheet.5beb51ed.js → spreadsheet.29a03e30.js} +1 -1
- package/dist/assets/{sql.6d3b3091.js → sql.3413d6f9.js} +1 -1
- package/dist/assets/{sso-examples.a785e77c.js → sso-examples.ad647c9c.js} +11 -11
- package/dist/assets/{sso.36061e28.js → sso.cf805e38.js} +2 -2
- package/dist/assets/{stex.0fe2ac60.js → stex.7276068b.js} +1 -1
- package/dist/assets/{stylus.e000276e.js → stylus.ed00f8db.js} +1 -1
- package/dist/assets/{support.a149b5a4.js → support.6594facf.js} +1 -1
- package/dist/assets/{swift.486a5a13.js → swift.26ec0a65.js} +1 -1
- package/dist/assets/{tcl.b3e3538d.js → tcl.ebb4437a.js} +1 -1
- package/dist/assets/{teams.86e324d5.js → teams.f575332d.js} +1 -1
- package/dist/assets/{textile.b258ec97.js → textile.7ff1ea5c.js} +1 -1
- package/dist/assets/{themes.3d8b2b78.js → themes.3d802c3b.js} +1 -1
- package/dist/assets/{tiddlywiki.f7d8e471.js → tiddlywiki.36daf39b.js} +1 -1
- package/dist/assets/{tiki.70203351.js → tiki.c1a7e00c.js} +1 -1
- package/dist/assets/{toml.86996664.js → toml.16e84917.js} +1 -1
- package/dist/assets/{tornado.95569557.js → tornado.9b8dbfb8.js} +1 -1
- package/dist/assets/{translation-strings.2d32b80f.js → translation-strings.fe88793b.js} +1 -1
- package/dist/assets/{translations.9a0e8cc4.js → translations.4be9ec77.js} +1 -1
- package/dist/assets/{triggers.49fa8cca.js → triggers.c34177a3.js} +1 -1
- package/dist/assets/{troff.e305afe5.js → troff.a86a07b9.js} +1 -1
- package/dist/assets/{ttcn-cfg.befad34e.js → ttcn-cfg.df680d6a.js} +1 -1
- package/dist/assets/{ttcn.3f026b3f.js → ttcn.33574dcc.js} +1 -1
- package/dist/assets/{turtle.0a719577.js → turtle.93ac23eb.js} +1 -1
- package/dist/assets/{twig.473996c3.js → twig.04df7bbf.js} +1 -1
- package/dist/assets/{ubuntu.bd27c73d.js → ubuntu.cc908491.js} +0 -0
- package/dist/assets/{upgrades-migrations.e91a553b.js → upgrades-migrations.a57ef987.js} +1 -1
- package/dist/assets/{use-sync.138c50b0.js → use-sync.1dee2657.js} +14 -14
- package/dist/assets/{user-directory.8d94737c.js → user-directory.7b875602.js} +1 -1
- package/dist/assets/{users-roles-permissions.d63af527.js → users-roles-permissions.00ffdc25.js} +1 -1
- package/dist/assets/{users.9e656e05.js → users.0638ab5f.js} +58 -58
- package/dist/assets/{utilities.4a346b3b.js → utilities.b2f15bfd.js} +17 -17
- package/dist/assets/{vb.34ccd0bd.js → vb.44c875a2.js} +1 -1
- package/dist/assets/{vbscript.1e31724d.js → vbscript.87bdeb77.js} +1 -1
- package/dist/assets/{velocity.3076e2d2.js → velocity.cc1dfc19.js} +1 -1
- package/dist/assets/{verilog.d290c732.js → verilog.0f07ab6c.js} +1 -1
- package/dist/assets/{vhdl.bc9a1438.js → vhdl.41fb7cf9.js} +1 -1
- package/dist/assets/{vue.08b7467a.js → vue.5d653ac7.js} +1 -1
- package/dist/assets/{wast.96359ee5.js → wast.0d4923e5.js} +1 -1
- package/dist/assets/{webhooks.256ac76b.js → webhooks.1f89f80a.js} +31 -31
- package/dist/assets/{webhooks.235f76fb.js → webhooks.3d6334e9.js} +1 -1
- package/dist/assets/{webidl.9f8f6f0f.js → webidl.e399c0a3.js} +1 -1
- package/dist/assets/{xquery.0ea30239.js → xquery.45a960e6.js} +1 -1
- package/dist/assets/{yacas.6a86aa92.js → yacas.842e0a74.js} +1 -1
- package/dist/assets/{yaml-frontmatter.d4e317c1.js → yaml-frontmatter.93f99653.js} +1 -1
- package/dist/assets/{yaml.3914e7da.js → yaml.da4da1d2.js} +1 -1
- package/dist/assets/{z80.f974aea9.js → z80.e8d0aed2.js} +1 -1
- package/dist/assets/zh-TW.2ac2bb07.js +1 -0
- package/dist/index.html +3 -3
- package/package.json +11 -9
- package/dist/assets/@directus_extensions-sdk.118c3166.entry.js +0 -1
- package/dist/assets/bg-BG.9288ea83.js +0 -1
- package/dist/assets/collections.e06a8b1f.js +0 -2
- package/dist/assets/commonlisp.725a0889.js +0 -1
- package/dist/assets/content.07b42fc5.js +0 -1
- package/dist/assets/data-sharing.8b80b0f4.js +0 -1
- package/dist/assets/de-DE.5535b278.js +0 -1
- package/dist/assets/django.98a7f8f7.js +0 -1
- package/dist/assets/en-GB.c55341c7.js +0 -1
- package/dist/assets/file-library.92f387e2.js +0 -1
- package/dist/assets/fr-CA.6b485ca2.js +0 -1
- package/dist/assets/fr-FR.77a5277c.js +0 -1
- package/dist/assets/go.6ecfe8d8.js +0 -1
- package/dist/assets/he-IL.62301c5a.js +0 -1
- package/dist/assets/http.de052b25.js +0 -1
- package/dist/assets/hu-HU.47ab36e8.js +0 -1
- package/dist/assets/index.9335a1f8.css +0 -1
- package/dist/assets/index.d87c135a.js +0 -26
- package/dist/assets/index.dbec7bd8.css +0 -1
- package/dist/assets/introduction.e626ca8d.js +0 -1
- package/dist/assets/it-IT.c08c5546.js +0 -1
- package/dist/assets/items.ee26fa45.js +0 -1
- package/dist/assets/ja-JP.84597497.js +0 -1
- package/dist/assets/ku-TR.3a07a57e.js +0 -1
- package/dist/assets/localization.998790e9.js +0 -1
- package/dist/assets/nl-NL.2f00af44.js +0 -1
- package/dist/assets/pt-BR.02851ce6.js +0 -1
- package/dist/assets/ru-RU.1807a64c.js +0 -1
- package/dist/assets/scheme.9d08c24e.js +0 -1
- package/dist/assets/security.c18b2f34.js +0 -1
- package/dist/assets/smalltalk.fe7d0a09.js +0 -1
- package/dist/assets/solr.3d0019cc.js +0 -1
- package/dist/assets/zh-TW.cac20c88.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l,o as i,b as c,w as n,g as a,e as h,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const p={class:"markdown-body"},u={class:"two-up"},d={class:"left"},g=s("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. "),j=s("Learn more about Relationships"),_=s("."),f=a("div",{class:"right"},[a("p",null,[a("div",{class:"table-of-contents"},[a("ul",null,[a("li",null,[a("a",{href:"#the-relation-object"},"The Relation Object
|
|
1
|
+
import{a as l,o as i,b as c,w as n,g as a,e as h,B as s}from"./runtime-core.esm-bundler.e3d5f5b7.js";const p={class:"markdown-body"},u={class:"two-up"},d={class:"left"},g=s("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. "),j=s("Learn more about Relationships"),_=s("."),f=a("div",{class:"right"},[a("p",null,[a("div",{class:"table-of-contents"},[a("ul",null,[a("li",null,[a("a",{href:"#the-relation-object"}," The Relation Object")]),a("li",null,[a("a",{href:"#list-relations"}," List relations")]),a("li",null,[a("a",{href:"#list-relations-in-collection"}," List relations in collection")]),a("li",null,[a("a",{href:"#retrieve-a-relation"}," Retrieve a relation")]),a("li",null,[a("a",{href:"#create-a-relation"}," Create a Relation")]),a("li",null,[a("a",{href:"#update-a-relation"}," Update a Relation")]),a("li",null,[a("a",{href:"#delete-a-relation"}," Delete a Relation")])])])])],-1),m=a("hr",null,null,-1),b=a("h2",{id:"the-relation-object",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#the-relation-object"},"#"),s(" The Relation Object")],-1),y=a("div",{class:"two-up"},[a("div",{class:"left"},[a("div",{class:"definitions"},[a("p",null,[a("code",null,"collection"),s(),a("strong",null,"string"),a("br"),s(" Name of the collection. This matches the table name in the database.")]),a("p",null,[a("code",null,"field"),s(),a("strong",null,"string"),a("br"),s(" Name of the field that holds the related primary key. This matches the column name in the database.")]),a("p",null,[a("code",null,"related_collection"),s(),a("strong",null,"string"),a("br"),s(" Name of the related collection. This matches the table name in the database.")])]),a("h4",{id:"meta",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#meta"},"#"),s(" Meta")]),a("p",null,"Directus metadata. Used to enable non-database relationship types"),a("div",{class:"definitions"},[a("p",null,[a("code",null,"id"),s(),a("strong",null,"integer"),a("br"),s(" Primary key of the metadata row in "),a("code",null,"directus_relations"),s(".")]),a("p",null,[a("code",null,"many_collection"),s(),a("strong",null,"string"),a("br"),s(" Name of the collection. Matches the top level "),a("code",null,"collection"),s(" field.")]),a("p",null,[a("code",null,"many_field"),s(),a("strong",null,"string"),a("br"),s(" Name of the field. Matches the top level "),a("code",null,"field"),s(" field.")]),a("p",null,[a("code",null,"one_collection"),s(),a("strong",null,"string"),a("br"),s(" Name of the related collection. Matches the top level "),a("code",null,"related_collection"),s(" field.")]),a("p",null,[a("code",null,"one_field"),s(),a("strong",null,"string"),a("br"),s(" Name of the one to many field on the other side of the relation.")]),a("p",null,[a("code",null,"one_allowed_collections"),s(),a("strong",null,"string"),a("br"),s(" What collections are allowed to be used in a many-to-any context.")]),a("p",null,[a("code",null,"one_collection_field"),s(),a("strong",null,"string"),a("br"),s(" Field that holds the collection name in a many-to-any context.")]),a("p",null,[a("code",null,"one_deselect_action"),s(),a("strong",null,"nullify | delete"),a("br"),s(" Whether to nullify or delete related one-to-many records.")]),a("p",null,[a("code",null,"sort_field"),s(),a("strong",null,"string"),a("br"),s(" What field is used to hold the sort field.")]),a("p",null,[a("code",null,"junction_field"),s(),a("strong",null,"string"),a("br"),s(" What field connects two relations in a many-to-many (o2m-m2o) context.")])]),a("h4",{id:"schema",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#schema"},"#"),s(" Schema")]),a("p",null,"\u201CRaw\u201D database information. Based on the database vendor used, different information might be returned. The following are available for all drivers."),a("div",{class:"definitions"},[a("p",null,[a("code",null,"table"),s(),a("strong",null,"string"),a("br"),s(" The table name.")]),a("p",null,[a("code",null,"column"),s(),a("strong",null,"string"),a("br"),s(" The column name.")]),a("p",null,[a("code",null,"foreign_key_table"),s(),a("strong",null,"string"),a("br"),s(" Related table name.")]),a("p",null,[a("code",null,"foreign_key_column"),s(),a("strong",null,"string"),a("br"),s(" Related column name.")]),a("p",null,[a("code",null,"constraint_name"),s(),a("strong",null,"string"),a("br"),s(" Name for the foreign key constraint.")]),a("p",null,[a("code",null,"on_update"),s(),a("strong",null,"string"),a("br"),s(" Update trigger for the foreign key constraint.")]),a("p",null,[a("code",null,"on_delete"),s(),a("strong",null,"string"),a("br"),s(" Delete trigger for the foreign key constraint.")])])]),a("div",{class:"right"},[a("pre",null,[a("code",{class:"language-json"},[a("span",{class:"hljs-punctuation"},"{"),s(`
|
|
2
2
|
`),a("span",{class:"hljs-attr"},'"collection"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"about_us"'),a("span",{class:"hljs-punctuation"},","),s(`
|
|
3
3
|
`),a("span",{class:"hljs-attr"},'"field"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"logo"'),a("span",{class:"hljs-punctuation"},","),s(`
|
|
4
4
|
`),a("span",{class:"hljs-attr"},'"related_collection"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"directus_files"'),a("span",{class:"hljs-punctuation"},","),s(`
|
|
@@ -24,55 +24,55 @@ import{a as l,o as i,b as c,w as n,g as a,e as h,B as s}from"./runtime-core.esm-
|
|
|
24
24
|
`),a("span",{class:"hljs-attr"},'"sort_field"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-literal"},[a("span",{class:"hljs-keyword"},"null")]),s(`
|
|
25
25
|
`),a("span",{class:"hljs-punctuation"},"}"),s(`
|
|
26
26
|
`),a("span",{class:"hljs-punctuation"},"}"),s(`
|
|
27
|
-
`)])])])],-1),x=a("hr",null,null,-1),q=a("h2",{id:"list-relations",tabindex:"-1"},[
|
|
28
|
-
`)]),a("h3",{id:"graphql",tabindex:"-1"},[
|
|
27
|
+
`)])])])],-1),x=a("hr",null,null,-1),q=a("h2",{id:"list-relations",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#list-relations"},"#"),s(" List relations")],-1),v=a("p",null,"List all relations that exist in Directus.",-1),w=a("div",{class:"two-up"},[a("div",{class:"left"},[a("div",{class:"tip hint"},[a("div",{class:"hint-title"},"Permissions"),a("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, relations that apply to a collection that the current user doesn\u2019t have access to are stripped out.")]),a("h3",{id:"query-parameters",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#query-parameters"},"#"),s(" Query Parameters")]),a("p",null,"Doesn\u2019t support any query parameters."),a("h3",{id:"returns",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#returns"},"#"),s(" Returns")]),a("p",null,[s("Array of "),a("a",{href:"#the-relation-object"},"relation objects"),s(". If no items are available, data will be an empty array.")])]),a("div",{class:"right"},[a("h3",{id:"rest-api",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#rest-api"},"#"),s(" REST API")]),a("pre",null,[a("code",null,`GET /relations
|
|
28
|
+
`)]),a("h3",{id:"graphql",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#graphql"},"#"),s(" GraphQL")]),a("pre",null,[a("code",null,`POST /graphql/system
|
|
29
29
|
`)]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"type"),a("span",{class:"hljs-type"}," Query"),s(` {
|
|
30
30
|
relations: [directus_relations]
|
|
31
31
|
}
|
|
32
|
-
`)])]),a("h5",{id:"example",tabindex:"-1"},[
|
|
32
|
+
`)])]),a("h5",{id:"example",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"query"),s(` {
|
|
33
33
|
relations {
|
|
34
34
|
collection
|
|
35
35
|
field
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`)])])])],-1),T=a("hr",null,null,-1),k=a("h2",{id:"list-relations-in-collection",tabindex:"-1"},[
|
|
39
|
-
`)]),a("h5",{id:"example-1",tabindex:"-1"},[
|
|
40
|
-
`)]),a("h3",{id:"graphql-1",tabindex:"-1"},[
|
|
38
|
+
`)])])])],-1),T=a("hr",null,null,-1),k=a("h2",{id:"list-relations-in-collection",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#list-relations-in-collection"},"#"),s(" List relations in collection")],-1),R=a("p",null,"List all relations that exist in a given collection.",-1),E=a("div",{class:"two-up"},[a("div",{class:"left"},[a("div",{class:"tip hint"},[a("div",{class:"hint-title"},"Permissions"),a("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, relations that apply to a collection that the current user doesn\u2019t have access to are stripped out.")]),a("h3",{id:"query-parameters-1",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),s(" Query Parameters")]),a("p",null,"Doesn\u2019t support any query parameters."),a("h3",{id:"returns-1",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#returns-1"},"#"),s(" Returns")]),a("p",null,[s("Array of "),a("a",{href:"#the-relation-object"},"relation objects"),s(". If no items are available, data will be an empty array.")])]),a("div",{class:"right"},[a("h3",{id:"rest-api-1",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#rest-api-1"},"#"),s(" REST API")]),a("pre",null,[a("code",null,`GET /relations/:collection
|
|
39
|
+
`)]),a("h5",{id:"example-1",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-1"},"#"),s(" Example")]),a("pre",null,[a("code",null,`GET /relations/articles
|
|
40
|
+
`)]),a("h3",{id:"graphql-1",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#graphql-1"},"#"),s(" GraphQL")]),a("pre",null,[a("code",null,`POST /graphql/system
|
|
41
41
|
`)]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"type"),a("span",{class:"hljs-type"}," Query"),s(` {
|
|
42
42
|
relations_in_collection(collection:`),a("span",{class:"hljs-type"}," String"),s(`!): [directus_relations]
|
|
43
43
|
}
|
|
44
|
-
`)])]),a("h5",{id:"example-2",tabindex:"-1"},[
|
|
44
|
+
`)])]),a("h5",{id:"example-2",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-2"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"query"),s(` {
|
|
45
45
|
relations_in_collection(collection: `),a("span",{class:"hljs-string"},'"articles"'),s(`) {
|
|
46
46
|
collection
|
|
47
47
|
field
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
`)])])])],-1),P=a("hr",null,null,-1),S=a("h2",{id:"retrieve-a-relation",tabindex:"-1"},[
|
|
51
|
-
`)]),a("h5",{id:"example-3",tabindex:"-1"},[
|
|
52
|
-
`)]),a("h3",{id:"graphql-2",tabindex:"-1"},[
|
|
50
|
+
`)])])])],-1),P=a("hr",null,null,-1),S=a("h2",{id:"retrieve-a-relation",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#retrieve-a-relation"},"#"),s(" Retrieve a relation")],-1),L=a("p",null,"List an existing relation by collection/field name.",-1),A=a("div",{class:"two-up"},[a("div",{class:"left"},[a("h3",{id:"query-parameters-2",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#query-parameters-2"},"#"),s(" Query Parameters")]),a("p",null,"Doesn\u2019t support any query parameters."),a("h3",{id:"returns-2",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#returns-2"},"#"),s(" Returns")]),a("p",null,[s("Returns the requested "),a("a",{href:"#the-relation-object"},"relation object"),s(".")])]),a("div",{class:"right"},[a("h3",{id:"rest-api-2",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#rest-api-2"},"#"),s(" REST API")]),a("pre",null,[a("code",null,`GET /relations/:collection/:field
|
|
51
|
+
`)]),a("h5",{id:"example-3",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-3"},"#"),s(" Example")]),a("pre",null,[a("code",null,`GET /relations/articles/featured_image
|
|
52
|
+
`)]),a("h3",{id:"graphql-2",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#graphql-2"},"#"),s(" GraphQL")]),a("pre",null,[a("code",null,`POST /graphql/system
|
|
53
53
|
`)]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"type"),a("span",{class:"hljs-type"}," Query"),s(` {
|
|
54
54
|
relations_by_name(collection:`),a("span",{class:"hljs-type"}," String"),s("!, field:"),a("span",{class:"hljs-type"}," String"),s(`!): directus_relations
|
|
55
55
|
}
|
|
56
|
-
`)])]),a("h5",{id:"example-4",tabindex:"-1"},[
|
|
56
|
+
`)])]),a("h5",{id:"example-4",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-4"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"query"),s(` {
|
|
57
57
|
relations_by_name(collection: `),a("span",{class:"hljs-string"},'"articles"'),s(", field: "),a("span",{class:"hljs-string"},'"featured_image"'),s(`) {
|
|
58
58
|
collection
|
|
59
59
|
field
|
|
60
60
|
related_collection
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
|
-
`)])])])],-1),N=a("hr",null,null,-1),Q=a("h2",{id:"create-a-relation",tabindex:"-1"},[
|
|
64
|
-
`)]),a("h5",{id:"example-5",tabindex:"-1"},[
|
|
63
|
+
`)])])])],-1),N=a("hr",null,null,-1),Q=a("h2",{id:"create-a-relation",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#create-a-relation"},"#"),s(" Create a Relation")],-1),D=a("p",null,"Create a new relation.",-1),O=a("div",{class:"two-up"},[a("div",{class:"left"},[a("h3",{id:"query-parameters-3",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#query-parameters-3"},"#"),s(" Query Parameters")]),a("p",null,"Doesn\u2019t support any query parameters."),a("h3",{id:"request-body",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#request-body"},"#"),s(" Request Body")]),a("p",null,[s("A partial "),a("a",{href:"#the-relation-object"},"relation object"),s(".")]),a("h3",{id:"returns-3",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#returns-3"},"#"),s(" Returns")]),a("p",null,[s("Returns the "),a("a",{href:"#the-relation-object"},"relation object"),s(" for the created relation.")])]),a("div",{class:"right"},[a("h3",{id:"rest-api-3",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#rest-api-3"},"#"),s(" REST API")]),a("pre",null,[a("code",null,`POST /relations
|
|
64
|
+
`)]),a("h5",{id:"example-5",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-5"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-json"},[a("span",{class:"hljs-comment"},"// POST /relations"),s(`
|
|
65
65
|
|
|
66
66
|
`),a("span",{class:"hljs-punctuation"},"{"),s(`
|
|
67
67
|
`),a("span",{class:"hljs-attr"},'"collection"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"articles"'),a("span",{class:"hljs-punctuation"},","),s(`
|
|
68
68
|
`),a("span",{class:"hljs-attr"},'"field"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"featured_image"'),a("span",{class:"hljs-punctuation"},","),s(`
|
|
69
69
|
`),a("span",{class:"hljs-attr"},'"related_collection"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"directus_files"'),s(`
|
|
70
70
|
`),a("span",{class:"hljs-punctuation"},"}"),s(`
|
|
71
|
-
`)])]),a("h3",{id:"graphql-3",tabindex:"-1"},[
|
|
71
|
+
`)])]),a("h3",{id:"graphql-3",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#graphql-3"},"#"),s(" GraphQL")]),a("pre",null,[a("code",null,`POST /graphql/system
|
|
72
72
|
`)]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"type"),a("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
73
73
|
create_relations_item(data: create_directus_relations_input!): directus_relations
|
|
74
74
|
}
|
|
75
|
-
`)])]),a("h5",{id:"example-6",tabindex:"-1"},[
|
|
75
|
+
`)])]),a("h5",{id:"example-6",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-6"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
76
76
|
create_relations_item(
|
|
77
77
|
data: { collection: `),a("span",{class:"hljs-string"},'"articles"'),s(", field: "),a("span",{class:"hljs-string"},'"featured_image"'),s(", related_collection: "),a("span",{class:"hljs-string"},'"directus_files"'),s(` }
|
|
78
78
|
) {
|
|
@@ -81,32 +81,32 @@ import{a as l,o as i,b as c,w as n,g as a,e as h,B as s}from"./runtime-core.esm-
|
|
|
81
81
|
related_collection
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
`)])])])],-1),G=a("hr",null,null,-1),C=a("h2",{id:"update-a-relation",tabindex:"-1"},[
|
|
85
|
-
`)]),a("h5",{id:"example-7",tabindex:"-1"},[
|
|
84
|
+
`)])])])],-1),G=a("hr",null,null,-1),C=a("h2",{id:"update-a-relation",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#update-a-relation"},"#"),s(" Update a Relation")],-1),I=a("p",null,"Update an existing relation.",-1),B=a("div",{class:"two-up"},[a("div",{class:"left"},[a("h3",{id:"query-parameters-4",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#query-parameters-4"},"#"),s(" Query Parameters")]),a("p",null,"Doesn\u2019t support any query parameters."),a("h3",{id:"request-body-1",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#request-body-1"},"#"),s(" Request Body")]),a("p",null,[s("A partial "),a("a",{href:"#the-relation-object"},"relation object"),s(".")]),a("h3",{id:"returns-4",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#returns-4"},"#"),s(" Returns")]),a("p",null,[s("Returns the "),a("a",{href:"#the-relation-object"},"relation object"),s(" for the created relation.")])]),a("div",{class:"right"},[a("h3",{id:"rest-api-4",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#rest-api-4"},"#"),s(" REST API")]),a("pre",null,[a("code",null,`PATCH /relations/:collection/:field
|
|
85
|
+
`)]),a("h5",{id:"example-7",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-7"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-json"},[a("span",{class:"hljs-comment"},"// PATCH /relations/articles/author"),s(`
|
|
86
86
|
|
|
87
87
|
`),a("span",{class:"hljs-punctuation"},"{"),s(`
|
|
88
88
|
`),a("span",{class:"hljs-attr"},'"meta"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-punctuation"},"{"),s(`
|
|
89
89
|
`),a("span",{class:"hljs-attr"},'"one_field"'),a("span",{class:"hljs-punctuation"},":"),s(),a("span",{class:"hljs-string"},'"articles"'),s(`
|
|
90
90
|
`),a("span",{class:"hljs-punctuation"},"}"),s(`
|
|
91
91
|
`),a("span",{class:"hljs-punctuation"},"}"),s(`
|
|
92
|
-
`)])]),a("h3",{id:"graphql-4",tabindex:"-1"},[
|
|
92
|
+
`)])]),a("h3",{id:"graphql-4",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#graphql-4"},"#"),s(" GraphQL")]),a("pre",null,[a("code",null,`POST /graphql/system
|
|
93
93
|
`)]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"type"),a("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
94
94
|
update_relations_item(collection:`),a("span",{class:"hljs-type"}," String"),s("!, field:"),a("span",{class:"hljs-type"}," String"),s(`!, data: update_directus_relations_input!): directus_relations
|
|
95
95
|
}
|
|
96
|
-
`)])]),a("h5",{id:"example-8",tabindex:"-1"},[
|
|
96
|
+
`)])]),a("h5",{id:"example-8",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-8"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
97
97
|
update_relations_item(collection: `),a("span",{class:"hljs-string"},'"articles"'),s(", field: "),a("span",{class:"hljs-string"},'"author"'),s(", data: { meta: { one_field: "),a("span",{class:"hljs-string"},'"articles"'),s(` } }) {
|
|
98
98
|
collection
|
|
99
99
|
field
|
|
100
100
|
related_collection
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
`)])])])],-1),M=a("hr",null,null,-1),U=a("h2",{id:"delete-a-relation",tabindex:"-1"},[
|
|
104
|
-
`)]),a("h5",{id:"example-9",tabindex:"-1"},[
|
|
105
|
-
`)]),a("h3",{id:"graphql-5",tabindex:"-1"},[
|
|
103
|
+
`)])])])],-1),M=a("hr",null,null,-1),U=a("h2",{id:"delete-a-relation",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#delete-a-relation"},"#"),s(" Delete a Relation")],-1),W=a("p",null,"Delete an existing relation.",-1),F=a("div",{class:"two-up"},[a("div",{class:"left"},[a("h3",{id:"returns-5",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#returns-5"},"#"),s(" Returns")]),a("p",null,"Empty body.")]),a("div",{class:"right"},[a("h3",{id:"rest-api-5",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#rest-api-5"},"#"),s(" REST API")]),a("pre",null,[a("code",null,`DELETE /relations/:collection/:field
|
|
104
|
+
`)]),a("h5",{id:"example-9",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-9"},"#"),s(" Example")]),a("pre",null,[a("code",null,`DELETE /relations/articles/author
|
|
105
|
+
`)]),a("h3",{id:"graphql-5",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#graphql-5"},"#"),s(" GraphQL")]),a("pre",null,[a("code",null,`POST /graphql/system
|
|
106
106
|
`)]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"type"),a("span",{class:"hljs-type"}," Mutation"),s(` {
|
|
107
107
|
delete_relations_item(collection:`),a("span",{class:"hljs-type"}," String"),s("!, field:"),a("span",{class:"hljs-type"}," String"),s(`!): delete_one
|
|
108
108
|
}
|
|
109
|
-
`)])]),a("h5",{id:"example-10",tabindex:"-1"},[
|
|
109
|
+
`)])]),a("h5",{id:"example-10",tabindex:"-1"},[a("a",{class:"header-anchor",href:"#example-10"},"#"),s(" Example")]),a("pre",null,[a("code",{class:"language-graphql"},[a("span",{class:"hljs-keyword"},"mutation"),s(` {
|
|
110
110
|
delete_relations_item(collection: `),a("span",{class:"hljs-string"},'"articles"'),s(", field: "),a("span",{class:"hljs-string"},'"author"'),s(`) {
|
|
111
111
|
collection
|
|
112
112
|
field
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as s,o as c,b as d,w as n,g as e,e as l,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"},"Many-to-One (M2O)
|
|
1
|
+
import{a as s,o as c,b as d,w as n,g as e,e as l,B as t}from"./runtime-core.esm-bundler.e3d5f5b7.js";const h={class:"markdown-body"},u=e("blockquote",null,[e("p",null,[t("As you might have guessed, relationships are a crucial part of any relational database. Directus supports all standard relationship types, as well as a few more "),e("em",null,"compound"),t(" types that offer greater flexibility.")])],-1),f=e("p",null,[e("div",{class:"table-of-contents"},[e("ul",null,[e("li",null,[e("a",{href:"#many-to-one-(m2o)"}," Many-to-One (M2O)")]),e("li",null,[e("a",{href:"#one-to-many-(o2m)"}," One-to-Many (O2M)")]),e("li",null,[e("a",{href:"#translations-(o2m)"}," Translations (O2M)")]),e("li",null,[e("a",{href:"#many-to-many-(m2m)"}," Many-to-Many (M2M)")]),e("li",null,[e("a",{href:"#many-to-any-(m2a)"}," Many-to-Any (M2A)")]),e("li",null,[e("a",{href:"#one-to-one-(o2o)"}," One-to-One (O2O)")])])])],-1),p=e("h3",{id:"introduction",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#introduction"},"#"),t(" Introduction")],-1),m=e("p",null,"While it may seem complex at first, relational data is actually quite straightforward once you understand what\u2019s happening behind the sometimes confusing terminology. Before diving into the details of each type, let\u2019s first cover a few basics that will help you better visualize them in your mind\u2019s eye.",-1),_=e("h3",{id:"primary-and-foreign-keys",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#primary-and-foreign-keys"},"#"),t(" Primary and Foreign Keys")],-1),y=t("Every "),g=t("Item"),w=t(" in a relational database has a unique "),M=t("Primary Key"),b=t(" (or \u201CPK\u201D) that identifies it within its "),v=t("Collection"),O=t(". Because it\u2019s required, the key is the first "),k=t("field"),x=t(" created within a collection, typically storing an \u201Cauto-increment\u201D number, an automatically generated unique hash, or a manually entered value. They are often abbreviated to \u201CPK\u201D (Primary Key), \u201CID\u201D (Identifier), \u201CUID\u201D (Unique Identifier), or \u201CUUID\u201D (Universally Unique Identifier), depending on the type of value they store. After it\u2019s created, the value of an item\u2019s PK should "),T=e("em",null,"never",-1),C=t(" change."),A=e("p",null,[t("To link items together relationally, you simply save a reference to an item\u2019s PK in a different field. That "),e("em",null,"reference"),t(" is called a Foreign Key (FK). If the primary key is a "),e("em",null,"person"),t(", the foreign key is like their "),e("em",null,"business card"),t(". It references the actual person, providing just enough information to find them.")],-1),j=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Composite & Compound Keys"),e("p",null,[t("In the above explanation we\u2019ve ignored "),e("em",null,"composite"),t(" and "),e("em",null,"compound"),t(" keys, which are essentially unique keys created by combining "),e("em",null,"multiple"),t(" field/column values.")])],-1),I=e("h3",{id:"perspective-matters",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#perspective-matters"},"#"),t(" Perspective Matters")],-1),P=e("p",null,"Just like primary and foreign keys, relationships are always described relative to their \u201Cparent\u201D collection. Looking at the same relationship/key from the perspective of the opposite collection would reverse it. This means that a many-to-one relationship can also be seen as a one-to-many relationship, it just depends on which collection is considered the parent.",-1),D=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),S=e("p",null,[t("The Many-to-One is the only relationship type with an actual field on the parent Collection. This field saves the foreign key to a single related item. For example, a "),e("em",null,"city"),t(" can only be in one "),e("em",null,"country"),t(", but a "),e("em",null,"country"),t(" can have many "),e("em",null,"cities"),t(".")],-1),R=e("p",null,"Below is an example of a M2O relationship:",-1),F=e("pre",null,[e("code",null,`cities (the "Many" Collection)
|
|
2
2
|
- id (Primary Key)
|
|
3
3
|
- name
|
|
4
4
|
- country (the M2O field that stores the country key)
|
|
@@ -6,7 +6,7 @@ import{a as s,o as c,b as d,w as n,g as e,e as l,B as t}from"./runtime-core.esm-
|
|
|
6
6
|
countries (the "One" Collection)
|
|
7
7
|
- id (Primary Key)
|
|
8
8
|
- name
|
|
9
|
-
`)],-1),K=e("h3",{id:"setup",tabindex:"-1"},[
|
|
9
|
+
`)],-1),K=e("h3",{id:"setup",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#setup"},"#"),t(" Setup")],-1),N=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/M2O-20220216A.webp",alt:"M2O"})],-1),q=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its primary key field.",-1),B=e("p",null,[t("If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),J=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the O2M alias (see below) that pairs with this M2O.")],-1),W=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There is one option:")],-1),Y=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Related Collection]"),t(" \u2014 When the related item (O2M) is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the parent M2O field (default)"),e("li",null,"Set the parent M2O field to its default value"),e("li",null,"Delete the parent collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),U=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("The One-to-Many relationship is the "),E=e("strong",null,"exact same relationship",-1),z=t(" as a Many-to-One (above), just seen from the opposite collection\u2019s perspective. The O2M is stored as an "),H=t("Alias"),V=t(" field on its parent Collection that dynamically lists all items connected via the opposite Many-to-One. So, while the M2O will show a single country for the parent city, the O2M shows all cities for the parent country."),G=e("p",null,"Below is an example of a O2M relationship:",-1),Q=e("pre",null,[e("code",null,`countries (the "One" Collection)
|
|
10
10
|
- id (Primary Key)
|
|
11
11
|
- name
|
|
12
12
|
- *cities* (the O2M alias field that lists references from "cities.country")
|
|
@@ -15,7 +15,7 @@ cities (the "Many" Collection)
|
|
|
15
15
|
- id (Primary Key)
|
|
16
16
|
- name
|
|
17
17
|
- country (the M2O field that stores the country key)
|
|
18
|
-
`)],-1),X=e("h3",{id:"setup-1",tabindex:"-1"},[
|
|
18
|
+
`)],-1),X=e("h3",{id:"setup-1",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#setup-1"},"#"),t(" Setup")],-1),Z=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/O2M-20220216A.webp",alt:"O2M"})],-1),$=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled. All you need to configure is the related collection and its M2O field.",-1),ee=e("p",null,[t("You can select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) or create a "),e("strong",null,"new"),t(" one by entering a unique collection name. Next, you can select an existing field (highlights green) or create a new one by entering a field name unique to its collection.")],-1),te=e("p",null,"The related field will store the value of this collection\u2019s primary key field, so both must have the same type. For this reason, when selecting existing fields, options will be disabled if they don\u2019t have a matching type.",-1),ne=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the M2O field (see above) that pairs with this O2M.")],-1),oe=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Related Collection, or entering the name of a new field to be created.")],-1),le=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are two options:")],-1),ie=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Related Collection]"),t(" \u2014 When the value of the M2O is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the M2O field value (default)"),e("li",null,"Delete the M2O item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this O2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the related M2O field (default)"),e("li",null,"Set the related M2O field to its default value"),e("li",null,"Delete the related collection\u2019s item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),se=e("h2",{id:"translations-(o2m)",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#translations-(o2m)"},"#"),t(" Translations (O2M)")],-1),ae=t("The Translations relationship is just a special version of the standard O2M. Just like the O2M, it creates an "),re=t("Alias"),ce=t(" field that is used to list all related items (the translations). Translations themselves are stored in a separate collection, which is then further related to a "),de=e("em",null,"third",-1),he=t(" collection that stores all languages."),ue=e("h3",{id:"setup-2",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#setup-2"},"#"),t(" Setup")],-1),fe=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/translations-wizard-20220216A.webp",alt:"Translations"})],-1),pe=e("p",null,"The easiest way to add translations is to use the wizard, which only asks for the Translation field name. All required fields and relationships will then be automatically created and configured.",-1),me=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/translations-relations-20220216A.webp",alt:"Translations"})],-1),_e=e("p",null,[t("If you choose to switch to "),e("strong",null,"manual setup"),t(", you will be presented with a similar relationship setup to O2M or M2M. The parent collection and primary key are known, so those fields are disabled.")],-1),ye=e("p",null,"Next, we configure the Translation Collection. Set to \u201CAuto Fill\u201D by default, this will enter intelligent naming based on related names, and disables all fields. Disabling Auto Fill will enable all fields, allowing you to name the collection that holds the translations, as well as the two fields (each a M2O) that store foreign keys to the parent item and language.",-1),ge=e("p",null,[t("Lastly, you would select/create the Languages collection, which stores the languages available for this translations field. It is common practice to reuse a single languages collection throughout your project, unless translation fields need to support different language sets. For the language "),e("code",null,"code"),t(" we recommend using the IETF language tag (eg: "),e("code",null,"en-US"),t(") which combines the ISO 639-1 and ISO 3166\u20111 standards, but anything can be used (eg: "),e("code",null,"english"),t(").")],-1),we=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),Me=t("The Many-to-Many relationship is actually just "),be=e("strong",null,"two relationships combined",-1),ve=t(" (O2M+M2O) that join together three different collections. The M2M is stored as an "),Oe=t("Alias"),ke=t(" field on its parent Collection that dynamically lists all items connected via a "),xe=t("junction collection"),Te=t(". For example, a "),Ce=e("em",null,"recipe",-1),Ae=t(" can have many "),je=e("em",null,"ingredients",-1),Ie=t(", and "),Pe=e("em",null,"ingredients",-1),De=t(" can be in many "),Se=e("em",null,"recipes",-1),Re=t("."),Fe=e("p",null,"Below is an example of a M2M relationship:",-1),Ke=e("pre",null,[e("code",null,`recipes (Collection)
|
|
19
19
|
- id (Primary Key)
|
|
20
20
|
- name
|
|
21
21
|
- *ingredients* (M2M/O2M alias field that lists references from "recipe_ingredients")
|
|
@@ -30,7 +30,7 @@ recipe_ingredients (Junction Collection)
|
|
|
30
30
|
- recipe (stores the recipe key)
|
|
31
31
|
- ingredient (stores ingredient key)
|
|
32
32
|
- quantity (other optional data on the connection)
|
|
33
|
-
`)],-1),Ne=e("p",null,[t("Notice that the example above also has a "),e("code",null,"quantity"),t(" field on the Junction Collection, which tracks how much of each ingredient is needed for the recipe. You can add any other "),e("em",null,"contextual"),t(" fields to the junction, and they will also be included at the top of the App\u2019s relational Item Page form.")],-1),qe=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Self-Referencing"),e("p",null,[t("You can also have a M2M relationship that connects items within the "),e("em",null,"same"),t(" collection. An example of this is \u201CRelated Articles\u201D, where an article might relate to many other articles.")])],-1),Be=e("h3",{id:"setup-3",tabindex:"-1"},[
|
|
33
|
+
`)],-1),Ne=e("p",null,[t("Notice that the example above also has a "),e("code",null,"quantity"),t(" field on the Junction Collection, which tracks how much of each ingredient is needed for the recipe. You can add any other "),e("em",null,"contextual"),t(" fields to the junction, and they will also be included at the top of the App\u2019s relational Item Page form.")],-1),qe=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Self-Referencing"),e("p",null,[t("You can also have a M2M relationship that connects items within the "),e("em",null,"same"),t(" collection. An example of this is \u201CRelated Articles\u201D, where an article might relate to many other articles.")])],-1),Be=e("h3",{id:"setup-3",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#setup-3"},"#"),t(" Setup")],-1),Je=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/M2M-20220216A.webp",alt:"M2M"})],-1),We=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),Ye=e("p",null,[t("Next you should configure the Related Collection. If you select or enter an "),e("strong",null,"existing"),t(" Related Collection (highlights green) then the primary key field is known and automatically selected. If you enter the name of a "),e("strong",null,"new"),t(" Related Collection (doesn\u2019t already exist), you will also be prompted to enter the name of its primary key field, which will default to an auto-increment integer type.")],-1),Ue=t("Lastly, we configure the "),Le=t("Junction Collection"),Ee=t(", which sits between the two related collections, storing all links between the two. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),ze=e("p",null,[t("You also have the option to create a "),e("strong",null,"Corresponding Field"),t(" during this process. This allows you to more easily create the reverse M2M field on the "),e("em",null,"related"),t(" collection.")],-1),He=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this O2M field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),Ve=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),Ge=e("ul",null,[e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2M is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])]),e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When this M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Delete of [Related Collection Item]"),t(" \u2014 When the related M2M item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])])],-1),Qe=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),Xe=t("Sometimes called a \u201Cmatrix field\u201D or \u201Creplicator\u201D. Like the M2M, the M2A is stored as an "),Ze=t("Alias"),$e=t(" field on its parent Collection that dynamically lists all items connected via a "),et=t("junction collection"),tt=t(". However, there is one key difference: one side of the junction also stores a "),nt=e("strong",null,"collection key",-1),ot=t(". This combination of collection name and primary key means that you can effectively store a reference to "),lt=e("em",null,"any",-1),it=t(" item in the database. You can then artificially limit which collections are valid through a related collections \u201Callow list\u201D."),st=e("p",null,[t("A common example of a M2A is a \u201CPage Builder\u201D, which has a "),e("em",null,"Pages"),t(" collection that includes any number of different \u201Csection\u201D Collections, such as: \u201CHeading\u201D, \u201CText\u201D, and \u201CImage\u201D. In this example the junction table will link different sections (from different collections) with a page, creating relational layouts.")],-1),at=e("p",null,"Below is an example of a M2A relationship:",-1),rt=e("pre",null,[e("code",null,`pages (Collection)
|
|
34
34
|
- id
|
|
35
35
|
- name
|
|
36
36
|
- *sections* (O2M/M2A alias field that lists references from "page_sections")
|
|
@@ -52,4 +52,4 @@ text (Collection)
|
|
|
52
52
|
images (Collection)
|
|
53
53
|
- id
|
|
54
54
|
- file
|
|
55
|
-
`)],-1),ct=e("h3",{id:"setup-4",tabindex:"-1"},[
|
|
55
|
+
`)],-1),ct=e("h3",{id:"setup-4",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#setup-4"},"#"),t(" Setup")],-1),dt=e("p",null,[e("img",{src:"https://cdn.directus.io/docs/v9/configuration/data-model/relationships/M2A-20220216A.webp",alt:"M2A"})],-1),ht=e("p",null,"The parent collection and field are already known (it\u2019s the field you\u2019re currently creating), so configuring those are disabled.",-1),ut=t("Next, we configure the "),ft=t("Junction Collection"),pt=t(", which sits between the related collections, storing all links between them. You can leave this set to \u201CAuto-Fill\u201D, which sets intelligent naming defaults, or disable it to select existing options or enter custom names."),mt=e("p",null,[t("Lastly, you should select any desired Related Collections. Unlike other relationships, you can\u2019t "),e("em",null,"create"),t(" these related collections here, so ensure all related collections you need are created beforehand.")],-1),_t=e("div",{class:"tip hint"},[e("div",{class:"hint-title"},"Auto-generating"),e("p",null,"If you enter a collection/field name that doesn\u2019t exist yet, Directus will auto-generate these collections/fields once you save the changes on the new M2A field.")],-1),yt=e("p",null,[t("The optional "),e("strong",null,"Sort Field"),t(" can be used to enable manual reordering of items within this M2A field. This is configured by selecting an existing numeric type field (highlights green) from the Junction Collection, or entering the name of a new field to be created.")],-1),gt=e("p",null,[e("strong",null,"Relational Triggers"),t(" allow for control over what happens when a relationship is broken. There are three options:")],-1),wt=e("ul",null,[e("li",null,[e("strong",null,"On Delete of [Parent Collection Item]"),t(" \u2014 When a M2A item is deleted\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Set the junction field to its default value"),e("li",null,"Delete the related junction item (cascade)"),e("li",null,"Prevent the deletion")])]),e("li",null,[e("strong",null,"On Deselect of [Junction Collection]"),t(" \u2014 When the value of this M2A is deselected\u2026 "),e("ul",null,[e("li",null,"Nullify the junction field (default)"),e("li",null,"Delete the junction item (cascade)")])])],-1),Mt=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),bt=t("Directus does not include a dedicated One-to-One (O2O) relationship type or interface. However, O2O is essentially the same as a M2O (storing a foreign key). The only difference is that a O2O enforces the cardinality. In other words, selecting a relational item in a O2O means that item can not be selected elsewhere (it can only be used once). This functionality can be added by checking and constraining uniqueness via a "),vt=t("custom event hook"),Ot=t(" or "),kt=t("custom interface"),xt=t("."),Tt=e("p",null,[t("An example of this is a "),e("em",null,"person"),t(" only has one unique set of "),e("em",null,"fingerprints"),t(", and those "),e("em",null,"fingerprints"),t(" only belong to one "),e("em",null,"person"),t(".")],-1),Pt="Relationships",Dt=!1,St={name:"relationships",setup(Ct,{expose:a}){const i={title:"Relationships",modularExtension:!1};return a({frontmatter:i}),(At,jt)=>{const o=s("router-link"),r=s("docs-wrapper");return c(),d(r,{frontmatter:i},{default:n(()=>[e("div",h,[u,f,p,m,_,e("p",null,[y,l(o,{to:"/docs/getting-started/glossary/#items"},{default:n(()=>[g]),_:1}),w,l(o,{to:"/docs/getting-started/glossary/#primary-key-pk"},{default:n(()=>[M]),_:1}),b,l(o,{to:"/docs/getting-started/glossary/#collections"},{default:n(()=>[v]),_:1}),O,l(o,{to:"/docs/getting-started/glossary/#fields"},{default:n(()=>[k]),_:1}),x,T,C]),A,j,I,P,D,S,R,F,K,N,q,B,J,W,Y,U,e("p",null,[L,E,z,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[H]),_:1}),V]),G,Q,X,Z,$,ee,te,ne,oe,le,ie,se,e("p",null,[ae,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[re]),_:1}),ce,de,he]),ue,fe,pe,me,_e,ye,ge,we,e("p",null,[Me,be,ve,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[Oe]),_:1}),ke,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[xe]),_:1}),Te,Ce,Ae,je,Ie,Pe,De,Se,Re]),Fe,Ke,Ne,qe,Be,Je,We,Ye,e("p",null,[Ue,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[Le]),_:1}),Ee]),ze,He,Ve,Ge,Qe,e("p",null,[Xe,l(o,{to:"/docs/getting-started/glossary/#alias"},{default:n(()=>[Ze]),_:1}),$e,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[et]),_:1}),tt,nt,ot,lt,it]),st,at,rt,ct,dt,ht,e("p",null,[ut,l(o,{to:"/docs/getting-started/glossary/#junction-collections"},{default:n(()=>[ft]),_:1}),pt]),mt,_t,yt,gt,wt,Mt,e("p",null,[bt,l(o,{to:"/docs/extensions/hooks/"},{default:n(()=>[vt]),_:1}),Ot,l(o,{to:"/docs/extensions/interfaces/"},{default:n(()=>[kt]),_:1}),xt]),Tt])]),_:1})}}};export{St as default,Dt as modularExtension,Pt as title};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t,o as i,b as u,w as n,g as e,e as c,B as r}from"./runtime-core.esm-bundler.e3d5f5b7.js";const d={class:"markdown-body"},h=e("h2",{id:"cloud",tabindex:"-1"},[
|
|
1
|
+
import{a as t,o as i,b as u,w as n,g as e,e as c,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),_=r("Cloud Documentation"),m=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),v=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),T="Resources",A=!1,B={name:"resources",setup(D,{expose:s}){const o={title:"Resources",modularExtension:!1};return s({frontmatter:o}),(y,C)=>{const l=t("router-link"),a=t("docs-wrapper");return i(),u(a,{frontmatter:o},{default:n(()=>[e("div",d,[h,e("ul",null,[p,f,e("li",null,[e("strong",null,[c(l,{to:"/docs/cloud/overview/"},{default:n(()=>[_]),_:1})]),m]),g]),k,b,w,v])]),_:1})}}};export{B as default,A as modularExtension,T 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={class:"two-up"},u={class:"left"},_=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),j=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"},"The Revision Object
|
|
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={class:"two-up"},u={class:"left"},_=e("Revisions are individual changes to items made. Directus keeps track of changes made, so you\u2019re able to revert to a previous state at will. "),v=e("Learn more about Revisions"),m=e("."),j=s("div",{class:"right"},[s("p",null,[s("div",{class:"table-of-contents"},[s("ul",null,[s("li",null,[s("a",{href:"#the-revision-object"}," The Revision Object")]),s("li",null,[s("a",{href:"#list-revisions"}," List revisions")]),s("li",null,[s("a",{href:"#retrieve-a-revision"}," Retrieve a revision")])])])])],-1),f=s("hr",null,null,-1),g=s("h2",{id:"the-revision-object",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#the-revision-object"},"#"),e(" The Revision Object")],-1),y={class:"two-up"},b={class:"left"},x={class:"definitions"},q=s("p",null,[s("code",null,"id"),e(),s("strong",null,"integer"),s("br"),e(" Primary key of the revision.")],-1),w=s("code",null,"activity",-1),k=e(),R=s("strong",null,"many-to-one",-1),E=s("br",null,null,-1),T=e(" Related activity record. Many-to-one to "),P=e("activity"),S=e("."),L=s("p",null,[s("code",null,"collection"),e(),s("strong",null,"string"),s("br"),e(" Collection in which this revision happened.")],-1),C=s("p",null,[s("code",null,"item"),e(),s("strong",null,"string"),s("br"),e(" Primary key of the item that was changed.")],-1),Q=s("p",null,[s("code",null,"data"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the top-level item data.")],-1),A=s("p",null,[s("code",null,"delta"),e(),s("strong",null,"object"),s("br"),e(" Snapshot of the changes made in this revision.")],-1),G=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),B=s("div",{class:"right"},[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,26 +11,26 @@ 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),D=s("hr",null,null,-1),H=s("h2",{id:"list-revisions",tabindex:"-1"},[
|
|
14
|
+
`)])])],-1),D=s("hr",null,null,-1),H=s("h2",{id:"list-revisions",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#list-revisions"},"#"),e(" List revisions")],-1),I=s("p",null,"List all revisions that exist in Directus.",-1),O={class:"two-up"},N={class:"left"},V=s("div",{class:"tip hint"},[s("div",{class:"hint-title"},"Permissions"),s("p",null,"The data returned in this endpoint will be filtered based on the user\u2019s permissions. For example, revisions that apply to a collection that the current user doesn\u2019t have access to are stripped out.")],-1),M=s("h3",{id:"query-parameters",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters"},"#"),e(" Query Parameters")],-1),F=e("Supports all "),W=e("global query parameters"),z=e("."),J=s("h3",{id:"returns",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns"},"#"),e(" Returns")],-1),K=e("An array of up to "),U=e("limit"),X=e(),Y=s("a",{href:"#the-revision-object"},"revision objects",-1),Z=e(". If no items are available, data will be an empty array."),$={class:"right"},ss=s("h3",{id:"rest-api",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api"},"#"),e(" REST API")],-1),es=s("pre",null,[s("code",null,`GET /revisions
|
|
15
15
|
SEARCH /revisions
|
|
16
|
-
`)],-1),ts=e("Learn more about SEARCH ->"),ns=s("h3",{id:"graphql",tabindex:"-1"},[
|
|
16
|
+
`)],-1),ts=e("Learn more about SEARCH ->"),ns=s("h3",{id:"graphql",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql"},"#"),e(" GraphQL")],-1),as=s("pre",null,[s("code",null,`POST /graphql/system
|
|
17
17
|
`)],-1),os=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
18
18
|
revisions: [directus_revisions]
|
|
19
19
|
}
|
|
20
|
-
`)])],-1),ls=s("h5",{id:"examples",tabindex:"-1"},[
|
|
20
|
+
`)])],-1),ls=s("h5",{id:"examples",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#examples"},"#"),e(" Examples")],-1),is=s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
21
21
|
revisions {
|
|
22
22
|
id
|
|
23
23
|
data
|
|
24
24
|
delta
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
`)])],-1),rs=s("hr",null,null,-1),cs=s("h2",{id:"retrieve-a-revision",tabindex:"-1"},[
|
|
28
|
-
`)]),s("h5",{id:"example",tabindex:"-1"},[
|
|
29
|
-
`)]),s("h3",{id:"graphql-1",tabindex:"-1"},[
|
|
27
|
+
`)])],-1),rs=s("hr",null,null,-1),cs=s("h2",{id:"retrieve-a-revision",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#retrieve-a-revision"},"#"),e(" Retrieve a revision")],-1),hs=s("p",null,"List an existing revision by primary key.",-1),ds={class:"two-up"},ps={class:"left"},us=s("h3",{id:"query-parameters-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#query-parameters-1"},"#"),e(" Query Parameters")],-1),_s=e("Supports all "),vs=e("global query parameters"),ms=e("."),js=s("h3",{id:"returns-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#returns-1"},"#"),e(" Returns")],-1),fs=s("p",null,[e("Returns the requested "),s("a",{href:"#the-revision-object"},"revision object"),e(".")],-1),gs=s("div",{class:"right"},[s("h3",{id:"rest-api-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#rest-api-1"},"#"),e(" REST API")]),s("pre",null,[s("code",null,`GET /revisions/:id
|
|
28
|
+
`)]),s("h5",{id:"example",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example"},"#"),e(" Example")]),s("pre",null,[s("code",null,`GET /revisions/322
|
|
29
|
+
`)]),s("h3",{id:"graphql-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#graphql-1"},"#"),e(" GraphQL")]),s("pre",null,[s("code",null,`POST /graphql/system
|
|
30
30
|
`)]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"type"),s("span",{class:"hljs-type"}," Query"),e(` {
|
|
31
31
|
revisions_by_id(id:`),s("span",{class:"hljs-literal"}," ID"),e(`!): directus_revisions
|
|
32
32
|
}
|
|
33
|
-
`)])]),s("h5",{id:"example-1",tabindex:"-1"},[
|
|
33
|
+
`)])]),s("h5",{id:"example-1",tabindex:"-1"},[s("a",{class:"header-anchor",href:"#example-1"},"#"),e(" Example")]),s("pre",null,[s("code",{class:"language-graphql"},[s("span",{class:"hljs-keyword"},"query"),e(` {
|
|
34
34
|
revisions_by_id(id: `),s("span",{class:"hljs-number"},"322"),e(`) {
|
|
35
35
|
id
|
|
36
36
|
data
|