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.

@urql/core support for nodes

See original GitHub issue

When using urql core like this:

import { Client, createClient } from '@urql/core';
const client = createClient({ ... });

const result = await client.query(SomeDocument).toPromise();

The types are not picked up. I guess the current urql implementation targets the main urql library only?

Issue Analytics

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

github_iconTop GitHub Comments

5reactions
kittencommented, Nov 6, 2020

This has now been released, so this batch of urql releases all have the modifications necessary to support TypedDocumentNodes https://github.com/FormidableLabs/urql/pull/1128

3reactions
kittencommented, Nov 2, 2020

Alright, the above PR (https://github.com/FormidableLabs/urql/pull/1113) is filed as an RFC on our end for now, so we can get some time to look into this project, how far its adoption is, and… well, to check whether my changes are completely correct 😛

If anyone here has something for urql (or similar) set up already, CodeSandbox CI provides test packages for each PR with full builds of our libraries so that this can be fully tested out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Core / Node.js | urql Documentation
Core and Node.js Usage ... The @urql/core package contains urql 's Client , some common utilities, and some default Exchanges. These are the...
Read more >
@urql/core - npm
The shared core for the highly customizable and versatile GraphQL client. ... Start using @urql/core in your project by running `npm i ...
Read more >
typescript-urql - GraphQL Code Generator
Usage Requirements In order to use this GraphQL Codegen plugin, please make sure that you have GraphQL operations ( query / mutation ...
Read more >
urql/CHANGELOG.md - UNPKG
7, - ⚠️ Fix Node.js Module support for v13 (experimental-modules) and v14. ... 17, - Bumps the `@urql/core` dependency minor version to ^1.10.1...
Read more >
Typed Document Node - Episode #41 - graphql.wtf
We'll explore using the typed-document-node plugin which aims to reduce ... npm install graphql graphql-request @apollo/client @urql/core ...
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