import { daffBuildFragmentNameSpread } from '@daffodil/core/graphql'
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.
function daffBuildFragmentNameSpread(...fragments: any[]): string
| Parameter | fragments: any[] |
|---|---|
| Description | A list of GraphQL documents that contain fragments. |