Skip to content

Instantly share code, notes, and snippets.

View dlvx's full-sized avatar

José Del Valle dlvx

View GitHub Profile
@dlvx
dlvx / Nest - ResolveField
Created June 11, 2021 17:03
ResolveField in NestJS with Mongoose's populate
@ResolveField()
async parameters(
@Parent() filter: FilterDocument,
@Args('populate') populate: boolean,
) {
if (populate)
await filter
.populate({ path: 'parameters', model: Parameter.name })
.execPopulate();
@dlvx
dlvx / carbrands.json
Created September 7, 2022 13:47 — forked from pimatco/carbrands.json
All Car Brands in the world in JSON
[{
"name": "AC"
}, {
"name": "AC PROPULSION"
}, {
"name": "ACURA"
}, {
"name": "A.D. TRAMONTANA"
}, {
"name": "ALFA ROMEO"