Skip to content

Instantly share code, notes, and snippets.

View andreyobrezkov's full-sized avatar

andreyobrezkov

  • Axinom
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: {