graphql-ws-client icon indicating copy to clipboard operation
graphql-ws-client copied to clipboard

Refactor examples

Open Sytten opened this issue 3 years ago • 8 comments

I think we should refactor examples to accommodate for WASM and graphql-client. Probably using different packages. What do you think?

Sytten avatar Jun 21 '22 15:06 Sytten

Yeah, not against refactoring the examples now there's support for just cynic. What did you have in mind re: different packages?

obmarg avatar Jun 28 '22 16:06 obmarg

At least one package for cynic, graphql-client and later wasm. That would be good enough for now.

Sytten avatar Jun 28 '22 19:06 Sytten

If you just mean separate packages for cynic examples, graphql-client examples etc. then yeah - sounds good to me

obmarg avatar Jun 29 '22 10:06 obmarg

Is there examples for graphql-client? That would be very helpful.

I cannot find an example online.

HuakunShen avatar May 06 '23 06:05 HuakunShen

@HuakunShen - I'm afraid I've never used this library with graphql-client.

@Sytten - don't suppose you've got any example code you can share?

obmarg avatar May 06 '23 14:05 obmarg

@HuakunShen you could probably borrow some code from the railway CLI where they're using this library with graphql_client

obmarg avatar May 06 '23 14:05 obmarg

@obmarg Thank you!

In the README, it says there is integration with graphql-client: features = ["client-graphql-client"]

What does this mean? I thought graphql-client is supported.

I will take a look at railway first.

HuakunShen avatar May 06 '23 21:05 HuakunShen

@obmarg Thank you!

In the README, it says there is integration with graphql-client: features = ["client-graphql-client"]

What does this mean? I thought graphql-client is supported.

It means that you need to enable the client-graphql-client feature flag to get graphql-client support like the railway people have done here. We have support for multiple graphql clients, and control which are enabled via feature flags.

obmarg avatar May 06 '23 22:05 obmarg