#What are these tables with * in Schema ?

45 messages · Page 1 of 1 (latest)

stoic crystal
#

How do i remove it ??

orchid imp
#

@stoic crystal that just means you have some tables defined in your schema and some aren't. The ones with asterisks aren't.

stoic crystal
#

sorry for not giving much context, im actually using convex ents for my schema,

orchid imp
#

You can remove the asterisk by defining the table in your schema.

stoic crystal
#

this is how it looks like

orchid imp
#

So you didn't mean to create organization and invitation tables right

stoic crystal
#

you see that invitation edge("organization"), this works

orchid imp
#

oohh...hmm

stoic crystal
#

but if i change it to organizations with s

#

i got this error

orchid imp
#

I'm still getting to know Ents, let me check the docs

stoic crystal
#

okay, hope that explains where does *organization

#

is coming from

whole gate
#

My guess is that something wrote into the table without s at the end. If it's the Ents framework it sounds like a bug. What happens if you delete the table (if you can), and rerun your code?

#

(the singular edge will not create a new table, that edge is stored on the document itself, in your case in a field called organizationId)

stoic crystal
#

so i comment out the code for invtiation schema

#

it didnt go away

#

now both invitation & invitations are marked with *

orchid imp
#

Maybe looking at the data in the invitation or organization table will give some clues

stoic crystal
#

they're empty

#

no data

orchid imp
#

have you tried deleting them and they keep showing back up? Otherwise I'd try deleting.

stoic crystal
#

yes, it still there

orchid imp
#

If you delete the table through the dashboard it doesn't delete?

stoic crystal
#

apparently it doesnt

orchid imp
#

Just trying to understand what's happening - what happens when you click delete table?

stoic crystal
#

my bad

#

you mean delete from dashboard

orchid imp
#

right

stoic crystal
#

i thought just comment out the schema code

#

okay i'll try

#

okay everything seems to work

orchid imp
#

cool cool

stoic crystal
#

i just thougth the table would automatically deleted if i deleted the code

#

lol

orchid imp
#

Guessing those were created by Ents while you were making changes to your schema

stoic crystal
#

but yeah how ents work with plural and singlular (with "s" and without) are weird

orchid imp
#

I don't believe it actually cares about singular or plural, that's just the recommended pattern

#

if that makes sense

#

Some relations require a dedicated table to track, and the table is named based on what you pass into .edge()/.edges(). So it's not like Ents is looking at your existing table name and then naming another table with the singular version of your table name. The names are all set by you.

#

At least I think they are, now that I'm reading the Ent schema docs more slowly I'm a little less sure lol

whole gate