Firebase cloud firestore random query with specific user ID (Flutter)

Asked

Viewed 60 times

-2

I’m trying to randomly pull my data from the firestore cloud but I’m not getting it, does anyone know how to do it using ID?

getQustoes(String simuladoId) async{
  return await FirebaseFirestore.instance
      .collection("Simulado")
      .doc(simuladoId)
      .collection("QNA")
      .orderBy("id")
      .get();

}

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.