View Source Qry.Repo behaviour (qry v0.4.1)

Defines a repository.

Summary

Types

@type args() :: any()
@type context() :: any()
@type fetch_result() :: {:ok, any()} | {:error, any()}
@type field() :: atom()
@type parent() :: any()

Callbacks

Link to this callback

fetch(field, args, context)

View Source
@callback fetch(field(), args(), context()) :: fetch_result()
Link to this callback

fetch(parent, field, args, context)

View Source
@callback fetch(parent(), field(), args(), context()) :: fetch_result()