# 0296-functions-graphql-format-field-name

<!--
This file is auto-generated by scripts/functions/generate-function-docs.js.
Do not edit manually.
-->
---
title: graphql_format_field_name
docType: function
plugin: wp-graphql
---

# graphql_format_field_name

```php
graphql_format_field_name( $field_name ): string;
```

Formats the name of a field so that it plays nice with GraphiQL

- **Since:** 0.0.2
- **Source File:** `plugins/wp-graphql/access-functions.php`

## Parameters

- `$field_name` (`string`): Name of the field

## Return

- `string`: Name of the field

## Source

- [`plugins/wp-graphql/access-functions.php:45`](https://github.com/wp-graphql/wp-graphql/blob/main/plugins/wp-graphql/access-functions.php#L45)

```php
function graphql_format_field_name( $field_name ): string {
```