Connectors with Admin-Only Access
Create sets of reusable operations that are not accessible from client applications but can be called from server code or manually in the Firebase Console.
Happy to announce that we now support generated Admin SDKs for Node.js and along with it admin-only operations within your connectors!
Check out the documentation for more: https://firebase.google.com/docs/data-connect/generate-admin-sdk#generate-admin-sdk
-
Stephen Rosa commented
We're happy to announce that with the recent release of firebase-admin v13.6.0 and firebase-tools v14.24.0, Firebase Data Connect now features a Generated Admin SDK :)
Note: this is different from an "Admin-ONLY" Connector - this feature does NOT allow you to write operations that are by default only accessible from server applications and not client applications - rather, this enables you to generate operation functions which use the Node Admin SDK, rather then the Firebase JS SDK, based on the GQL operations defined in your connectors - just like the existing Generated Client SDK.
You can check out our new documentation ( https://firebase.google.com/docs/data-connect/admin-sdk#manage_data_with_generated_sdks ) to learn how to enable generation of operation functions for your Generated Admin SDK the same way you do for your client SDK - just be sure to update your packages to the latest versions!
-
Paul Noh commented
I want to keep all queries and mutations contained within my Dataconnect project. Currently, using gql strings causes the code to be scattered in multiple functions outside the project.
-
SONKENG MBOGNING commented
I think this is the way to go!
It would be great to be able to directly leverage the auto-generating sdks instead of relying on gql strings...