James Kirkby
02/24/2025, 12:49 PMawait client.collections().create({
name: 'products',
fields: [
{ name: '.*', type: 'auto' as const },
{ name: 'position', type: 'int32', sort: true },
{ name: 'model', type: 'string', facet: true, infix: true, },
],
default_sorting_field: "position",
token_separators: ["®"],
});
fields
are trimmed down for brevity