-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
209 additions
and
85 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
type Query{ | ||
pipe: Query | ||
passSource: Query | ||
passSourceWithArgs: Query | ||
} |
7 changes: 7 additions & 0 deletions
7
packages/integrations/gei-basic/src/Query/passSourceWithArgs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { FieldResolveInput } from 'stucco-js'; | ||
import { resolverFor } from '../zeus/index.js'; | ||
|
||
export const handler = async (input: FieldResolveInput) => | ||
resolverFor('Query', 'passSourceWithArgs', async (args, src) => { | ||
return { ...args, ...src }; | ||
})(input.arguments, input.source); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
/* eslint-disable */ | ||
|
||
export const AllTypesProps: Record<string,any> = { | ||
export const AllTypesProps: Record<string, any> = {}; | ||
|
||
} | ||
|
||
export const ReturnTypes: Record<string,any> = { | ||
Query:{ | ||
pipe:"Query", | ||
passSource:"Query" | ||
} | ||
} | ||
export const ReturnTypes: Record<string, any> = { | ||
Query: { | ||
pipe: 'Query', | ||
passSource: 'Query', | ||
passSourceWithArgs: 'Query', | ||
}, | ||
}; | ||
|
||
export const Ops = { | ||
query: "Query" as const | ||
} | ||
query: 'Query' as const, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
{ | ||
"resolvers": { | ||
"Query.pipe": { | ||
"name": "Pipe resolver", | ||
"description": "Pass the resolver and go furhter", | ||
"resolve": { | ||
"name": "Query.pipe.handler" | ||
} | ||
}, | ||
"Query.passSource": { | ||
"name": "Pass the source resolver", | ||
"description": "Pass the resolver and go furhter. Pass the source to the next resolver", | ||
"resolve": { | ||
"name": "Query.passSource.handler" | ||
} | ||
} | ||
"resolvers": { | ||
"Query.pipe": { | ||
"name": "Pipe resolver", | ||
"description": "Pass the resolver and go furhter", | ||
"resolve": { | ||
"name": "Query.pipe.handler" | ||
} | ||
}, | ||
"Query.passSource": { | ||
"name": "Pass the source resolver", | ||
"description": "Pass the resolver and go furhter. Pass the source to the next resolver", | ||
"resolve": { | ||
"name": "Query.passSource.handler" | ||
} | ||
}, | ||
"Query.passSourceWithArgs": { | ||
"name": "Pass the source resolver", | ||
"description": "Pass the resolver and go furhter. Pass the source and arguments to the next resolver", | ||
"resolve": { | ||
"name": "Query.passSourceWithArgs.handler" | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.