Classes

@system-inc/base-foundation · 515c140 · 16 symbols

Members

View source ↗

implements ColumnFilterInput

Members

  • column: string

  • operator: ColumnFilterConditionOperator

  • value: Json

View source ↗

implements MediaObject

Members

  • type: MediaObjectType

  • url: string

  • variant: string | null

View source ↗

Context for a GraphQL operation, including the operation type, name, and selection set.

Members

  • name: string

    The operation name.

  • selectionSet: Readonly<GqlSelectionSet<K>>

    The selection set.

  • type: "query" | "mutation"

    The operation type.

View source ↗

Orm (Drizzle) counterpart of GqlBaseEntity: exposes the base entity's id and createdAt columns as GraphQL fields.

extends OrmBaseEntity

Members

  • createdAt: Date

  • id: string

  • clone(): T

  • getChangedFields(): OrmPartialEntity<this>

  • toJSON(options?: { strict?: boolean }): Dictionary<unknown>

  • static from(this: () => T, data: OrmPartialEntity<T>): T

    Create a new instance of the entity with the given data.

View source ↗

Orm (Drizzle) counterpart of GqlMutableBaseEntity: adds the updatedAt column and exposes it as a GraphQL field. updatedAt is initialized to the same instant as createdAt on insert, then bumped on every update — see hasBeenUpdated.

extends GqlOrmBaseEntity

Members

  • createdAt: Date

  • id: string

  • updatedAt: Date

  • hasBeenUpdated: boolean

    Whether this row has been updated since it was created.

    updatedAt is initialized to the same instant as createdAt on insert, then bumped on every update — so the row has never been updated exactly when updatedAt === createdAt. (This replaces the old "updatedAt is null" sentinel, which couldn't work on backends where the column is NOT NULL.)

  • clone(): T

  • getChangedFields(): OrmPartialEntity<this>

  • toJSON(options?: { strict?: boolean }): Dictionary<unknown>

  • static from(this: () => T, data: OrmPartialEntity<T>): T

    Create a new instance of the entity with the given data.

View source ↗

An implementation of the GqlServerProvider using GraphQL Yoga. https://the-guild.dev/graphql/yoga-server/docs

implements GqlServerProvider

Members

View source ↗

Members

  • message?: string

  • success: boolean

View source ↗

implements OrderByInput

Members

  • direction?: OrderByDirection

  • key: string

View source ↗

Members

  • itemIndex: number

  • itemIndexForNextPage?: number

  • itemIndexForPreviousPage?: number

  • itemsPerPage: number

  • itemsTotal: number

  • page: number

  • pagesTotal: number

View source ↗

Plain pagination: page size and index, nothing else. The bare type deliberately exposes NO filters/orderBy fields in the schema — client-driven filtering and ordering are opt-in per operation via a @PaginationInputFor subclass, which re-registers those fields typed with the operation's allowed columns. The properties still exist on the class (untyped, schema-invisible) so subclasses inherit them and server-side code can build pagination programmatically.

implements PaginationInput

Members

View source ↗

Members

View source ↗

Members

  • description?: string

  • status: string

  • timestamp: Date

View source ↗

Members

View source ↗

Members

  • count: number

  • key: string

View source ↗

Members

  • endAtUtc: Date

  • interval: TimeInterval

  • limit?: number

  • offset?: number

  • startAtUtc: Date

  • timeZone?: string

View source ↗