feat: Setup GraphQL with dynamic node routing logic
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
fragment NodePage on Page {
|
||||
title @nonNull
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import type { NodePageFragment } from "#graphql/types";
|
||||
defineProps<{ node: NodePageFragment }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div id="node-page">{{ node.title }}</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user