API Reference rivet v2.5.2

View Source

Modules

This project is still a "Work in Progress" and not ready for GA

Optional configurations can be specified as opts, or in the app environment under the key :rivet

For data models using Ecto. Options:

id_type: :uuid, :intid, :none — how to handle record ID features: [:short_id] — enable/disable ShortId required: [:field, ...] — list of fields required for this model update: [:field, ...] — list of fields allowed to be updated on this model create: [:field, ...] — list of additional fields allowed only on creation.

For data models using Ecto.

Helper functions for Absinthe resolvers.

Rivet Templates. Structure

Reads Rivet Template high-level structure. See Rivet.Template for more info.

Mix Tasks

Prints Rivet tasks and their information.

Initialize a Rivets project. For full syntax try: mix rivet help

Commit Rivet Migrations. For full syntax try: mix rivet help

Create a new Rivet Model or Model Migration. For full syntax try: mix rivet help