Sorry to have to ask the forum for help. My FQL skills were accelerating until I decided to switch to GraphQL last month. Here is my question. I have a standard “register” UDF that creates a new account for a new user. What I’d like to do is:
Create a new “observers” document given the arguments to the UDF.
Create a new “projectFolders” document with the ID of the observer created in step 1.
Create a new “targetFolders” document with the ID of the observer created in step 1.
Here is the existing “register” UDF that performs Step 1:
@oopfan Here’s come code I’ve written which creates a document, and places its ref into an existing document. But you can apply the same principle of storing the created document as a variable in a Let(),extracting it’s ref using Select(), and then placing that in a subsequent Create function call: