Skip to content

Instantly share code, notes, and snippets.

View jpwesselink's full-sized avatar
🏠
Inventing a better mouse trap

JP Wesselink jpwesselink

🏠
Inventing a better mouse trap
View GitHub Profile
@jpwesselink
jpwesselink / machine.js
Created November 8, 2019 13:24
Generated by XState Viz: https://xstate.js.org/viz
const connectionCheckerMachine = Machine({
id: 'light',
initial: 'green',
states: {
green: {
on: {
TIMER: 'yellow',
WHATEVER: 'red'
}
@jpwesselink
jpwesselink / machine.js
Last active November 10, 2019 13:20
Generated by XState Viz: https://xstate.js.org/viz
const connectionCheckerMachine = Machine({
id: 'networkConnection',
initial: 'offline',
states: {
offline: {
after: {
3000: 'connecting'
@jpwesselink
jpwesselink / machine.js
Created December 6, 2019 14:06
Generated by XState Viz: https://xstate.js.org/viz
const checkWifiCredentials = (context) => {
const { wifi: { ssid, password, encryptionType, hidden } } = context;
return !!ssid && !!password && !!encryptionType && hidden !== undefined;
};
const checkAccessToken = (context) => {
return !!context.accessToken;
};
const checkCredentials = (context, event, { cond }) => {
return ((checkWifiCredentials(context) && checkAccessToken(context)) ===
!cond.negate);

Graphql federation with ...

  • Status: proposed
  • Date: 2022-10-12

Technical Story:

How to stitch multiple graphql/rest/grpc services into one graphql schema?

Decision Drivers