2.14.0 • Published 6 months ago

@homebound/graphql-id-linter v2.14.0

Weekly downloads
431
License
-
Repository
-
Last release
6 months ago

graphql-id-linter

According to apollo-client's issue 2510, the apollo client really, really wants you to include ids in every query that touches a type, so that it can maintain its cache.

In theory this is getting fixed in apollo-client 3.0-beta, but always returning id is probably not a bad idea anyway.

Credits, this is a ~80% copy/paste of Cecchi's solution on this comment.

Install

npm install --save-dev @homebound/graphql-id-linter

Include it in your graphql-codegen.yml:

schema: ./schema.json
documents: src/**/*.graphql
generates:
  src/generated/graphql-types.tsx:
    plugins:
      - "@homebound/graphql-id-linter"
2.13.0

8 months ago

2.14.0

6 months ago

2.11.0

2 years ago

2.10.0

2 years ago

2.9.0

3 years ago

2.8.0

3 years ago

1.7.0

3 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.1.0

4 years ago

1.0.0-bump

4 years ago