Skip to content

Does the endpoint become part of the cache key? #155

Closed
@jkjustjoshing

Description

@jkjustjoshing

I have several GraphQL endpoints I'm trying to fetch from that share many of the same field names, but have different schemas and values within those fields. For example, what if I have these 2 queries I want to run:

query {
    products {
        id # UUID string
        seller # string
        price # Int, number of cents
    }
}
query {
    products {
        id # number
        affiliate # string
        price # string of the format "$1.23"
    }
}

Can I use this library to query from both of these endpoints without any caching issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions