graphjin 2.0.5 → 2.0.7

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 CHANGED
@@ -9,7 +9,7 @@
9
9
  <!-- [![Run on Google Cloud](./.github/deploy-cloud-run-button.svg)](https://deploy.cloud.run)
10
10
  -->
11
11
 
12
- GraphJin gives you an instant secure and fast GraphQL API without code. Just use a GraphQL query to define your API and GraphJin automagically converts it into a full featured API. Build your backend APIs **100X** faster. Works with **NodeJS** and **GO**. Supports several databases, **Postgres**, **MySQL**, **YugabyteDB**, **Cockroach**, etc.
12
+ GraphJin gives you an instant secure and fast GraphQL API without code. Just use a GraphQL query to define your API and GraphJin automagically converts it into a full featured API. Build your backend APIs **100X** faster. Works with **NodeJS** and **GO**. Supports several databases, **Postgres**, **MySQL**, **YugabyteDB**, etc.
13
13
 
14
14
  ## Secure out of the box
15
15
 
@@ -83,38 +83,21 @@ console.log("Express server started on port %s", server.address().port);
83
83
 
84
84
  ### Quick install
85
85
 
86
- Mac (Homebrew)
87
-
88
86
  ```
87
+ # Mac (Homebrew)
89
88
  brew install dosco/graphjin/graphjin
90
- ```
91
89
 
92
- Ubuntu (Snap)
93
-
94
- ```
90
+ # Ubuntu (Snap)
95
91
  sudo snap install --classic graphjin
96
92
  ```
97
93
 
98
94
  Debian and Redhat ([releases](https://github.com/dosco/graphjin/releases))
99
-
100
- ```
101
95
  Download the .deb or .rpm from the releases page and install with dpkg -i and rpm -i respectively.
102
- ```
103
-
104
- NPM
105
-
106
- ```
107
- npm install graphjin
108
- ```
109
96
 
110
97
  ### Quickly create and deploy new apps
111
98
 
112
99
  ```bash
113
100
  graphjin new <app_name>
114
-
115
- cd <app_name>
116
- docker-compose run api db setup
117
- docker-compose up
118
101
  ```
119
102
 
120
103
  ### Instantly deploy new versions
@@ -255,7 +238,7 @@ With GraphJin your web and mobile developers can start building instantly. All t
255
238
 
256
239
  ## Highlevel
257
240
 
258
- - Works with Postgres, MySQL8, YugabyteDB, CockroachDB,
241
+ - Works with Postgres, MySQL8, YugabyteDB
259
242
  - Also works with Amazon Aurora/RDS and Google Cloud SQL
260
243
  - Supports REST, GraphQL and Websocket APIs
261
244
 
@@ -289,15 +272,11 @@ With GraphJin your web and mobile developers can start building instantly. All t
289
272
 
290
273
  ## Documentation
291
274
 
292
- [Quick Start](https://github.com/dosco/graphjin/wiki/Quick-Start)
293
-
294
- [Documentation](https://github.com/dosco/graphjin/wiki)
295
-
296
- [Build APIs in 5 minutes with GraphJin](https://dev.to/dosco/build-high-performance-graphql-apis-in-5-minutes-with-graphjin-261o)
275
+ [Quick Start](https://graphjin.com/posts/1-quick-start)
297
276
 
298
- [GraphQL vs REST](https://dev.to/dosco/rest-vs-graphql-building-startups-in-2021-3k73)
277
+ [Documentation](https://graphjin.com)
299
278
 
300
- [GraphQL Examples](https://pkg.go.dev/github.com/dosco/graphjin/core#pkg-examples)
279
+ [GraphJin GO Examples](https://pkg.go.dev/github.com/dosco/graphjin/core#pkg-examples)
301
280
 
302
281
  ## Reach out
303
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphjin",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "GraphJin - Build APIs in 5 minutes with GraphQL",
5
5
  "type": "module",
6
6
  "main": "wasm/js/graphjin.js",
@@ -2,8 +2,8 @@
2
2
  # so I only need to overwrite some values
3
3
  inherits: dev
4
4
 
5
- # When production mode is 'true' only queries
6
- # from the allow list are permitted.
5
+ # When production mode is 'true' only queries from the queries
6
+ # folder can be used.
7
7
  production: true
8
8
 
9
9
  # Secret key for general encryption operations like
Binary file
@@ -14,6 +14,8 @@ const f = fs.readFileSync(join(__dirname,"../graphjin.wasm"));
14
14
  const inst = await WebAssembly.instantiate(f, go.importObject);
15
15
  go.run(inst.instance);
16
16
 
17
+ // TODO: Use NODE_ENV to set production mode
18
+
17
19
  export default async function(configPath, config, db) {
18
20
  if (typeof config === 'string') {
19
21
  const conf = {value: config, isFile: true}