import { freeze } from '../util/object-utils.js' ; import { OperationNode } from './operation-node.js' ; import { ValueNode } from './value-node.js' ; export interface LimitNode extends OperationNode { readonly kind : 'LimitNode' ; readonly limit : ValueNode ; } internal export const LimitNode = freeze ( { is ( node ) { return node . kind === 'LimitNode' ; } , create ( limit ) { return freeze ( { kind : 'LimitNode' , limit : ValueNode . create ( limit ) , } ) ; } , } ) ;