Skip to content

Schema caching broken for multiple schemas since 2.1.0 #178

Closed
@patsissons

Description

@patsissons

Issue Labels

  • has-reproduction
  • feature
  • docs
  • blocking
  • good first issue

The current schema caching implementation (added in #137) currently prevents a multi-project (aka multi-schema) configuration as it keys caching on the eslint configuration, whereas schema resolution is dependent on the path to the GraphQL file being linted.

We can fix this by caching the schemas and the graphql configuration (along with the other cached elements) and instead of returning the cache entry directly, compose the cache hit into a result based on the file path being linted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockingPrevents production or dev due to perf, bug, build error, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions