graphile-query 2.3.12 → 2.3.13
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 +10 -12
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -16,29 +16,27 @@
|
|
|
16
16
|
</a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
This module provides utilities to execute GraphQL queries against a PostGraphile-generated schema using PostgreSQL connection pooling and contextual role-based settings.
|
|
19
|
+
**`graphile-query`** provides utilities to execute GraphQL queries against a PostGraphile-generated schema using PostgreSQL connection pooling and contextual role-based settings.
|
|
22
20
|
|
|
23
21
|
It includes two main classes:
|
|
24
22
|
|
|
25
23
|
* `GraphileQuery`: A flexible query runner that supports `pgSettings`, role-based access control, and custom request context.
|
|
26
24
|
* `GraphileQuerySimple`: A minimal wrapper for GraphQL execution without advanced role or settings logic.
|
|
27
25
|
|
|
28
|
-
##
|
|
26
|
+
## 🚀 Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install graphile-query
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## ✨ Features
|
|
29
33
|
|
|
30
34
|
* Built-in support for PostGraphile context and role-based `pgSettings`
|
|
31
35
|
* Works with pre-built PostGraphile schemas
|
|
32
36
|
* Supports raw string queries or parsed `DocumentNode`s
|
|
33
37
|
* Integrates with PostgreSQL via `pg.Pool`
|
|
34
38
|
|
|
35
|
-
##
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npm install graphile-query
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Usage
|
|
39
|
+
## 📦 Usage
|
|
42
40
|
|
|
43
41
|
Use as a particular role, skipping any auth logic:
|
|
44
42
|
|
|
@@ -114,7 +112,7 @@ const result = await client.query(`
|
|
|
114
112
|
`);
|
|
115
113
|
```
|
|
116
114
|
|
|
117
|
-
## API
|
|
115
|
+
## 📘 API
|
|
118
116
|
|
|
119
117
|
### `getSchema(pool, settings)`
|
|
120
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-query",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.13",
|
|
4
4
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
5
5
|
"description": "graphile query",
|
|
6
6
|
"main": "index.js",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"graphile",
|
|
45
45
|
"launchql"
|
|
46
46
|
],
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "00c90828cab8d3e306ebb2bc6053aab4aa9ae807"
|
|
48
48
|
}
|