2021年10月25日

PostGraphile

-------------------------------------------------------
node.js


sudo apt update

sudo apt install nodejs
-------------------------------------------------------



npm install -g postgraphile



-------------------------------------------------------
PostgreSQLとPostGraphileでサクッとGraphQLエンドポイントを作成する


-------------------------------------------------------
sudo gedit !/usr/bin/env bash

#!/usr/bin/env bash
pnpx postgraphile \
  --connection postgres:///postgres \
  --watch
-------------------------------------------------------




‣ GraphQL API:         http://localhost:5000/graphql
  ‣ GraphiQL GUI/IDE:    http://localhost:5000/graphiql
  ‣ Postgres connection: postgres://postgres:[SECRET]@localhost/mydb (watching)
  ‣ Postgres schema(s):  public
  ‣ Documentation:       https://graphile.org/postgraphile/introduction/
  ‣ Node.js version:     v10.19.0 on linux x64
  ‣ Join Robert Claypool in supporting PostGraphile development: https://graphile.org/sponsor/
  
  
  
  
  
posted by a23 at 08:39| Comment(0) | PostgreSQL