Skip to content

Instantly share code, notes, and snippets.

View Renaud009's full-sized avatar

Renaud Hébert-Legault Renaud009

  • CRIM
  • Montréal, QC, Canada
View GitHub Profile
@hellendag
hellendag / mergeResolvers.js
Last active November 20, 2023 19:16
Merge mocked GraphQL resolvers
// @flow
type ResolvedScalar = string | number | boolean | null;
type ResolvedValue =
| ResolvedScalar
| Array<ResolvedValue>
| {[key: string]: ResolvedValue};
type ResolverFunction = (...args: Array<any>) => ResolvedValue;
export type ResolverMap = {