UNPKG

graphql-fields-projection-v2

Version:

- [Why using this?](#why-using-this) - [Install](#install) - [How to](#how-to) - [Example 1: simplest usecase](#example-1-simplest-usecase) - [Example 2: Get more fields](#example-2-get-more-fields) - [Example 3: Get child path](#example-3-get-child

17 lines (16 loc) 566 B
/** * Remove Path Collision from input fields * * @param {string[]} fields input fields * @param {string} [returnType='array'] must be either: string, array, or object. Default: array * @returns fields projection */ export function removePathCollision(fields?: string[], returnType?: string): any; /** * * create the return value * @param {string[]} fields input fields * @param {string} [returnType='array'] must be either: string, array, or object. Default: array * @returns */ export function createResult(fields: string[], returnType?: string): any;