Recently Updated Pages
Query- Create and Update
Query- Grouping and Aggregation
Queries- Relationship and Search
Query- Sorting
Query- variables
Query- Add Filter
Query-Filter
Deploy API
Once your project is configured (schema synced, authentication set up, user mapping, social aut...
User Mapping
Map User Table: Identify which table in your database stores user accounts. Map the key col...
Sync Schema
Open your database connection and click Sync Schema to scan your schema. SWAIN will import met...
Create Connection
Navigate to Project → Connections → New Connection in the SWAIN dashboard. Fill in the connect...
Create Project
https://drive.google.com/file/d/1_rwM1z95J_GWs33ICc4Yfu7hroKv1vXy/view?usp=drive_linkGo to Proj...
Use Cases & Stories
Rapid Prototyping: SWAIN allows startup founders and product teams to quickly validate ideas by...
What You Can Build
SWAIN enables you to build a variety of API capabilities: Database Integration – A fully featu...
Authorization
Go to the Authorization section in your project to manage roles and permissions. Create Roles ...
Social Auth
Enable social authentication so users can log in using providers like Google or GitHub. Regist...
Authentication Settings
General Security: Set Access Token Expiry (e.g., 1h) to control how long JWT access tokens r...
Swain CLI
Quick Start Install once, generate everywhere. Install: pipx install swain_cli (Python 3....
Glossary
RLS (Row-Level Security) – Restricts records returned or modified to those owned by the authent...
Security Best Practices
JWT Security – Use a strong JWT secret (32+ random bytes) and rotate it carefully. Token Manag...