Documentation

Operators

Use operator subsets to control what each field accepts.

Operators describe how a field is compared or matched. Field helpers provide defaults, and callers can narrow operator sets when a field should only support specific URL shapes.

import { defineSchema, stringField } from '@plumile/filter-query';

const schema = defineSchema({
  title: stringField(['contains']),
});

Keep operator choices intentional. A smaller URL contract is easier to validate, document, and preserve over time.