We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b604f6f commit 75fb5dbCopy full SHA for 75fb5db
app/layout.js
@@ -29,7 +29,7 @@ export default function RootLayout({ children }) {
29
</header>
30
<main>
31
<section style={{ borderBottom: '1px solid' }}>
32
- <h1>HarperDB Next.js Example Application</h1>
+ <h1>Harper Next.js Example Application</h1>
33
<p>This application demonstrates multiple distinct Next.js features.</p>
34
35
<p>Use the navigation links to try different page types.</p>
config.yaml
@@ -1,3 +1,7 @@
1
+graphqlSchema:
2
+ files: 'schema.graphql'
3
+jsResource:
4
+ files: 'resources.js'
5
'@harperdb/nextjs':
6
package: '@harperdb/nextjs'
7
files: '*'
resources.js
@@ -0,0 +1,23 @@
+const dogs = [
+ { id: '0', name: 'Lincoln', breed: 'Shepherd' },
+ { id: '1', name: 'Max', breed: 'Cocker Spaniel' },
+ { id: '2', name: 'Bella', breed: 'Lab' },
+ { id: '3', name: 'Charlie', breed: 'Great Dane' },
+ { id: '4', name: 'Lucy', breed: 'Newfoundland' },
+ { id: '5', name: 'Cooper', breed: 'Pug' },
8
+ { id: '6', name: 'Daisy', breed: 'Bull Dog' },
9
+ { id: '7', name: 'Rocky', breed: 'Akita' },
10
+ { id: '8', name: 'Luna', breed: 'Wolf' },
11
+ { id: '9', name: 'Buddy', breed: 'Border Collie' },
12
+ { id: '10', name: 'Bailey', breed: 'Golden Retriever' },
13
+ { id: '11', name: 'Sadie', breed: 'Belgian Malinois' },
14
+ { id: '12', name: 'Molly', breed: 'Beagle' },
15
+ { id: '13', name: 'Howard', breed: 'Boxer' },
16
+ { id: '14', name: 'Paula', breed: 'Shih Tzu' },
17
+ { id: '15', name: 'Bear', breed: 'Rottweiler' },
18
+ { id: '16', name: 'Maggie', breed: 'Doberman' },
19
+];
20
+
21
+for (const dog of dogs) {
22
+ tables.Dog.put(dog);
23
+}
schema.graphql
@@ -0,0 +1,5 @@
+type Dog @table @export {
+ id: ID @primaryKey
+ name: String
+ breed: String
0 commit comments