Yes, I keep a collectionSchema (with the same stru...
# community-help
y
Yes, I keep a collectionSchema (with the same structure as Typesense is expecting from the create() function). Something along these lines (JS):
Copy code
export const FIELDS: CollectionSpec = [
  { name: "title", infix: true, type: "string" },
  { name: "pageTitle", infix: true, optional: true, type: "string" },
]