GitHub

daffBuildFragmentDefinition

Helper

import { daffBuildFragmentDefinition } from '@daffodil/core/graphql'

Builds a string of fragment definitions that can be interpolated into a GraphQL query. Each definition is separated by a newline character: '\n'.

function daffBuildFragmentDefinition(...documents: any[]): string

Parameters

Parameterdocuments: any[]
Description

A list of GraphQL documents that should only contain fragments.