You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below is a general purpose UDF for creating a document in a given collection. The function was successfully created and tested in the Fauna environment, and looks like the following:
Thanks for reporting; this is happening somewhere in the call to Collection().
If possible, one suggested solution to both is to migrate to the Serverless Framework plugin we've recently launched in beta, as this is expected to be fully supported in the near future (less than one month).
The specific case @Teomayo reports can be worked around by using the collection name as a string rather than an object, e.g.,:
Create(
Var("collection"), {
Unfortunately this doesn't work for @Gozala 's case - you can remove the call to Collection() and FSM (incorrectly) creates the function, but you can't call it as Documents() expects a Ref, not a string.
Below is a general purpose UDF for creating a document in a given collection. The function was successfully created and tested in the Fauna environment, and looks like the following:
However, when creating the infrastructure for it and attempting to generate the migration for it, I am met with the following error:
Any help on this error would be appreciated.
The text was updated successfully, but these errors were encountered: