using the javascript/typescript client: ```await c...
# community-help
j
using the javascript/typescript client:
Copy code
await 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