@stonecrop/nuxt 0.12.6 → 0.12.8
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/dist/module.json +1 -1
- package/package.json +10 -10
- package/templates/resolvers.ts +4 -4
- package/templates/schema.graphql +8 -1
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/nuxt",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.8",
|
|
4
4
|
"description": "Nuxt module for Stonecrop",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"jiti": "^2.4.2",
|
|
45
45
|
"pathe": "^2.0.3",
|
|
46
46
|
"prompts": "^2.4.2",
|
|
47
|
-
"@stonecrop/aform": "0.12.
|
|
48
|
-
"@stonecrop/casl-middleware": "0.12.
|
|
49
|
-
"@stonecrop/graphql-middleware": "0.12.
|
|
50
|
-
"@stonecrop/atable": "0.12.
|
|
51
|
-
"@stonecrop/node-editor": "0.12.
|
|
52
|
-
"@stonecrop/nuxt-grafserv": "0.12.
|
|
53
|
-
"@stonecrop/stonecrop": "0.12.
|
|
54
|
-
"@stonecrop/schema": "0.12.
|
|
47
|
+
"@stonecrop/aform": "0.12.8",
|
|
48
|
+
"@stonecrop/casl-middleware": "0.12.8",
|
|
49
|
+
"@stonecrop/graphql-middleware": "0.12.8",
|
|
50
|
+
"@stonecrop/atable": "0.12.8",
|
|
51
|
+
"@stonecrop/node-editor": "0.12.8",
|
|
52
|
+
"@stonecrop/nuxt-grafserv": "0.12.8",
|
|
53
|
+
"@stonecrop/stonecrop": "0.12.8",
|
|
54
|
+
"@stonecrop/schema": "0.12.8"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@eslint/js": "^10.0.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"eslint": "^10.3.0",
|
|
71
71
|
"globals": "^17.6.0",
|
|
72
72
|
"nuxt": "^4.4.4",
|
|
73
|
-
"postgraphile": "^5.0.
|
|
73
|
+
"postgraphile": "^5.0.3",
|
|
74
74
|
"typescript-eslint": "^8.59.1",
|
|
75
75
|
"typescript": "^6.0.3",
|
|
76
76
|
"vite": "^7.3.2",
|
package/templates/resolvers.ts
CHANGED
|
@@ -113,7 +113,7 @@ export const resolvers = {
|
|
|
113
113
|
/**
|
|
114
114
|
* Get multiple records with filtering
|
|
115
115
|
*/
|
|
116
|
-
stonecropRecords(_$parent, { $doctype, $filters, $orderBy, $limit, $offset }) {
|
|
116
|
+
stonecropRecords(_$parent, { $doctype, $filters, $orderBy, $limit, $offset, $options }) {
|
|
117
117
|
// Arguments come pre-destructured as steps with $ prefix
|
|
118
118
|
|
|
119
119
|
// TODO: Implement records fetching from your database
|
|
@@ -128,9 +128,9 @@ export const resolvers = {
|
|
|
128
128
|
// })
|
|
129
129
|
|
|
130
130
|
return lambda(
|
|
131
|
-
list([$doctype, $filters, $orderBy, $limit, $offset]),
|
|
132
|
-
([doctype, filters, orderBy, limit, offset]) => {
|
|
133
|
-
console.log('stonecropRecords called:', { doctype, filters, orderBy, limit, offset })
|
|
131
|
+
list([$doctype, $filters, $orderBy, $limit, $offset, $options]),
|
|
132
|
+
([doctype, filters, orderBy, limit, offset, options]) => {
|
|
133
|
+
console.log('stonecropRecords called:', { doctype, filters, orderBy, limit, offset, options })
|
|
134
134
|
return {
|
|
135
135
|
data: [],
|
|
136
136
|
doctype,
|
package/templates/schema.graphql
CHANGED
|
@@ -97,7 +97,14 @@ type Query {
|
|
|
97
97
|
"""
|
|
98
98
|
Get multiple records with optional filtering
|
|
99
99
|
"""
|
|
100
|
-
stonecropRecords(
|
|
100
|
+
stonecropRecords(
|
|
101
|
+
doctype: String!
|
|
102
|
+
filters: JSON
|
|
103
|
+
orderBy: String
|
|
104
|
+
limit: Int
|
|
105
|
+
offset: Int
|
|
106
|
+
options: JSON
|
|
107
|
+
): RecordsResult
|
|
101
108
|
}
|
|
102
109
|
|
|
103
110
|
# ============================================
|