#How can I reference the id of a table from a different component?

1 messages · Page 1 of 1 (latest)

frank seal
#

How can I reference the id of a table from a different component when defining the schema for a component? For example, I want to use v.id('someOtherComponentTable')

digital obsidianBOT
#

Hi @frank seal. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

I'm sorry, but the knowledge sources do not contain explicit information about referencing the ID of a table from a different component when defining a schema for a Convex component (e.g., using v.id('someOtherComponentTable')).

The available documentation covers referencing IDs between tables within the same schema file and project, and how to use v.id("tablename") for relationships. However, it does not address cross-component table references or whether Convex supports referencing tables defined in other components directly in your schema definitions.

If you need to reference tables across components, you may need to consult the official Convex documentation or support channels for guidance, as this scenario is not covered in the provided sources.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: