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
Describe the bug
Executing a subscription with the variables {where: {id_IN: myUuidList }} throws the following error:
Internal error occurred during message handling. Please check your implementation. Neo4jError: number format error: interior "-" character: 7fab55b1-6cd2-489d-92ca-f4944478d127
at new Neo4jError (C:\...\neo4j-driver-core\lib\error.js:75:16)
at newError (C:\...\neo4j-driver-core\lib\error.js:111:12)
at Integer.fromString (C:\...\neo4j-driver-core\lib\integer.js:743:40)
at Integer.fromValue (C:\...\neo4j-driver-core\lib\integer.js:792:28)
at isFloatOrStringOrIDAsString (C:\...\@neo4j\graphql\dist\schema\resolvers\subscriptions\where\filters\filter-by-properties.js:66:68)
at IN (C:\...\@neo4j\graphql\dist\schema\resolvers\subscriptions\where\filters\filter-by-properties.js:85:13)
at filterByProperties (C:\...\@neo4j\graphql\dist\schema\resolvers\subscriptions\where\filters\filter-by-properties.js:56:18)
at subscriptionWhere (C:\...\@neo4j\graphql\dist\schema\resolvers\subscriptions\where\where.js:36:62)
at C:\...\@neo4j\graphql\dist\schema\resolvers\subscriptions\subscribe.js:61:51
at C:\...\@neo4j\graphql\dist\schema\resolvers\subscriptions\filter-async-iterator.js:50:33 {
constructor: [Function: Neo4jError] { isRetriable: [Function (anonymous)] },
code: 'N/A',
retriable: false
}
Type definitions
type Entity {
id: ID! @id @unique
name: String
}
To Reproduce
Steps to reproduce the behavior:
Using the previously defined Entity type, execute the following subscription:
const ENTITY_UPDATED = gql`subscription EntityUpdated($where: EntitySubscriptionWhere) {
entityUpdated(where: $where) {
updatedEntity {
id
name
}
event
timestamp
previousState {
id
name
}
}
}
`;
const watchEntityIds = ["7fab55b1-6cd2-489d-92ca-f4944478d127"];
const result = useSubscription(ENTITY_UPDATED, {
variables: {
where: { id_IN: watchEntityIds },
},
});
Expected behavior
Subscription should return updates for entities with ids in watchEntityIds.
System (please complete the following information):
OS: Windows
Versions: @neo4j/graphql@5.6.2
Node.js version: v18.17.0
Additional context
Queries using the same parameters execute correctly.
Example:
const GET_ENTITIES = gql`
query Entities($where: EntityWhere) {
entities(where: $where) {
id
name
}
}
`;
const watchEntityIds = ["7fab55b1-6cd2-489d-92ca-f4944478d127"];
// this executes correctly!
const result = useQuery(ENTITY_UPDATED, {
variables: {
where: { id_IN: watchEntityIds },
},
});
The text was updated successfully, but these errors were encountered:
We've been able to confirm this bug using the steps to reproduce that you provided - many thanks @adley-kim! 🙏 We will now prioritise the bug and address it appropriately.
Describe the bug
Executing a subscription with the variables
{where: {id_IN: myUuidList }}
throws the following error:Type definitions
To Reproduce
Steps to reproduce the behavior:
Using the previously defined
Entity
type, execute the following subscription:Expected behavior
Subscription should return updates for entities with ids in
watchEntityIds
.System (please complete the following information):
Additional context
Queries using the same parameters execute correctly.
Example:
The text was updated successfully, but these errors were encountered: