Support for Apollo clientside query via @client without clientside schema
See original GitHub issuegql-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:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#561
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.