This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\GraphQL\Scalars; | |
| use Carbon\Carbon; | |
| use GraphQL\Error\Error; | |
| use GraphQL\Error\InvariantViolation; | |
| use Nuwave\Lighthouse\Schema\Types\Scalars\DateTime; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
OlderNewer