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
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.

1 participant