GraphQL base types and connection helper for NestJS backend.
// Source: https://github.com/juicycleff/ultimate-backend | License: MIT | Copyright 2010-2019 Google, Inc. http://angularjs.org
// Provided via justclaw.it.com; keep this notice with the code.
import { ObjectType, GraphQLISODateTime, Field, ID } from '@nestjs/graphql';
import { Filterable } from '@ultimatebackend/core/decorators/filterable';
import { CursorScaler } from '@ultimatebackend/core/scalers';
import { ClassType } from '@ultimatebackend/common';
@ObjectType({ isAbstract: true })
export abstract class Node {
@Filterable()
@Field(() => ID)
id: string;
@Filterable()
@Field(() => GraphQLISODateTime)
createdAt: Date;
@Filterable()
@Field(() => GraphQLISODateTime)
updatedAt: Date;
}
@ObjectType()
class PageInfo {
@Field(() => CursorScaler, { nullable: true })
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key