UNPKG

@nestjs/graphql

Version:

GraphQL for NestJS: code-first and schema-first APIs, resolvers as providers, subscriptions, federation and generated SDL, on Apollo or Mercurius.

10 lines (9 loc) • 130 B
export function isThrowing(func) { try { func(); return false; } catch { return true; } }