Railway’s mongodb interface won’t let me delete or edit documents
peacocksir
HOBBYOP

7 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.

Solved

18 Replies

peacocksir
HOBBYOP

7 months ago

b6a98aa2-1b73-4ace-bd6f-938ee3488910


peacocksir
HOBBYOP

7 months ago

Also I’m doing this on mobile, which shouldn’t change anything. The mobile ui could also use some work


adam
MODERATOR

7 months ago

if it’s meant to be an integer, shouldn’t it not be wrapped in quotes?


peacocksir
HOBBYOP

7 months ago

Oh that’s a good point


peacocksir
HOBBYOP

7 months ago

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


adam
MODERATOR

7 months ago

I’m not sure what you mean


peacocksir
HOBBYOP

7 months ago

Like


peacocksir
HOBBYOP

7 months ago

I was able to add that document with the code


peacocksir
HOBBYOP

7 months ago

I can delete it, update it and do anything in the code


peacocksir
HOBBYOP

7 months ago

So why not on the dashboard as well?


adam
MODERATOR

7 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


peacocksir
HOBBYOP

7 months ago

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


adam
MODERATOR

7 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


peacocksir
HOBBYOP

7 months ago

Here’s a example

await collection.updateOne( { _id: the id }, { $set: { time: the time } } )

This works in code but not on dashboard


peacocksir
HOBBYOP

7 months ago

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


adam
MODERATOR

7 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


peacocksir
HOBBYOP

7 months ago

Ok thank you


adam
MODERATOR

7 months ago

!s


Status changed to Solved adam 7 months ago


Loading...