8 months ago
Whenever I try to make an edit or delete a document, it just says this error at the top. I have changed the default _id to be my own, but it says integers to so I’m confused.
18 Replies
Also I’m doing this on mobile, which shouldn’t change anything. The mobile ui could also use some work
8 months ago
if it’s meant to be an integer, shouldn’t it not be wrapped in quotes?
But still shouldn’t it not matter because if it lets me do it in the first place and edit it like that (with code ofc) why would it not work on the website
8 months ago
I’m not sure what you mean
8 months ago
Are you saying this because you got an error? the error is pretty clear as to what the issue is. Remove the quotes and it should work
Yea but I’m just wondering if I can update it without error in my code, shouldn’t it be the same on the website
8 months ago
You should be using a proper database client to edit database values instead of Railway’s dashboard, that’s all I can really say here. Your input was incorrect, Railway detected the problem and gave you a solution. I’m not sure what your issue could be here
Here’s a example
await collection.updateOne( { _id: the id }, { $set: { time: the time } } )
This works in code but not on dashboard
I don’t use the dashboard so I was just confused why it diddnt work when all of my code has. If this is intended than that’s fine I guess but
8 months ago
If you have feedback for how the dashboard should function then please open a feedback thread. Otherwise, my advice is to use a proper database client or adhere to the restrictions on Railway’s dashboard
8 months ago
!s
Status changed to Solved adam • 8 months ago