All rules follow the PocketBase filter syntax and operators .

(showFiltersInfo = !showFiltersInfo)} > {showFiltersInfo ? "Hide available fields" : "Show available fields"}
{#if showFiltersInfo}

The following record fields are available:

id created updated {#each collection.schema as field} {#if field.type === "relation" || field.type === "user"} {field.name}.* {:else} {field.name} {/if} {/each}

The request fields could be accessed with the special @request filter:

@request.method @request.query.* @request.data.* @request.user.*

You could also add constraints and query other collections using the @collection filter:

@collection.ANY_COLLECTION_NAME.*

Example rule:
@request.user.id!=null && created>"2022-01-01 00:00:00"

{/if}
{#if isRuleComponentLoading}
{:else} {#each Object.entries(ruleProps) as [prop, label] (prop)}
{#if isAdminOnly(collection[prop])} {:else} {/if}
{#if isAdminOnly(collection[prop])} Only admins will be able to access (unlock to change) {:else} Leave empty to grant everyone access {/if}
{/each} {/if}