graphjin 2.0.8 → 2.0.10
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 +8 -4
- package/package.json +2 -2
- package/wasm/graphjin.wasm +0 -0
package/README.md
CHANGED
|
@@ -16,7 +16,11 @@ GraphJin gives you an instant secure and fast GraphQL API without code. Just use
|
|
|
16
16
|
In production all queries are always read from locally saved copies not from what the client sends hence clients cannot modify the query. This makes
|
|
17
17
|
GraphJin very secure as its similiar to building APIs by hand. The idea that GraphQL means that clients can change the query as they wish **does not** apply to GraphJin
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## Great Documentation
|
|
20
|
+
|
|
21
|
+
Detailed docs on GraphQL syntax, usecases, Javascript and GO code examples and it's actively updated.
|
|
22
|
+
|
|
23
|
+
# [https://graphjin.com](https://graphjin.com)
|
|
20
24
|
|
|
21
25
|
## Use with NodeJS
|
|
22
26
|
|
|
@@ -132,7 +136,7 @@ You can use GraphJin as a library within your own code. The [serv](https://pkg.g
|
|
|
132
136
|
|
|
133
137
|
```golang
|
|
134
138
|
import (
|
|
135
|
-
"github.com/dosco/graphjin/serv"
|
|
139
|
+
"github.com/dosco/graphjin/serv/v2"
|
|
136
140
|
)
|
|
137
141
|
|
|
138
142
|
gj, err := serv.NewGraphJinService(conf, opt...)
|
|
@@ -152,7 +156,7 @@ if err := gj.Start(); err != nil {
|
|
|
152
156
|
### Use just the core GraphQL compiler in your own GO app
|
|
153
157
|
|
|
154
158
|
```console
|
|
155
|
-
go get github.com/dosco/graphjin/
|
|
159
|
+
go get github.com/dosco/graphjin/v2
|
|
156
160
|
```
|
|
157
161
|
|
|
158
162
|
```golang
|
|
@@ -164,7 +168,7 @@ import (
|
|
|
164
168
|
"fmt"
|
|
165
169
|
"log"
|
|
166
170
|
|
|
167
|
-
"github.com/dosco/graphjin/core"
|
|
171
|
+
"github.com/dosco/graphjin/core/v2"
|
|
168
172
|
_ "github.com/jackc/pgx/v4/stdlib"
|
|
169
173
|
)
|
|
170
174
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphjin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"description": "GraphJin - Build APIs in 5 minutes with GraphQL",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "wasm/js/graphjin.js",
|
|
6
|
+
"main": "./wasm/js/graphjin.js",
|
|
7
7
|
"files": [
|
|
8
8
|
"./wasm/config",
|
|
9
9
|
"./wasm/runtime",
|
package/wasm/graphjin.wasm
CHANGED
|
Binary file
|