View Source Dagger.FieldTypeDef (dagger v0.14.0)

A definition of a field on a custom object defined in a Module.

A field on an object has a static value, as opposed to a function on an object whose value is computed by invoking code (and can accept arguments).

Summary

Functions

A doc string for the field, if any.

A unique identifier for this FieldTypeDef.

The name of the field in lowerCamelCase format.

The location of this field declaration.

The type of the field.

Types

@type t() :: %Dagger.FieldTypeDef{client: term(), query_builder: term()}

Functions

Link to this function

description(field_type_def)

View Source
@spec description(t()) :: {:ok, String.t()} | {:error, term()}

A doc string for the field, if any.

@spec id(t()) :: {:ok, Dagger.FieldTypeDefID.t()} | {:error, term()}

A unique identifier for this FieldTypeDef.

@spec name(t()) :: {:ok, String.t()} | {:error, term()}

The name of the field in lowerCamelCase format.

Link to this function

source_map(field_type_def)

View Source
@spec source_map(t()) :: Dagger.SourceMap.t()

The location of this field declaration.

Link to this function

type_def(field_type_def)

View Source
@spec type_def(t()) :: Dagger.TypeDef.t()

The type of the field.