introspectron 2.13.1 → 2.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/esm/gql.js +1 -1
- package/gql.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -61,6 +61,26 @@ createdb testdb
|
|
|
61
61
|
psql testdb -f ./seed.sql
|
|
62
62
|
|
|
63
63
|
|
|
64
|
+
## Education and Tutorials
|
|
65
|
+
|
|
66
|
+
1. 🚀 [Quickstart: Getting Up and Running](https://launchql.com/learn/quickstart)
|
|
67
|
+
Get started with modular databases in minutes. Install prerequisites and deploy your first module.
|
|
68
|
+
|
|
69
|
+
2. 📦 [Modular PostgreSQL Development with Database Packages](https://launchql.com/learn/modular-postgres)
|
|
70
|
+
Learn to organize PostgreSQL projects with pgpm workspaces and reusable database modules.
|
|
71
|
+
|
|
72
|
+
3. ✏️ [Authoring Database Changes](https://launchql.com/learn/authoring-database-changes)
|
|
73
|
+
Master the workflow for adding, organizing, and managing database changes with pgpm.
|
|
74
|
+
|
|
75
|
+
4. 🧪 [End-to-End PostgreSQL Testing with TypeScript](https://launchql.com/learn/e2e-postgres-testing)
|
|
76
|
+
Master end-to-end PostgreSQL testing with ephemeral databases, RLS testing, and CI/CD automation.
|
|
77
|
+
|
|
78
|
+
5. ⚡ [Supabase Testing](https://launchql.com/learn/supabase)
|
|
79
|
+
TypeScript-native testing for Supabase with modern workflows.
|
|
80
|
+
|
|
81
|
+
6. 🔧 [Troubleshooting](https://launchql.com/learn/troubleshooting)
|
|
82
|
+
Common issues and solutions for pgpm, PostgreSQL, and testing.
|
|
83
|
+
|
|
64
84
|
## Related LaunchQL Tooling
|
|
65
85
|
|
|
66
86
|
### 🧪 Testing
|
|
@@ -102,6 +122,11 @@ psql testdb -f ./seed.sql
|
|
|
102
122
|
* [@launchql/query-builder](https://github.com/launchql/launchql/tree/main/packages/query-builder): **🏗️ SQL constructor** providing a robust TypeScript-based query builder for dynamic generation of `SELECT`, `INSERT`, `UPDATE`, `DELETE`, and stored procedure calls—supports advanced SQL features like `JOIN`, `GROUP BY`, and schema-qualified queries.
|
|
103
123
|
* [@launchql/query](https://github.com/launchql/launchql/tree/main/packages/query): **🧩 Fluent GraphQL builder** for PostGraphile schemas. ⚡ Schema-aware via introspection, 🧩 composable and ergonomic for building deeply nested queries.
|
|
104
124
|
|
|
125
|
+
## Credits
|
|
126
|
+
|
|
127
|
+
🛠 Built by LaunchQL — if you like our tools, please checkout and contribute to [our github ⚛️](https://github.com/launchql)
|
|
128
|
+
|
|
129
|
+
|
|
105
130
|
## Disclaimer
|
|
106
131
|
|
|
107
132
|
AS DESCRIBED IN THE LICENSES, THE SOFTWARE IS PROVIDED "AS IS", AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND.
|
package/esm/gql.js
CHANGED
|
@@ -117,7 +117,7 @@ export const parseGraphQuery = (introQuery) => {
|
|
|
117
117
|
}
|
|
118
118
|
return context;
|
|
119
119
|
};
|
|
120
|
-
const mutations = mutationsRoot
|
|
120
|
+
const mutations = (mutationsRoot?.fields || []).reduce((m, mutation) => {
|
|
121
121
|
let mutationType = 'other';
|
|
122
122
|
if (/^Create/.test(mutation.type.name))
|
|
123
123
|
mutationType = 'create';
|
package/gql.js
CHANGED
|
@@ -122,7 +122,7 @@ const parseGraphQuery = (introQuery) => {
|
|
|
122
122
|
}
|
|
123
123
|
return context;
|
|
124
124
|
};
|
|
125
|
-
const mutations = mutationsRoot
|
|
125
|
+
const mutations = (mutationsRoot?.fields || []).reduce((m, mutation) => {
|
|
126
126
|
let mutationType = 'other';
|
|
127
127
|
if (/^Create/.test(mutation.type.name))
|
|
128
128
|
mutationType = 'create';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "introspectron",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.3",
|
|
4
4
|
"description": "introspect your Postgres database and generate an SDK",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"main": "index.js",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@jest/test-sequencer": "^29.7.0",
|
|
34
34
|
"@types/pg": "^8.15.2",
|
|
35
|
-
"
|
|
36
|
-
"pgsql-test": "^2.14.
|
|
35
|
+
"launchql-test": "^2.8.0",
|
|
36
|
+
"pgsql-test": "^2.14.3"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"graphql": "15.10.1",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"graphile",
|
|
49
49
|
"launchql"
|
|
50
50
|
],
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "da2bd9606bd5e1d4e63b7d74f08920975980e541"
|
|
52
52
|
}
|