1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Refs and Get in FaunaDB

    faunadbFaunaDB

    When working with FQL it's often the case that you'll encounter Refs. Refs don't have any fields on them though! So how do we access the fields? Get.

    Collections()
    Collection("customers")
    Ref(Collection("customers"), "244075679454331401")
    Get(Ref(Collection("customers"), "244075679454331401"))
    Get(Collection("customers"))