The object being passed as a subject is below:
permissions.can("read", subject("appprofile", profile)))
The profile being checked looks like this:
{
name: "Dave",
id: 1n, <--- the bigint from Prisma
}
the JSON being used in createMongoAbility is like this:
[
{
action: "read",
subject: "appprofile",
conditions: {
id: "1",
},
}
]
... but the check fails. I'm assuming its a bigint parsing issue in CASL or am I on the wrong track?