Skip to content

Add GraphQL Guard to the Code page - #2596

Open
marklai1998 wants to merge 1 commit into
graphql:sourcefrom
marklai1998:add-graphql-guard
Open

marklai1998 wants to merge 1 commit into
graphql:sourcefrom
marklai1998:add-graphql-guard

Conversation

@marklai1998

Copy link
Copy Markdown

Description

Adds GraphQL Guard to the JavaScript tools on the Code page, next to GraphQL Shield. GraphQL Guard is a maintained fork of graphql-shield 7.x with the same rule API (rule, and, or, not, chain, race). guard(schema, rules) returns a guarded schema, so it works with any server that takes a GraphQLSchema and doesn't need graphql-middleware.

The new file src/code/language-support/javascript/tools/graphql-guard.md uses the same frontmatter and tags as the GraphQL Shield entry, and its example mirrors that page's. I ran the example with GraphQL Yoga against graphql-guard 1.0.2, and prettier, eslint, validate:snippets and test:unit pass locally. I didn't run the full build.

@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

@marklai1998 is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: marklai1998 / name: Mark Lai (e08f723)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant