mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-20 13:30:50 +02:00
merge newui branch
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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)"),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user