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 c9afc3d commit 56e4e3bCopy full SHA for 56e4e3b
.changeset/icy-emus-tap.md
@@ -0,0 +1,29 @@
1
+---
2
+"create-hypergraph": minor
3
+"@graphprotocol/hypergraph-react": minor
4
+"@graphprotocol/hypergraph": minor
5
6
+
7
+Schema Definition API Change (Breaking Change)
8
9
+Before:
10
+```ts
11
+export class User extends Entity.Class<User>('User')({
12
+ name: Type.String,
13
+}) {}
14
+```
15
16
+After:
17
18
+export const User = EntitySchema(
19
+ { name: Type.String },
20
+ {
21
+ types: [Id('bffa181e-a333-495b-949c-57f2831d7eca')],
22
+ properties: {
23
+ name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
24
+ },
25
26
+);
27
28
29
+All entity definitions need to be rewritten. The new API requires explicit type IDs and property IDs.
0 commit comments