orchid-graphql 1.9.1 → 2.0.0
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 +3 -2
- package/dist/index.cjs +344 -491
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +143 -130
- package/dist/index.d.mts +205 -0
- package/dist/index.mjs +360 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +26 -16
- package/src/orm/orm.ts +22 -40
- package/LICENSE +0 -21
- package/dist/index.d.ts +0 -192
- package/dist/index.js +0 -481
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ In particular the typings are not ready. The resolver returns a generic `Query`
|
|
|
20
20
|
## Install
|
|
21
21
|
|
|
22
22
|
```sh
|
|
23
|
-
npm i orchid-graphql
|
|
23
|
+
npm i orchid-graphql postgres
|
|
24
24
|
```
|
|
25
25
|
|
|
26
26
|
## Minimal all-in-one example
|
|
@@ -37,7 +37,8 @@ import { ApolloServer, ApolloServerOptions } from "@apollo/server"
|
|
|
37
37
|
import { startStandaloneServer } from "@apollo/server/standalone"
|
|
38
38
|
import gql from "graphql-tag"
|
|
39
39
|
import * as r from "orchid-graphql"
|
|
40
|
-
import { createBaseTable
|
|
40
|
+
import { createBaseTable } from "orchid-orm"
|
|
41
|
+
import { orchidORM } from "orchid-orm/postgres-js"
|
|
41
42
|
|
|
42
43
|
// Define database tables
|
|
43
44
|
|