BuildShipBBuildShip
Powered by
HearthianH
BuildShip•2y ago•
2 replies
Hearthian

Hearthian - Good evening 😊 I have a question ...

Good evening 😊 I have a question on a simple branch node - any help would be greatly appreciated! I'm trying to get a flow which either performs a collection query (if the input does not contain ".com") or gathers information from a url (if the input contains ".com"). Ref the images attached. However when I try the code below, I have the following errors:

-Expected an identifier and instead saw 'root'.
-Expected an identifier and instead saw '0b8611c3-d6fe-445d-8751-292210a46e5c'.
-Expected an identifier and instead saw 'queryValue'.

I'm not a coder so I don't know what the issue is. Any help would be amazing!!
flow1.png
Flow2.png
Solution
Hi @Hearthian, for the screenshot it shows an error on the branch, the function won't execute directly, instead you can change your condition to
(x)Value.includes(.com)
(x)Value.includes(.com)


For the error on the error on the Firestore node, ensure that filter has correct values, the filed should not be empty, if you want it empty you can have it like:
{
    field: "",
    operator: "",
    value: "" 
}
{
    field: "",
    operator: "",
    value: "" 
}

Docs for branch node - https://docs.buildship.com/core-nodes/if-else.
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

good evening guys i have a cuestion
rafaRrafa / 💬・general
3y ago
norah - Good evening I have a flutterflow proj...
norahNnorah / 💬・general
17mo ago
الوكا | Luca - good evening
Luca❕LLuca❕ / 💬・general
8mo ago
al-sabr - Good evening to all
LostPhotonLLostPhoton / 💬・general
2y ago