formatter
Internal library of helpers for formatting GraphQL values.
getFormattedDefaultValue()β
function getFormattedDefaultValue<T>(entity): Maybe<string | T>;
Defined in: packages/graphql/src/formatter.ts:126
Returns a printable formatted value for a GraphQL type. This is the generic function.
Type Parametersβ
Tβ
T
Parametersβ
entityβ
GraphQLSchemaEntity<T>
the GraphQL schema entity processed.
Returnsβ
Maybe<string | T>
a printable formatted value.