To report or discuss details, use the issues. Pull requests to update this file with more troubleshooting tips are welcome.
The basic installation procedure is described at section Usage.
See this tutorial of "Installing global node modules".
Details at issue #495.
See usage
Please check your connection string (provided via the -c
option) is valid. Example:
postgraphql -c postgres://postgres:postgres@localhost:5432/issn
If you believe the connection string to be valid, you can check it with the psql
command line utility:
psql postgres://postgres:postgres@localhost:5432/issn
(Note this works with postgres://
and postgresql://
schemas, but not pg://
)
If this is failing then your issue lies outside of PostGraphQL - check your postgresql roles and grants.
Details at issue #482 and issue #495.
Check the following:
- return a named type (e.g. a scalar, table name or domain) - we don't currently support anonymous types
- query procedures must not return
VOID
(mutations can, however) - mark it as
STABLE
if it's a query, orVOLATILE
if it's a mutation - it should be defined in one of the Postgres schemas you've told PostGraphQL to introspect (via
postgraphql --schema
)
create function MY_SCHEMA.my_function() returns INTEGER as $$
select 1;
$$ language sql STABLE;
Details at issue #529.