You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the following snippet which works as expected for defining a model with a relationship to itself and then creating a node relating to an existing node:
The problem is that I had to add these two ugly as any casts, otherwise I get the following TypeScript errors respectively for each cast:
Argument of type '{ Prev: { model: NeogmaModel<Neo4jSupportedProperties, Object, Object, Object>; direction: string; name: string; }; }' is not assignable to parameter of type 'Partial<RelationshipsI<Object>>'.
Object literal may only specify known properties, and 'Prev' does not exist in type 'Partial<RelationshipsI<Object>>'
Type '{ where: { params: { hash: string; }; }; }' is not assignable to type 'Neo4jSupportedTypes | undefined'.
Object literal may only specify known properties, and 'where' does not exist in type 'Integer | Point<Integer> | Date<Integer> | Time<Integer> | LocalTime<Integer> | DateTime<Integer> | LocalDateTime<...> | Duration<...> | Neo4jSingleTypes[]'
is there a way to accomplish what I am doing without relying on these casts?
The text was updated successfully, but these errors were encountered:
I have the following snippet which works as expected for defining a model with a relationship to itself and then creating a node relating to an existing node:
The problem is that I had to add these two ugly
as any
casts, otherwise I get the following TypeScript errors respectively for each cast:is there a way to accomplish what I am doing without relying on these casts?
The text was updated successfully, but these errors were encountered: