relay-runtime
Version:
A core runtime for building GraphQL-driven applications.
21 lines (17 loc) • 618 B
TypeScript
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import { ReaderPaginationMetadata } from './ReaderNode';
import { Variables } from './RelayRuntimeTypes';
export type Direction = 'forward' | 'backward';
export default function getPaginationVariables(
direction: Direction,
count: number,
cursor: string | null | undefined,
baseVariables: Variables,
extraVariables: Variables,
paginationMetadata: ReaderPaginationMetadata,
): { [key: string]: any };