@fraym/crud 0.5.0 → 0.6.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 CHANGED
@@ -22,9 +22,11 @@ Use the `crud` cli command to automatically apply your crud schemas to the crud
22
22
  Your type schemas have to match the glob you specify in the `CRUD_SCHEMA_GLOB` env variable (default: `./src/**/*.graphql`).
23
23
  You can specify the address (and port) of the crud service instance you use in the `CRUD_SERVER_ADDRESS` env variable (default: `127.0.0.1:9000`).
24
24
 
25
+ You need to add a file that contains all built-in directives to your type schemas. The latest version of this file can be found [here](default.graphql).
26
+
25
27
  ### Config
26
28
 
27
- use a `.env` file or env variables to configure cte clients and the command:
29
+ Use a `.env` file or env variables to configure cte clients and the command:
28
30
 
29
31
  ```env
30
32
  CRUD_SERVER_ADDRESS=127.0.0.1:9000
@@ -110,7 +112,7 @@ await client.delete("tenantId", "YourCrudType", "id");
110
112
  ### Get a single data element
111
113
 
112
114
  The name of `YourCrudType` has to equal your type name in your schema (also in casing).
113
- The `id` has to match the id of the data that you want to delete.
115
+ The `id` has to match the id of the data that you want to get.
114
116
 
115
117
  ```typescript
116
118
  const data = await client.getData("tenantId", "YourCrudType", "id");
package/dist/cmd/crud.js CHANGED
@@ -118,7 +118,8 @@ const getTypeData = (t) => {
118
118
  name === "Float" ||
119
119
  name === "ID" ||
120
120
  name === "Boolean" ||
121
- name === "Int"
121
+ name === "Int" ||
122
+ name === "DateTime"
122
123
  ? {
123
124
  str: name,
124
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fraym/crud",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "license": "UNLICENSED",
5
5
  "homepage": "https://github.com/fraym/crud-nodejs",
6
6
  "repository": {
@@ -32,7 +32,6 @@
32
32
  "@graphql-tools/load": "^7.8.6",
33
33
  "@grpc/grpc-js": "^1.7.2",
34
34
  "dotenv": "^16.0.3",
35
- "fs": "^0.0.1-security",
36
35
  "graphql": "^16.6.0",
37
36
  "yargs": "^17.6.2"
38
37
  },