Hello All, I am creating a Graphql Custom tap that...
# troubleshooting
m
Hello All, I am creating a Graphql Custom tap that is hitting https url https://zzz.com/query. Above is my stream.py file. and in schema i write the graphql schema. I don't know whether we need to create a json or graphql schema. Stream.py
Copy code
"""Stream type classes for tap-cj."""

from pathlib import Path
from typing import Any, Dict, Optional, Union, List, Iterable

# TODO: Delete this is if not using json files for schema definition
SCHEMAS_DIR = Path(__file__).parent / Path("./schemas")



yesterday = '2022-04-25'
today = '2022-05-03'
class advertiserCommissions(cjStream):
    """Define custom stream."""
    name = "advertiserCommissions"
    # Optionally, ou may also use `schema_filepath` in place of `schema`:
    schema_filepath = SCHEMAS_DIR / "advertiserCommissions.graphql"
    #primary_keys = ["id"]
    replication_key = None
    query = "{ advertiser(forAdvertisers: [\"11111\"], sincePostingDate:\""+yesterday+"T08:00:00Z\",beforePostingDate:\""+today+"T08:00:00Z\"){count payload }}"
advertiser.graphql
Copy code
type AdvertiserCommissions {
  count: Int
  payloadComplete: Boolean
}

type Root {
  advertiserCommissions: AdvertiserCommissions
}
When i am running the
meltano elt tap-z target-csv
, it's throwing
Cannot start extractor: Catalog discovery failed:
I must doing wrong something , If someone can help here that would be great. Thank you.
@edward_ryan @kai_yokoyama