View Source Dagger.ObjectTypeDef (dagger v0.15.1)

A definition of a custom object defined in a Module.

Summary

Functions

The function used to construct new instances of this object, if any

The doc string for the object, if any.

Static fields defined on this object, if any.

Functions defined on this object, if any.

A unique identifier for this ObjectTypeDef.

The name of the object.

The location of this object declaration.

If this ObjectTypeDef is associated with a Module, the name of the module. Unset otherwise.

Types

t()

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

Functions

constructor(object_type_def)

@spec constructor(t()) :: Dagger.Function.t() | nil

The function used to construct new instances of this object, if any

description(object_type_def)

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

The doc string for the object, if any.

fields(object_type_def)

@spec fields(t()) :: {:ok, [Dagger.FieldTypeDef.t()]} | {:error, term()}

Static fields defined on this object, if any.

functions(object_type_def)

@spec functions(t()) :: {:ok, [Dagger.Function.t()]} | {:error, term()}

Functions defined on this object, if any.

id(object_type_def)

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

A unique identifier for this ObjectTypeDef.

name(object_type_def)

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

The name of the object.

source_map(object_type_def)

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

The location of this object declaration.

source_module_name(object_type_def)

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

If this ObjectTypeDef is associated with a Module, the name of the module. Unset otherwise.