Skip to content

Commit 56e4e3b

Browse files
committed
add changeset
1 parent c9afc3d commit 56e4e3b

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.changeset/icy-emus-tap.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
```ts
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

Comments
 (0)