Adding a hint to Hello World

This note helps people who are hitting this error `{"hint":null,"details":null,"code":"42P01","message":"relation \"api.todos\" does not exist"}`

https://github.com/PostgREST/postgrest/issues/1009
This commit is contained in:
Amanda
2021-04-19 10:04:34 +02:00
committed by GitHub
parent 535ebba219
commit 038fcc02b2
+4 -1
View File
@@ -165,7 +165,10 @@ PostgREST uses a configuration file to tell it how to connect to the database. C
db-schema = "api"
db-anon-role = "web_anon"
The configuration file has other :ref:`options <configuration>`, but this is all we need. Now run the server:
The configuration file has other :ref:`options <configuration>`, but this is all we need.
If you are not using Docker, make sure that your port number is correct and replace `postgres` with the name of the database where you added the todos table.
Now run the server:
.. code-block:: bash