ReferenceAsk
Remy Reference/admin/Test a mapper
?

Test a mapper

Runs the source's mapper against real objects and shows the documents, skips, and errors it would produce.
admin.dataSourceMappers.mapTest({ slug, store?, connector?, keys?, limit?, dev?, full? })

Runs the mapper over a sample of real objects and reports each outcome: the documents it emitted, what it passed through, what it skipped and why, and anything that threw. --dev tests the mapper as it stands in dev before deploying it, and --full shows the whole mapped body rather than a preview.

Parameters
--source
string
Corpus slug.
--store
name
A file store of objects to run against (with optional --prefix).
--connector
flag
Run against the source's connected bucket.
--keys
k1,k2,...
Specific object keys to test.
--dev
flag
Test the mapper as it stands in dev, before deploying it.
--full
flag
Show full mapped bodies rather than a preview.
CLI
remy-admin datasources map test --source news --connector --dev --limit 10