From 9843a30957425e9e7a6d457a9f479948e092f60f Mon Sep 17 00:00:00 2001
From: Daniel <d.hornung@indiscale.com>
Date: Wed, 23 Nov 2022 13:06:55 +0100
Subject: [PATCH] DOC: update docs for new behavior of FIND queries (also for
 FROM)

---
 src/doc/extension/forms.rst           | 4 ++--
 src/doc/extension/query_templates.rst | 2 +-
 src/doc/tutorials/query.rst           | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/doc/extension/forms.rst b/src/doc/extension/forms.rst
index e1891b8d..11a7167d 100644
--- a/src/doc/extension/forms.rst
+++ b/src/doc/extension/forms.rst
@@ -22,7 +22,7 @@ The following code snippet adds a form to the body of the HTML document.
     const config = {
         name: "my_form",
         fields: [
-            { type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Record Experiment", required: true },
+            { type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Experiment", required: true },
             { type: "integer", name: "number", label: "A Number", required: true },
             { type: "date", name: "date", label: "A Date", required: false },
             { type: "text", name: "comment", label: "A Comment", required: false },
@@ -85,7 +85,7 @@ If you intend to call a server-side script, the config has to be changed a litte
     const config = {
         script: "process.py",
         fields: [
-            { type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Record Experiment", required: true },
+            { type: "reference_drop_down", name: "experiment_id", label: "Experiment", query: "FIND Experiment", required: true },
             { type: "integer", name: "number", label: "A Number", required: true },
             { type: "date", name: "date", label: "A Date", required: false },
             { type: "text", name: "comment", label: "A Comment", required: false },
diff --git a/src/doc/extension/query_templates.rst b/src/doc/extension/query_templates.rst
index 4e511ac9..9f120f75 100644
--- a/src/doc/extension/query_templates.rst
+++ b/src/doc/extension/query_templates.rst
@@ -191,7 +191,7 @@ The following example for the file global_query_shortcuts.json would create two
         },
         {
             "description": "Show a table of Experiments for year: {year}",
-            "query": "SELECT date, project, identifier FROM Record Experiment with date in {year}"
+            "query": "SELECT date, project, identifier FROM Experiment with date in {year}"
         }
     ]
 
diff --git a/src/doc/tutorials/query.rst b/src/doc/tutorials/query.rst
index 8f5a9bcb..bd570938 100644
--- a/src/doc/tutorials/query.rst
+++ b/src/doc/tutorials/query.rst
@@ -31,7 +31,7 @@ exists one. Using  ``FIND RecordType Guitar`` would restrict the result to
 only that RecordType. And ``FIND RECORD MusicalInstrument`` is just equivalent
 to ``FIND MusicalInstrument``.
 
-Note, that you cannot only provide RecordType names after the ``FIND``, but names
+Note, that you can provide not only RecordType names after the ``FIND``, but names
 in general: ``FIND "Nice Guitar"``. This will give you a Record with the
 name "Nice Guitar" (if one exists... and there should be one in the demo instance).
 
-- 
GitLab