My goal is to create a UDF for returning information about the logged in user. I am attempting to create a UDF of the form:
Lambda( Get(Identity()) )
Lambda is an expression invoking Get which requires a reference and returns the document I want. Identity returns a reference to the logged in user. In practice, this should work.
The problem is, in the FQL shell or when I’m trying to add this UDF function, that the identity function returns the error
Authentication does not contain an identity.
This error prevents me from saving the function and consequently also blocks me from getting the GQL query working in the app that has the proper authentication token configured.