VENTURESAurabase acquires & invests in your apps, startups, mobile apps, SaaS and software.Read more →

Engineering · 8 min read

Migrate from Nhost to Aurabase (2026–2027 Guide)

Affane Daylami · Founder ·

Back to blog

Because both Nhost and Aurabase run on standard PostgreSQL, migrating off Nhost's AWS-hosted cloud to Aurabase's 100% EU Scaleway and Hetzner infrastructure takes minutes — and lets you keep GraphQL via pg_graphql or adopt simpler PostgREST REST APIs.

Quick answer: Migrating from Nhost to Aurabase in 2026–2027 uses standard pg_dump / pg_restore for PostgreSQL data, replaces Hasura JSON permissions with native PostgreSQL 18 FORCE RLS, enables opt-in pg_graphql if your frontend relies on GraphQL, and moves storage off AWS S3 to Scaleway/SeaweedFS EU S3.

#

Database & GraphQL

Transferring PostgreSQL schema and enabling pg_graphql

# 1. Dump your Nhost public schema and data
pg_dump --no-owner --no-acl --schema=public "$NHOST_POSTGRES_URL" -f nhost_dump.sql

# 2. Restore into your dedicated Aurabase PostgreSQL 18 instance
psql "$AURABASE_DATABASE_URL" -f nhost_dump.sql

If your frontend still sends GraphQL queries during migration, activate pg_graphql directly in Aurabase Studio Extensions or via SQL:

CREATE EXTENSION IF NOT EXISTS pg_graphql;
#

Permissions to RLS

Converting Hasura permissions into native PostgreSQL RLS

In Nhost, authorization rules live in Hasura metadata YAML files. On Aurabase, move them straight into PostgreSQL 18 where REST, GraphQL, and SQL RPCs enforce them uniformly:

ALTER TABLE workspaces ENABLE ROW LEVEL SECURITY;
ALTER TABLE workspaces FORCE ROW LEVEL SECURITY;

CREATE POLICY workspace_member_select ON workspaces
  FOR SELECT
  USING (
    EXISTS (
      SELECT 1 FROM workspace_members wm
      WHERE wm.workspace_id = workspaces.id
        AND wm.user_id = auth.uid()
    )
  );
#

Next Steps

Compare Nhost and Aurabase in detail

READY TO DEPLOY?

Your backend in five minutes.

No credit card required · 500 MB free · 50,000 MAU