Skip to content

Commit e772e75

Browse files
authored
New refactor (#14)
* refactorGeiCrud * changeGeiCrudResolvers * changeNames * changeGeiRest * updateUsers * index * changeS3 * updateDataInput * lastFixes * fixMongoConflict * updateGeCli * upBookingsAndStripe * updateSchema
1 parent 631c304 commit e772e75

File tree

104 files changed

+791
-34870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+791
-34870
lines changed

package-lock.json

Lines changed: 0 additions & 12220 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"eslint": "^8.39.0",
3939
"eslint-config-prettier": "^8.3.0",
4040
"eslint-plugin-react": "^7.25.2",
41-
"graphql-editor-cli": "^0.8.6",
41+
"graphql-editor-cli": "^0.9.0",
4242
"jest": "^27.5.1",
4343
"prettier": "^2.8.8",
4444
"ts-jest": "^27.1.3",

packages/integrations/gei-basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gei-basic",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Automatically generated by graphql-editor-cli",
55
"main": "lib/index.js",
66
"scripts": {
@@ -32,6 +32,6 @@
3232
"node-fetch": "^3.2.10",
3333
"stucco-js": "^0.10.18",
3434
"ws": "^8.12.0",
35-
"graphql-editor-cli": "^0.7.6"
35+
"graphql-editor-cli": "^0.9.0"
3636
}
3737
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { FieldResolveInput } from 'stucco-js';
22
import { resolverFor } from '../zeus/index.js';
33

4-
export const handler = async (input: FieldResolveInput) =>
4+
export const passSource = async (input: FieldResolveInput) =>
55
resolverFor('Query', 'passSource', async () => {
66
return input.source;
77
})(input.arguments);
8+
export default passSource;
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { FieldResolveInput } from 'stucco-js';
22
import { resolverFor } from '../zeus/index.js';
33

4-
export const handler = async (input: FieldResolveInput) =>
4+
export const passSourceWithArgs = async (input: FieldResolveInput) =>
55
resolverFor('Query', 'passSourceWithArgs', async (args, src) => {
66
return { ...args, ...src };
77
})(input.arguments, input.source);
8+
export default passSourceWithArgs;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { FieldResolveInput } from 'stucco-js';
22
import { resolverFor } from '../zeus/index.js';
33

4-
export const handler = async (input: FieldResolveInput) =>
4+
export const pipe = async (input: FieldResolveInput) =>
55
resolverFor('Query', 'pipe', async () => {
66
return {};
77
})(input.arguments);
8+
9+
export default pipe;

packages/integrations/gei-basic/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { NewIntegration } from 'graphql-editor-cli';
22

3-
import { handler as pipe } from './Query/pipe.js';
4-
import { handler as passSource } from './Query/passSource.js';
5-
import { handler as passSourceWithArgs } from './Query/passSourceWithArgs.js';
3+
import pipe from './Query/pipe.js';
4+
import passSource from './Query/passSource.js';
5+
import passSourceWithArgs from './Query/passSourceWithArgs.js';
66

77
export const integration = NewIntegration({
88
Query: {

0 commit comments

Comments
 (0)