Manually creating document in Cosmos DB collection - azure-cosmosdb

I want to manually create a document in my Cosmos DB collection but "Create" option in Document Explorer is disabled -- see below. I used to be able to do this.
How do we create documents manually now?

#Sam: looks like you're seeing the old version of the Data Explorer. Try cleaning browser cache or logging in to the portal with another browser. You should see "New Document" button when you click on your documents collection in Data Explorer.

Related

How to fix firebase index issue?

While launching the react native expo app,got this prompt.
The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/production-a9404/firestore/indexes?create_composite=Ck5wcm9qZWN0cy9wcm9kdWN0aW9uLWE5NDA0L2RhdGFiYXNlcy8oZGVmYXVsdCkvY29sbGVjdGlvbkdyb3Vwcy9jb2lucy9pbmRleGVzL18QARoMCghhdXRob3JJRBABGg0KCWNyZWF0ZWRBdBACGgwKCF9fbmFtZV9fEAI
When I clicked, the google console showing error as below.
But, this one worked earlier for a different collection and when trying for a new collection, getting this.
Please suggest.
It looks like you're signed in with an account that doesn't have permission to read or create indexes.
You should open the link from a user account that does have those permissions. When you do that, you'll see a screen that has all information prepopulated, and you can create the index with a single click (and some patience).

did firebase console drop support for opening a specific firestore document via URL?

Previously it was possible to open URLs in the firebase console like this:
https://console.firebase.google.com/u/0/project/lyour-project-id/firestore/data~2Fusers~2FuserID
this would open the firestore collection users and the user with id userID. Since a few days I noticed that this behavior is no longer supported. Is there a way around that?
In backend admin panels this is a very nice feature, I usually link all documents directly like that for fast access.
firebaser here
I don't think this was intentionally changed, or at least I'm not aware of such a change.
If you can reproduce this consistently, please file a bug report with the support team so that they can investigate.

appmaker Cloud SQL works in preview but not when published with same user

My first real app, clearly missing something. Everything works in preview but when I publish > replace existing deployment > open app when done, the published app loads and like a button click to another page works but no data loads on any page. I'm in as the same user so am at a loss for what to try next. Thanks in advance for any help.
Update: Set the Security on the SQL Data Models to Everyone. Same result.
Resolved: The SQL data tables were empty. The first Publish of a new Deployment creates new empty copy of the database.

How do you add a NODE to your database root in the Firebase Realtime Database Console?

The Console ONLY allows you to add a CHILD to the root. You cannot add a NODE in the Windows Console or in the Chrome Console.
So, if I got the question right, the following is desired:
/db-root
/newly-added-node-1
/newly-added-node-2
...
Had the same problem recently. There was also such a warning in the Firebase database console section:
Read-only & non-realtime mode activated to improve browser performance. Select a key with fewer records to edit or view in realtime.
If this is the case, you can simply add a node through the URL string. So, just visit:
http://console.firebase.google.com/project/${project-id}/database/${db-root}/data/${new-node-name}
And you'll be able to add data to the new node.
Hope this helps. Cheers!

How do I delete a database from Firebase?

This must be staring me in the face, but don't see the command. How do I delete an unused Firebase DB from the Console in the new Firebase? And Google did not help with an answer, which is kind of a first.
Another way if you don't want to delete the project, and just the database, is to create a file on your computer empty.json like this:
{}
Then click on the ... and "Import JSON"
Then "Browse" and upload your empty file:
You overwrite your database with an empty JSON file, effectively "deleting" the old database.
THIS DELETES THE ENTIRE PROJECT
To delete ONLY the database just delete the top level object/node.
Click on your project (the white box below, hiding name):
Then click on gear (settings) icon and click "Project Settings":
Scroll to bottom and click "DELETE PROJECT":
It's currently not possible to delete other Realtime Database instances created via Firebase Console.
They do have plans for adding the feature,but It'll come in the future.
For now, you can watch their updates here:
https://firebase.googleblog.com
https://firebase.google.com/support/releases
Their support suggested me to wipe all data and to lock down the database to prevent any usage, as a work-around for now.
Just remembering that having multiple instance is only possible if you have a Blaze account.
Looks like Google recently introduced this feature to delete a Firebase RTDB. To delete this (after we raised this concern with Google Firebase team on Firebase RoadShow India 😃).
To do this, follow these steps:
Go to your Firebase RTDB which you want to delete
Delete all your data from the database
Select the 3 dots on the top right corner
Hit the "Disable Database" button
After the database is disabled, hit that 3 dots again and click "Delete Database"
Cheers!
If the dots method doesn't work then here's another option-
Open the project you want to delete.
Go to setting (on the left side of the page|near Project Overview).
Select project settings.
You'll find delete project option at the end of that page (below app config).
Then you'll be asked things about the policy of deleting the project and your preference and stuff... you can answer accordingly.

Resources