Collection Name | Read | Write |
---|---|---|
Repositories | ✅ | 🛠️ Ask us |
Pull Requests | ✅ | 🛠️ Ask us |
Commits | ✅ | 🛠️ Ask us |
Issues | ✅ | ✅ |
Releases | ✅ | 🛠️ Ask us |
Comments | 🛠️ Ask us | 🛠️ Ask us |
Discussions | 🛠️ Ask us | 🛠️ Ask us |
Labels | 🛠️ Ask us | 🛠️ Ask us |
Reactions | 🛠️ Ask us | 🛠️ Ask us |
Refs (branches/tags) | 🛠️ Ask us | 🛠️ Ask us |
Users | 🛠️ Ask us | 🛠️ Ask us |
insert
, update
, or delete
rows in your Postgres database.
When you’re connected to your database through the Sequin Proxy, the Proxy listens for changes. When you make a mutation, the Proxy applies the mutation to GitHub’s API first. If the mutation succeeds, your database is updated as well. If it fails, your database mutation will be rolled back, and you’ll receive a Postgres error.
Data flows from GitHub to your Postgres database. Your code or SQL client then reads from the database. To mutate your data, you update records in your database. Those mutations are applied to GitHub then to your database.
With this architecture, GitHub remains the source of truth and your database never gets out-of-sync.
Learn more about writes.
insert
to create a new entry in the “Issues” table on GitHub.200
. The body contains the new issue.issue
table in your Sequin database.id
column and all foreign key columns (e.g. the repository_id
column in the pull_request
table) will be the REST IDs, which are integers. The GraphQL IDs, which are strings, are also included in the node_id
column.