Back to Pocketbase

Function createViewFields

static/jsvm/functions/_app.createViewFields.html

latest930 B
Original Source

Function createViewFields

CreateViewFields creates a new FieldsList from the provided select query.

There are some caveats:

  • The select query must have an "id" column.
  • Wildcard ("*") columns are not supported to avoid accidentally leaking sensitive data.

NB! Be aware that this method is vulnerable to SQL injection and the "dangerousSelectQuery" argument must come only from trusted input!

Parameters

dangerousSelectQuery: string

Returns core.FieldsList

Settings

Member Visibility

  • Inherited

Theme

OSLightDark

Generated using TypeDoc