Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: multiple queries per template #61

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

jasonbahl
Copy link
Contributor

@jasonbahl jasonbahl commented Jan 23, 2024

This implements the new Template.queries approach supported by FaustJS.

SEE:

Benefits

This is beneficial as it means each query is responsible for fewer nodes and will be invalidated more precisely.

Now, instead of querying for Menus, Global Settings and the posts or post archive data all in one query, these queries can be separated into their own responsibilities and take advantage of better caching / cache invalidation via WPGraphQL Smart Cache.

- update LayoutArchive exports
- update imports to use LAYOUT_ARCHIVE_QUERY
Copy link

vercel bot commented Jan 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
acf-wpgraphql-com ✅ Ready (Inspect) Visit Preview Jan 23, 2024 1:13am

@jasonbahl jasonbahl self-assigned this Jan 23, 2024

Check out the recent updates to your Atlas preview environment:

App Environment URL Build
acf.wpgraphql.com preview-env-feat/multiple-queries-per-template https://hi…wered.com ✅ (logs)

Learn more about preview environments in our documentation.

@jasonbahl jasonbahl merged commit 0b5fadb into main Jan 23, 2024
5 checks passed
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