DEV Community

loading...

NestedModel in Google Firestore - FireO

axeemhaider profile image Azeem Haider ・1 min read

FireO allow you to create NestedModel Model inside another model.

Usage Example:

class User(Model):
    name = TextField()


class Student(Model):
    address = TextField()
    user = NestedModel(User)


u = User(name='Nested_Model')

s = Student(address="Student_address")
s.user = u
s.save()

Read More NestedModel

Give some good feedback to FireO

Discussion (0)

pic
Editor guide