Skip to content

getCRUDForTo

Overview

Get the route configuration for a CRUD operation.

Signature

getCRUDForTo(params)

Parameters

NameTypeRequiredDescription
paramsobjectyesThe parameters.

params Properties

NameTypeRequiredDefaultDescription
appstringThe app name.
modelstringThe model name.
pkstring | string[]The primary key.
throwOnUndefinedPkbooleanWhether to throw an error if pk is undefined.
viewstringThe view name.

Returns

Promise

The route configuration.

Throws

  • If parentPk or pk is required but not provided.

Source

client/lib/router/getCrud.js:26

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2