10000 Using ElectroDB with multiple tables · tywalch electrodb · Discussion #465 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Using ElectroDB with multiple tables #465

Answered by tywalch
cwoolum asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @cwoolum 👋

You can target any table by supplying the table name in the entity config or in the execution options (e.g. .go({table: 'my-table})). If your model has a separate table per entity, there are no problems there; just know that collection queries assume entity members exist in the same table. Let me know if you run into any hiccups, I can offer suggestions and/or point out the options you have to do what you need.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cwoolum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0