chore: add comments to standalone script

This commit is contained in:
Elliot DeNolf 2024-04-23 12:02:04 -04:00
parent 73e8fb60b5
commit 6e3dc91fad

View File

@ -1,3 +1,8 @@
/**
* This is an example of a standalone script that loads in the Payload config
* and uses the Payload Local API to query the database.
*/
import { getPayload } from 'payload' import { getPayload } from 'payload'
import { importConfig } from 'payload/node' import { importConfig } from 'payload/node'
import 'dotenv/config' import 'dotenv/config'