import { collections } from '$lib/server/db'; | |
import type { PageServerLoad } from './types'; | |
export const load: PageServerLoad = async () => { | |
return { | |
photos: await collections.pictures.find({ productId: { $exists: false } }).toArray() | |
}; | |
}; | |
import { collections } from '$lib/server/db'; | |
import type { PageServerLoad } from './types'; | |
export const load: PageServerLoad = async () => { | |
return { | |
photos: await collections.pictures.find({ productId: { $exists: false } }).toArray() | |
}; | |
}; | |