Passing Object in additionalScope

Passing object in additionalScope works to a degree...

As you'll see in the images notifications do not render correctly when object is passed, but query is returning correct object which was passed.

This would be super useful when we're re-using queries so we could pass different objects into an API call.

I've added a repo app as well - let me know if you have any questions.

Stefan Cvrkotic - Mar 07, 2024 - 8:46:30PM.json (13.8 KB)

1 Like

Hey @stefancvrkotic I think there is just a little syntax issue here. The variable obj is defined with pass as one of the keys. You rename it to password in the script that runs query1 which is why it works there. But when keying into the object itself in query2 you use password instead which isn't a key on the object. You can see in the output of that query that pass is the key.

Fixing up that naming confusion seems to make this work in both contexts, but let me know if you see something else!

Screenshot 2024-03-07 at 2.31.00 PM

Ah you're right - now looking at the code seems to be a different issue. Will post shortly :+1:

1 Like