2020-02-12
1983
#graphql#postgresql
Austin Roy Omondi
13931
Feb 12, 2020 ⋅ 7 min read

Intro to Postgres + GraphQL with PostGraphile

Austin Roy Omondi Live long and prosper 👌

Recent posts:

Comparing Mutative Vs Immer Vs Reducers For Data Handling In React

Comparing React state tools: Mutative vs. Immer vs. reducers

Mutative processes data with better performance than both Immer and native reducers. Let’s compare these data handling options in React.

Rashedul Alam
Apr 26, 2024 ⋅ 7 min read
Radix Ui Adoption Guide Overview Examples And Alternatives

Radix UI adoption guide: Overview, examples, and alternatives

Radix UI is quickly rising in popularity and has become an excellent go-to solution for building modern design systems and websites.

Nefe Emadamerho-Atori
Apr 25, 2024 ⋅ 11 min read
Understanding The Css Revert Layer Keyword, Part Of Css Cascade Layers

Understanding the CSS revert-layer keyword

In this article, we’ll explore CSS cascade layers — and, specifically, the revert-layer keyword — to help you refine your styling strategy.

Chimezie Innocent
Apr 24, 2024 ⋅ 6 min read
Exploring Nushell, A Rust Powered, Cross Platform Shell

Exploring Nushell, a Rust-powered, cross-platform shell

Nushell is a modern, performant, extensible shell built with Rust. Explore its pros, cons, and how to install and get started with it.

Oduah Chigozie
Apr 23, 2024 ⋅ 6 min read
View all posts

3 Replies to "Intro to Postgres + GraphQL with PostGraphile"

  1. Hi Austin, Thanks for this!
    I just wanted to let you know that I found this useful but you could add something in there to let people know that they should use `-s “test_schema”` to be able to see the schema in graphiql. I got stuck on this part for a bit but then after reading the postgraphile –help I was able to figure out that I should need to use `postgraphile -s “test_schema” -c “postgres:///testdb”`
    Keep up the good work!
    -Dana

  2. I got the same error as Dana Z, I corrected it but then I am getting ‘permission denied for schema “test_schema”‘. Can somebody help?

  3. I too has the schema issue. Below is the entire command I used to start up postgraphile:

    postgraphile -s test_schema -c “postgresql://:@localhost:5432/testdb”

    The username I specified was one that I created in the database…I gave this user “login” and “superuser” privileges (Not recommended for production systems!).

    Then on the test_schema properties page, click the security tab and grant all privileges to this new user.

    I know it’s a year later, but HTH!

Leave a Reply