feat: Setup GraphQL with dynamic node routing logic
This commit is contained in:
8
wp-content/themes/headless/app/pages/[...uri].gql
Normal file
8
wp-content/themes/headless/app/pages/[...uri].gql
Normal file
@@ -0,0 +1,8 @@
|
||||
query NodeByUri($uri: String!) {
|
||||
nodeByUri(uri: $uri) @nonNull {
|
||||
__typename
|
||||
... on Page {
|
||||
...NodePage
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user