We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here, in this function if I call this.id() it would return 0, while in db there's something like "_id" : ObjectId("58d29558a54d7552e223dae3")
this.id()
"_id" : ObjectId("58d29558a54d7552e223dae3")
override func to(_ this: StORMRow) { id = this.id() as? String ?? "" }
Although it can be elicited manually from data:
data
id = (this.data["_id"] as? Dictionary<String,String> ?? [:])["$oid"] ?? ""
po this.data["_id"] ▿ Optional<Any> ▿ some : 1 element ▿ 0 : 2 elements - .0 : "$oid" - .1 : "58d29558a54d7552e223dae3"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Here, in this function if I call
this.id()
it would return 0, while in db there's something like"_id" : ObjectId("58d29558a54d7552e223dae3")
Although it can be elicited manually from
data
:The text was updated successfully, but these errors were encountered: