graphile-query 2.3.11 → 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.
Files changed (2) hide show
  1. package/README.md +16 -14
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -8,33 +8,35 @@
8
8
  <a href="https://github.com/launchql/launchql/actions/workflows/run-tests.yaml">
9
9
  <img height="20" src="https://github.com/launchql/launchql/actions/workflows/run-tests.yaml/badge.svg" />
10
10
  </a>
11
- <a href="https://github.com/launchql/launchql/blob/main/LICENSE"><img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/></a>
12
- <a href="https://www.npmjs.com/package/graphile-query"><img height="20" src="https://img.shields.io/github/package-json/v/launchql/launchql?filename=graphile%2Fgraphile-query%2Fpackage.json"/></a>
11
+ <a href="https://github.com/launchql/launchql/blob/main/LICENSE">
12
+ <img height="20" src="https://img.shields.io/badge/license-MIT-blue.svg"/>
13
+ </a>
14
+ <a href="https://www.npmjs.com/package/graphile-query">
15
+ <img height="20" src="https://img.shields.io/github/package-json/v/launchql/launchql?filename=graphile%2Fgraphile-query%2Fpackage.json"/>
16
+ </a>
13
17
  </p>
14
18
 
15
- ## GraphileQuery: Simple GraphQL Execution with PostGraphile Context
16
-
17
- 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.
18
20
 
19
21
  It includes two main classes:
20
22
 
21
23
  * `GraphileQuery`: A flexible query runner that supports `pgSettings`, role-based access control, and custom request context.
22
24
  * `GraphileQuerySimple`: A minimal wrapper for GraphQL execution without advanced role or settings logic.
23
25
 
24
- ## Features
26
+ ## 🚀 Installation
27
+
28
+ ```bash
29
+ npm install graphile-query
30
+ ```
31
+
32
+ ## ✨ Features
25
33
 
26
34
  * Built-in support for PostGraphile context and role-based `pgSettings`
27
35
  * Works with pre-built PostGraphile schemas
28
36
  * Supports raw string queries or parsed `DocumentNode`s
29
37
  * Integrates with PostgreSQL via `pg.Pool`
30
38
 
31
- ## Installation
32
-
33
- ```bash
34
- npm install graphile-query
35
- ```
36
-
37
- ## Usage
39
+ ## 📦 Usage
38
40
 
39
41
  Use as a particular role, skipping any auth logic:
40
42
 
@@ -110,7 +112,7 @@ const result = await client.query(`
110
112
  `);
111
113
  ```
112
114
 
113
- ## API
115
+ ## 📘 API
114
116
 
115
117
  ### `getSchema(pool, settings)`
116
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphile-query",
3
- "version": "2.3.11",
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": "3812f24a480b2035b3413ec7fecfe492f294e590"
47
+ "gitHead": "00c90828cab8d3e306ebb2bc6053aab4aa9ae807"
48
48
  }