gatsby-source-prismic
Version:
Gatsby source plugin for building websites using Prismic as a data source
17 lines (14 loc) • 483 B
text/typescript
import * as RTE from "fp-ts/ReaderTaskEither";
import { FieldConfigCreator } from "../types";
/**
* Builds a GraphQL field configuration object for a Number Custom Type field.
* The resulting configuration object can be used in a GraphQL type.
*
* This function registers a typepath for the field.
*
* @param path - Path to the field.
*
* @returns GraphQL field configuration object.
*/
export const buildNumberFieldConfig: FieldConfigCreator = () =>
RTE.right("Float");