GitHub

daffBuildFragmentNameSpread

Builds a string of fragment names that can be interpolated into a GraphQL query. Each name is separated by a newline character: '\n'. If an empty array is passed, an empty string is returned. Only the first fragment name from each passed fragment is returned.

import { daffBuildFragmentNameSpread } from '@daffodil/core/graphql'
const daffBuildFragmentNameSpread: (...fragments: any[]) => string