question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for Apollo clientside query via @client without clientside schema

See original GitHub issue

gql-gen errors when generating types for clientside graphql queries (with @client directive) where clientside schema isn’t defined or needs to. Apollo allows you to define clientside queries with or without a clientside schema.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
kamilkisielacommented, Sep 2, 2018
0reactions
dotansimhacommented, Oct 25, 2018

Please refer to my PR in ReactQL: https://github.com/leebenson/reactql/pull/129 It shows a good example for how to use the codegen with remote schema and local schema, along with apollo-link-state and @client directive.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Client-side schema - Apollo GraphQL Docs
You can optionally provide a client-side schema to Apollo Client that defines local-only types and fields. You can define completely new types, ...
Read more >
Queries - Apollo GraphQL Docs
Apollo Client executes the full query against both the cache and your GraphQL server. The query automatically updates if the result of the...
Read more >
Local-only fields in Apollo Client - Apollo GraphQL Docs
Your Apollo Client queries can include local-only fields that aren't defined in your GraphQL server's schema: GraphQL. 1. query ProductDetails($productId: ...
Read more >
Server-side rendering - Apollo GraphQL Docs
Apollo Client provides a handy API for using it with server-side rendering, including a function that executes all of the GraphQL queries that...
Read more >
Local resolvers - Apollo GraphQL Docs
We'll cover how client-side resolvers can help us execute local queries and mutations. You'll also learn how to query and update the cache...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found