Playground

Change the field definitions, build a rule, then evaluate it as the client or as the server and watch the skip policies do their work.

—

Configuration

Edit either box and press Rebuild editor. Invalid JSON is reported rather than applied, and the current rule is preserved where it still makes sense.

Document

—

SQL

What the rule becomes after WHERE. Each field's column supplies the SQL name, so it need not match the name in the document.

—
Generate this on the server. A document that arrived from a browser is untrusted input; build the SQL from the document with the PHP or JavaScript builder, and never execute SQL a client sent you.