Hi, for Typesense JOINs, must the reference field ...
# community-help
l
Hi, for Typesense JOINs, must the reference field be a string? Here is the example on the documentation:
Copy code
{
  "name": "author_id",
  "type": "string",
  "reference": "authors.id"
}
I am getting an error if I try to create a one-to-many reference using an integer type, such as something like this
Copy code
{
  "name": "author_id",
  "type": "int64",
  "reference": "authors.id"
}
When trying to reindex, the error says that the field must have a string value.
1
f
Could you share a reproducible example like this one? https://gist.github.com/jasonbosco/7c3432713216c378472f13e72246f46b
l
It's working now, thanks. Was trying to create the reproducible example using curl in terminal, and it worked. So I re-checked my code and updated it to match the syntax of the curl commands and it worked.