Skip to content
Discussion options

You must be logged in to vote

Hey @jairiza, you could use the Derivative field type to achieve this. Derivative fields have access to parameters that can access your data on Firestore (check out our docs to know more: https://docs.rowy.io/field-types/derivative#api).

The following code snippet demonstrates fetching data from a "users" collection in your Firestore database.

const derivative = async ({ rrow, ref, db, storage, auth }) => {
  // Get user doc
  const userDoc = await db.collection("users").doc(row.uid).get(); // matches the uid column in this table to the Document ID in users collection
  return userDoc.get("email");
};

export default derivative;

To know more about setting custom Document IDs, check: http…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BeeBombshell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants