SubStream Catalog

Hello. I have a stream that is an endpoint in a API that returns all ID from contacts, and another stream that uses the first one to return the information from the contacts.

I wanna know how do I produce a catalog that utilizes both streams at the same time. I don’t know how to do it properly because the catalog starts with

{
“streams”: [
{

        "stream": {

do I insert the two streams inside of “stream”{ or do I delete the “stream”{ and just type the names of the streams?

In doubt.txt I have both the streams named stream.

doubt.txt (14.8 KB)

Yes, you need to add both streams inside the “streams”.

{
  "streams": [
    {
      "stream": {
        "name": "my_parent_stream",
        "json_schema": {...}
      },
      "sync_mode": "full_refresh",
      "destination_sync_mode": "overwrite"
    },
    {
      "stream": {
        "name": "my_child_stream",
        "json_schema": {...}
      },
      "sync_mode": "full_refresh",
      "destination_sync_mode": "overwrite"
    }
 ]
}