Skip to content

Commit

Permalink
New refactor (#14)
Browse files Browse the repository at this point in the history
* refactorGeiCrud

* changeGeiCrudResolvers

* changeNames

* changeGeiRest

* updateUsers

* index

* changeS3

* updateDataInput

* lastFixes

* fixMongoConflict

* updateGeCli

* upBookingsAndStripe

* updateSchema
  • Loading branch information
pavelbrui committed Nov 7, 2023
1 parent 631c304 commit e772e75
Show file tree
Hide file tree
Showing 104 changed files with 791 additions and 34,870 deletions.
12,220 changes: 0 additions & 12,220 deletions package-lock.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"eslint": "^8.39.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-react": "^7.25.2",
"graphql-editor-cli": "^0.8.6",
"graphql-editor-cli": "^0.9.0",
"jest": "^27.5.1",
"prettier": "^2.8.8",
"ts-jest": "^27.1.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/integrations/gei-basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gei-basic",
"version": "0.1.2",
"version": "0.1.3",
"description": "Automatically generated by graphql-editor-cli",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -32,6 +32,6 @@
"node-fetch": "^3.2.10",
"stucco-js": "^0.10.18",
"ws": "^8.12.0",
"graphql-editor-cli": "^0.7.6"
"graphql-editor-cli": "^0.9.0"
}
}
3 changes: 2 additions & 1 deletion packages/integrations/gei-basic/src/Query/passSource.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { FieldResolveInput } from 'stucco-js';
import { resolverFor } from '../zeus/index.js';

export const handler = async (input: FieldResolveInput) =>
export const passSource = async (input: FieldResolveInput) =>
resolverFor('Query', 'passSource', async () => {
return input.source;
})(input.arguments);
export default passSource;
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { FieldResolveInput } from 'stucco-js';
import { resolverFor } from '../zeus/index.js';

export const handler = async (input: FieldResolveInput) =>
export const passSourceWithArgs = async (input: FieldResolveInput) =>
resolverFor('Query', 'passSourceWithArgs', async (args, src) => {
return { ...args, ...src };
})(input.arguments, input.source);
export default passSourceWithArgs;
4 changes: 3 additions & 1 deletion packages/integrations/gei-basic/src/Query/pipe.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { FieldResolveInput } from 'stucco-js';
import { resolverFor } from '../zeus/index.js';

export const handler = async (input: FieldResolveInput) =>
export const pipe = async (input: FieldResolveInput) =>
resolverFor('Query', 'pipe', async () => {
return {};
})(input.arguments);

export default pipe;
6 changes: 3 additions & 3 deletions packages/integrations/gei-basic/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { NewIntegration } from 'graphql-editor-cli';

import { handler as pipe } from './Query/pipe.js';
import { handler as passSource } from './Query/passSource.js';
import { handler as passSourceWithArgs } from './Query/passSourceWithArgs.js';
import pipe from './Query/pipe.js';
import passSource from './Query/passSource.js';
import passSourceWithArgs from './Query/passSourceWithArgs.js';

export const integration = NewIntegration({
Query: {
Expand Down
Loading

0 comments on commit e772e75

Please sign in to comment.