question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

permittedFieldsBy always returns empty array

See original GitHub issue
  "name": "@casl/mongoose"
  "version": "2.1.2"

Attempting to use permittedFieldsBy (note no type def for accessibleFieldsBy available), but only get an empty array as result.

When using the underlying permittedFieldsOf method, I’m able to get the expected results.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
stalniycommented, Oct 10, 2018

Published @casl/mongoose@2.2.0 with changes from #117 . Could you please check and report back whether it works as expected now?

0reactions
stalniycommented, Oct 14, 2018

Fixed in @casl/mongoose@2.2.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node always returns empty array - Stack Overflow
imageFiles always returns to angular as an empty array . If I console.log(imageFiles) before the response it is empty as well.
Read more >
#CALC! error - Empty array - Microsoft Support
Empty array errors occur when an array formula returns an empty set. For example, =FILTER(C3:D5,D3:D5<100) will return an error because there are no...
Read more >
$search autocomplete returns an empty array - MongoDB
I'm a mongodb (and backend) beginner and try to create an autocomplete search. Unfortunately, I always get back an empty array in my...
Read more >
empty - Manual - PHP
Returns true if var does not exist or has a value that is empty or equal to ... I normally count() an array,...
Read more >
getMicList always returns empty array - Zoom Developer Forum
Description Stream.getMicList() is returning an empty array, even when navigator.mediaDevices.enumerateDevice() returns several speakers and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found