Skip to content

Conversation

ArjunSaluja
Copy link

Adds a typed GraphQL client and helper to packages/faustwp-core.
.fetchGraphQL — a generic typed fetch wrapper for GraphQL. .FaustClient — lightweight client for queries and mutations. . Shared GraphQL response types (types.ts`).
. Includes a small Jest test for typed usage.

.Improves developer experience and ensures GraphQL responses are strongly typed.

Example

type Result = { post: { id: string; title: string } };
const client = new FaustClient(process.env.FAUST_GRAPHQL_URL!);
const { post } = await client.query<Result>(`query { post(id: "1") { id title } }`);

@ArjunSaluja ArjunSaluja requested a review from a team as a code owner October 2, 2025 19:18

Currently, we do not support the creation of preview deployments based on changes coming from forked repositories.
Learn more about preview environments in our documentation.

Copy link

changeset-bot bot commented Oct 2, 2025

⚠️ No Changeset found

Latest commit: b4955a8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-project-automation github-project-automation bot moved this to 🆕 Backlog in Headless OSS Oct 3, 2025
@colinmurphy colinmurphy moved this from 🆕 Backlog to Community In Review in Headless OSS Oct 3, 2025
@theodesp
Copy link
Member

theodesp commented Oct 6, 2025

Hi @ArjunSaluja
Thank you for your effort.
This appears to be a breaking change, as it removes the Apollo Client implementation in favor of a custom FaustClient and direct fetch-based GraphQL requests.

We do not aim to remove Apollo Client support from Faust at this time.

Can you share more about your use case? Is there something you’re trying to achieve that the current Apollo Client integration does not support?
We’d love to understand your requirements and see if there’s a way to address your needs without removing existing features.

Thanks!

@ArjunSaluja
Copy link
Author

ArjunSaluja commented Oct 6, 2025 via email

@colinmurphy colinmurphy moved this from Community In Review to 🏗 In progress in Headless OSS Oct 10, 2025
@josephfusco josephfusco moved this from 🏗 In progress to Community In Review in Headless OSS Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Community In Review

Development

Successfully merging this pull request may close these issues.

2 participants