UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

9 lines (8 loc) 379 B
import { isObject } from '../../../../utils/validation/isObject.js'; import { $IS_EXTENSION } from './isExtension.js'; export const $GET = Symbol('$GET'); export const $get = (reference, fallback) => ({ [$IS_EXTENSION]: true, [$GET]: (fallback === undefined ? [reference] : [reference, fallback]) }); export const isGetting = (input) => isObject(input) && $GET in input;