csse-uoft / graphdb-utils

1 stars 0 forks source link

GraphDBModel.findOne returns first document when none match #3

Closed htysc closed 7 months ago

htysc commented 9 months ago

When GraphDBModel.findOne's filter doesn't match any of the available documents, it appears to return the first document by ID instead of undefined or null. This has led to a few bugs when I've worked on SNM-I. Is this the expected result?

LesterLyu commented 9 months ago

Will look into that

LesterLyu commented 8 months ago

I cannot reproduce this issue: https://github.com/csse-uoft/graphdb-utils/commit/1cac12f94734845624e13fadf80b2ab70f9457cb