-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Polling * Go * chore(dependencies): updated changesets for modified dependencies * Readonly * Go * chore(dependencies): updated changesets for modified dependencies --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1368259
commit 4fac014
Showing
14 changed files
with
207 additions
and
103 deletions.
There are no files selected for viewing
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,10 @@ | ||
--- | ||
'@graphql-mesh/merger-bare': patch | ||
'@graphql-mesh/config': patch | ||
'@graphql-mesh/store': patch | ||
'@graphql-mesh/types': patch | ||
'@graphql-mesh/http': patch | ||
'@graphql-mesh/cli': patch | ||
--- | ||
|
||
Implement polling |
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 |
---|---|---|
|
@@ -9,3 +9,5 @@ sources: | |
|
||
documents: | ||
- get-customers.query.graphql | ||
|
||
pollingInterval: 10000 |
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,9 +1,11 @@ | ||
query GetCustomers { | ||
getCustomers { | ||
data { | ||
id | ||
name | ||
GetCustomers { | ||
... on CustomerResourceCustomerList { | ||
data { | ||
id | ||
name | ||
} | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const terminateEvents = ['SIGINT', 'SIGTERM'] as const; | ||
type TerminateEvents = (typeof terminateEvents)[number]; | ||
type TerminateHandler = (eventName: TerminateEvents) => void; | ||
const terminateHandlers = new Set<TerminateHandler>(); | ||
for (const eventName of terminateEvents) { | ||
process.once(eventName, () => { | ||
for (const handler of terminateHandlers) { | ||
handler(eventName); | ||
terminateHandlers.delete(handler); | ||
} | ||
}); | ||
} | ||
|
||
export function registerTerminateHandler(callback: TerminateHandler) { | ||
terminateHandlers.add(callback); | ||
return () => { | ||
terminateHandlers.delete(callback); | ||
}; | ||
} |
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
Oops, something went wrong.