Skip to content

Instantly share code, notes, and snippets.

View diegomais's full-sized avatar
💭
The only way to go fast, is to go well.

Diego Mais diegomais

💭
The only way to go fast, is to go well.
View GitHub Profile
@diegomais
diegomais / cursorPagination.ts
Created November 17, 2022 14:05 — forked from VojtaSim/cursorPagination.ts
TypeORM + TypeGraphQL cursor pagination
import { ObjectType, Field, ClassType, Int, ArgsType } from 'type-graphql';
import { SelectQueryBuilder } from 'typeorm';
import Cursor, { TCursor } from 'scalar/cursor';
@ArgsType()
export class CursorPaginationArgs {
@Field({ nullable: true })
after?: TCursor;
@diegomais
diegomais / .gitconfig
Last active February 20, 2023 20:47
Set Git global options
[color]
ui = true
[color "branch"]
current = white
remote = red
[color "diff"]
meta = yellow
old = red
new = green
[color "status"]