+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "guessFieldTypeFromNameAndValue"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## guessFieldTypeFromNameAndValue() function

### guessFieldTypeFromNameAndValue() function

Given a name and value, this will pick a reasonable field type

<b>Signature</b>

```typescript
export declare function guessFieldTypeFromNameAndValue(name: string, v: any): FieldType;
```
<b>Import</b>

```typescript
import { guessFieldTypeFromNameAndValue } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  name | <code>string</code> |  |
|  v | <code>any</code> |  |

<b>Returns:</b>

`FieldType`

