Hi Folks :wave: I’m working on a Tap where I have...
# singer-tap-development
a
Hi Folks πŸ‘‹ I’m working on a Tap where I have two streams present, A & B, where A is pulling data from source API and putting it into an array and eventually stream B would hit another API by based on the array built from stream A. So is there a way to share that array between both the streams such that I can essentially share data between two streams?
v
https://sdk.meltano.com/en/latest/parent_streams.html sounds like what you're after, more specifics and code are even better πŸ™‚
a
@ananya Ditto the comment from @visch. πŸ‘ Sounds like a good case for parent-child streams with the get_child_context() of the parent defining how/what each child would need to get its extraction done. Hope this helps!
a
thank you @derek_harley and @aaronsteers! I could access a single value generated in stream A into the stream B. Now, a follow up question to this, I have an array of IDs that requires to be iterated over to make a GET request for each item in the array; is there a way to make this happen within the stream?
v
Please share code! What have you tried so far?
a
Ahhh..sorry my bad!!πŸ™‡β€β™€οΈ It’s working perfectly fine with my scenario. Thanks again you both! πŸ™ simple smile