graphile-postgis 0.1.2 โ 0.1.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 +12 -10
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -16,16 +16,21 @@
|
|
|
16
16
|
</a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
|
-
PostGIS
|
|
20
|
-
geometry/geography GraphQL types, and convenience fields for common spatial types.
|
|
19
|
+
**`graphile-postgis`** registers GeoJSON scalars, PostGIS geometry/geography GraphQL types, and convenience fields for common spatial columns in PostGraphile/Graphile schemas.
|
|
21
20
|
|
|
22
|
-
##
|
|
21
|
+
## ๐ Installation
|
|
23
22
|
|
|
24
23
|
```sh
|
|
25
24
|
pnpm add graphile-postgis
|
|
26
25
|
```
|
|
27
26
|
|
|
28
|
-
##
|
|
27
|
+
## โจ Features
|
|
28
|
+
|
|
29
|
+
- Registers GeoJSON scalars and PostGIS `geometry` / `geography` GraphQL types
|
|
30
|
+
- Convenience fields for common spatial column types
|
|
31
|
+
- Works with PostGraphile CLI or library usage
|
|
32
|
+
|
|
33
|
+
## ๐ฆ Usage
|
|
29
34
|
|
|
30
35
|
### CLI
|
|
31
36
|
|
|
@@ -45,14 +50,11 @@ const options = {
|
|
|
45
50
|
};
|
|
46
51
|
```
|
|
47
52
|
|
|
48
|
-
## Testing
|
|
49
|
-
|
|
50
|
-
Tests run against a real Postgres/PostGIS instance using the `graphile-test` and
|
|
51
|
-
`pgsql-test` harnesses. The suite seeds the database from `sql/schema.sql`.
|
|
53
|
+
## ๐งช Testing
|
|
52
54
|
|
|
53
55
|
```sh
|
|
54
|
-
|
|
55
|
-
pnpm
|
|
56
|
+
# requires a local Postgres with PostGIS available (defaults to postgres/password@localhost:5432)
|
|
57
|
+
pnpm --filter graphile-postgis test
|
|
56
58
|
```
|
|
57
59
|
|
|
58
60
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphile-postgis",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Graphile/PostGraphile PostGIS integration plugin",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/launchql/launchql",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/geojson": "^7946.0.14",
|
|
42
|
-
"graphile-test": "^2.8.
|
|
42
|
+
"graphile-test": "^2.8.11",
|
|
43
43
|
"makage": "^0.1.6",
|
|
44
|
-
"pgsql-test": "^2.14.
|
|
44
|
+
"pgsql-test": "^2.14.14"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"graphile-build": "^4.14.1",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"graphql": "15.10.1",
|
|
51
51
|
"pg": "^8.16.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "00c90828cab8d3e306ebb2bc6053aab4aa9ae807"
|
|
54
54
|
}
|