Has anybody here had success with the new function...
# prisma-whats-new
a
Has anybody here had success with the new functions feature and inline code?
i
@aurnik I was using the new function feature and inline code, but i'm not impressed with it., i encounter several errors which i'm not sure how to solve, @nilan knows most about it. I guess it was not ready for primetime.
a
@iamrommel Yeah Iโ€™m having a similar experience. Were you able to get a function invoked at all? All my code looks right but itโ€™s showing zero invocations and zero logs
k
Same here,not getting it invoked at all. talked to nilan yesterday and they are looking into it
๐Ÿ‘ 1
n
Hey folks! Functions is not as polished as our standards dictates and I'm sorry about it. We're iterating a lot on the UX and functionality and your feedback is tremendously helpful and appreciated ๐Ÿ™ Thanks for your help ๐Ÿ™‚
s
@nilan Just wanted to mention here in case its not on your radar. The docs for functions have a page about how to throw an error, which basically says to do something like return { error: "Error message here" }, however that doesnt seem to throw any errors when I try it. Only way I can get it to throw an error is to do it asynchronously by doing cb("error here"). Also, the comments in the in-browser editor reference an input variable in the module.exports function but it looks like its all being passed in a variable called event, not input.
@nilan also getting this error when I try to upload a file when I have a File is Created pipeline function running in the transform stage: "Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'."
i
I flooded the graphcool with issue which i guess will be helpful for them to track it here https://github.com/graphcool/ui-feedback/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aopen%20%20 , so i think i can suggest that to @stevewpatterson too.
a
Got everything working great now!