Skip to content

Instantly share code, notes, and snippets.

View joselfonseca's full-sized avatar
💭
I may be slow to respond.

Jose Luis Fonseca joselfonseca

💭
I may be slow to respond.
View GitHub Profile
@joselfonseca
joselfonseca / DateTimeIso.php
Created March 16, 2020 15:06
Data time ISO GraphQL Sacalar
<?php
namespace App\GraphQL\Scalars;
use Carbon\Carbon;
use GraphQL\Error\Error;
use GraphQL\Error\InvariantViolation;
use Nuwave\Lighthouse\Schema\Types\Scalars\DateTime;
/**
@joselfonseca
joselfonseca / handler.ts
Created October 8, 2025 15:00
DevOps Code for Eventim challenge
// file: lambda/handler.ts
import { MongoClient } from "mongodb";
const MONGO_URI = process.env.MONGO_URI;
if (!MONGO_URI) {
throw new Error("MONGO_URI environment variable is not set");
}
let client: MongoClient;