Skip to content

Instantly share code, notes, and snippets.

View andreyobrezkov's full-sized avatar

Andrey Obrezkov andreyobrezkov

  • Axinom
  • Tallinn
  • 08:15 (UTC +03:00)
View GitHub Profile
declare global {
namespace GraphileBuild {
interface PgCodecTags {
// This enables TypeScript autocomplete for our @group smart tag
group?: string | string[];
}
interface Inflection {
// Our inflector to pick the name of the grouped type, e.g. `User` table
// type, and `address` group might produce `UserAddress` grouped type name
groupedTypeName(details: {