/
githubmirror
/
pocketbase
Обзор
Документация
Войти
/
githubmirror
/
pocketbase
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
ui/src/apiPreview/fieldsInfo.js
25 строк
1008 B
Gani Georgiev
merge newui branch
18 апр 2026, 16:50
18 апр 2026, 16:50
4c44044
Код
Авторство
О чём код?
export function fieldsInfo() { return t.div( { className: "api-fields-info" }, t.p( null, "Comma separated string of the fields to return in the JSON response (by default returns all fields). For example:", ), app.components.codeBlock({ value: `// return all root level fields and only\n// "relField.someField" from expand\n?fields=*,expand.relField.someField`, }), t.p(null, "Use ", t.code(null, "*"), " to target all keys from the specific depth level."), t.p(null, "In addition, the following field modifiers are also supported:"), t.ul( null, t.li( null, t.code(null, ":excerpt(maxLength, withEllipsis?)"), t.br(), "Returns a short plain text version of the field string value. Ex.: ", t.code(null, "?fields=*,someTextField:excerpt(200,true)"), ), ), ); }