Skip to content

Commit

Permalink
fix: GetSeedNode id and uri GraphQL params are required. (#1463)
Browse files Browse the repository at this point in the history
* fix: GetSeedNode `$id` is required

* fix: URI is also required in GetSeedNode

* Update seed-query.mdx

* Add changeset

* Grammar

---------

Co-authored-by: Blake Wilson <[email protected]>
  • Loading branch information
justlevine and blakewilson authored Jun 20, 2023
1 parent 444ab1d commit 80e5605
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/fifty-ants-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@faustwp/core': patch
---

Fixed a bug in the seed query when persisted queries are enabled. Thanks @justlevine!
4 changes: 2 additions & 2 deletions internal/faustjs.org/docs/faustwp/seed-query.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export interface SeedNode {
export const SEED_QUERY = gql`
query GetSeedNode(
$id: ID = 0
$uri: String = ""
$id: ID! = 0
$uri: String! = ""
$asPreview: Boolean = false
) {
... on RootQuery @skip(if: $asPreview) {
Expand Down
4 changes: 2 additions & 2 deletions packages/faustwp-core/src/queries/seedQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export interface SeedNode {

export const SEED_QUERY = gql`
query GetSeedNode(
$id: ID = 0
$uri: String = ""
$id: ID! = 0
$uri: String! = ""
$asPreview: Boolean = false
) {
... on RootQuery @skip(if: $asPreview) {
Expand Down

1 comment on commit 80e5605

@headless-platform-by-wp-engine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out the recent updates to your Atlas environment:

App Environment URL Build
faustjs canary https://hg…wered.com ✅ (logs)

Learn more about building on Atlas in our documentation.

Please sign in to comment.