1- import  {  EntitySchema ,  Id ,  Type  }  from  '@graphprotocol/hypergraph' ; 
1+ import  {  Entity ,  Id ,  Type  }  from  '@graphprotocol/hypergraph' ; 
22
3- export  const  User  =  EntitySchema ( 
3+ export  const  User  =  Entity . Schema ( 
44  {  name : Type . String  } , 
55  { 
66    types : [ Id ( 'bffa181e-a333-495b-949c-57f2831d7eca' ) ] , 
@@ -10,7 +10,7 @@ export const User = EntitySchema(
1010  } , 
1111) ; 
1212
13- export  const  Todo  =  EntitySchema ( 
13+ export  const  Todo  =  Entity . Schema ( 
1414  { 
1515    name : Type . String , 
1616    completed : Type . Boolean , 
@@ -26,7 +26,7 @@ export const Todo = EntitySchema(
2626  } , 
2727) ; 
2828
29- export  const  Todo2  =  EntitySchema ( 
29+ export  const  Todo2  =  Entity . Schema ( 
3030  { 
3131    name : Type . String , 
3232    checked : Type . Boolean , 
@@ -50,7 +50,7 @@ export const Todo2 = EntitySchema(
5050  } , 
5151) ; 
5252
53- export  const  JobOffer  =  EntitySchema ( 
53+ export  const  JobOffer  =  Entity . Schema ( 
5454  { 
5555    name : Type . String , 
5656    salary : Type . Number , 
@@ -64,7 +64,7 @@ export const JobOffer = EntitySchema(
6464  } , 
6565) ; 
6666
67- export  const  Company  =  EntitySchema ( 
67+ export  const  Company  =  Entity . Schema ( 
6868  { 
6969    name : Type . String , 
7070    jobOffers : Type . Relation ( JobOffer ) , 
@@ -78,7 +78,7 @@ export const Company = EntitySchema(
7878  } , 
7979) ; 
8080
81- export  const  Event  =  EntitySchema ( 
81+ export  const  Event  =  Entity . Schema ( 
8282  { 
8383    name : Type . String , 
8484    description : Type . optional ( Type . String ) , 
@@ -94,7 +94,7 @@ export const Event = EntitySchema(
9494  } , 
9595) ; 
9696
97- export  const  Image  =  EntitySchema ( 
97+ export  const  Image  =  Entity . Schema ( 
9898  { 
9999    url : Type . String , 
100100  } , 
@@ -106,7 +106,7 @@ export const Image = EntitySchema(
106106  } , 
107107) ; 
108108
109- export  const  Project  =  EntitySchema ( 
109+ export  const  Project  =  Entity . Schema ( 
110110  { 
111111    name : Type . String , 
112112    description : Type . optional ( Type . String ) , 
0 commit comments