Data not being shown
Can't look at my data in dashboard, anyone know how to get around this?
42 Replies
Are you by any chance using the alpha release?
let me check, don't believe so though\
"convex": "^1.0.3",
this is the version in my project
Thanks for checking. This is definitely a new bug. We're digging in now.
Does your data by any chance have lots of different potential sub types for the same field?
no, i can send an example of the data though
This is 1/11 files uploaded to the big table
none of my other documents are working though except for the default 1 that shows when i click the data tab
I'm also getting a new error where this function is giving me an error
essentially it isn't letting me query 2 tables in 1 function
What does the error say when you hover over the
instances
instances and courses are both table names
@glucinater can you check the dashboard and see if it works? We pushed a potential fix
Not yet
can you do a hard refresh? CMD+SHIFT+R if you're on Mac?
no change
ok thanks for checking
we'll keep looking
any ideas on the second issue? This one's a hard blocker since I'm not able to even run the original query anymore
right, that's a confusing error for sure
Are you able to query
instances
from another query function?adding this temp schema seemed to fix it, a bit confused since it works without the define schema function
I thought schemas were optional? not sure why only defining some tables would lead to error
They are optional. I believe you hit a very specific bug for us on a change that we pushed out late last week.
Oh you probably need to do this and you should be fine: https://docs.convex.dev/database/schemas#stricttablenametypes-boolean
Schemas | Convex Developer Hub
Schema validation keeps your Convex data neat and tidy. It also gives you end-to-end TypeScript type safety!
If you're only defining some talbes and not others, we need to tell typescript that it shouldn't strictly enforce the table names in queries.
The dashbord being broken is still something we're looking at, but hopefully you're unblocked to continue developing for the time being.
Gotcha, any ideas on how to add indexes on a table wihout defining the entire schema?
If I can figure that out then i should be unblocked
So you don't have to define the fields at all. You can just say that the table body is
any
and can definte an index anyways.
Let me dig up an example for youlike this?
got this error
I believe you can just do this:
messages: defineTable(v.any()).index(…)
got no overload matches this call for v.any()
full error message
ah nvm
had brackets still there
Yea no brackets
@glucinater Confirming that this worked for you?
it seems so, about to test the indexes work
Great!
Thank you! Also while you're here I was trying to find how to do something similar to a sql join to return data from 2 tables, do you have any guidance?
It worked btw
Great to hear! You'll find the following post helpful for joins: https://stack.convex.dev/functional-relationships-helpers
Functional Relationships: Helpers
In this post, we’ll look at some helper functions to help write code to traverse relationships in a readable, predictable, and debuggable way.
The solutions to the parts of our new tutorial get into this as well: https://docs.convex.dev/tutorial/client#index-likes-by-message-id
2: Convex and your app | Convex Developer Hub
Learn how to connect your project to Convex and quickly build out new fullstack features
Awesome, appreciate it
Now fully unvlocked!
Perfect. Sorry to hear the dashboard is still broken. Folks will keep digging. But hopefully you can at least keep building your product. Good luck, and don't hesitate to create new support tickets if you have any other questions.
hi @glucinater, would you be able to try the dashboard again?
Working now, thanks for the quick fix!
no problems! we'd prefer an even quicker fix but saturday evenings aren't always the fastest of times 🙂 thanks for your patience
No worries, on an unrelated note were you at PennApps last year? I think we may have met if so
I was, it's great to have you on the platform!
Thanks, congrats on the recent 1.0 launch!