View Source Rivet.Ecto.Collection (rivet v1.0.0)

For data models using Ecto. Options:

short_id: false — enable/disable ShortId (not supported yet) 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.

                      unlike the other fields, whatever is provided is
                      concatenated to required and update. This defaults
                      to `[:id]`, so specify it as `[]` for no additional
                      create fields.

foreign_keys: [:field, ...] - list of foreign key constraints (if any) unique: [:field, ...] — list of unique constraints (if any)

Note: fk and unique may also be tuple: {:key, [keyword-list options]}

Link to this section Summary

Link to this section Functions

Link to this function

enrich_query_args(query, args)

View Source