faunadb ref

JavaScript
q.Ref( q.Collection('name'), id )
Source

Also in JavaScript: