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.

Admin UI: Lookup values for related collection

See original GitHub issue

Expected behavior

In the admin UI, tab posts: trying to filter, using field Blog. The list of blogs should contain blogs.

Actual behavior

Currently, the list is empty

selection_002

Steps to reproduce the behavior

Go to the admin UI, open posts, and try to filter, using field Blog.


Version: “keystone”: “^0.3.16”

Log:

GET /keystone/posts 200 1100.208 ms
API Error (database error):
{ [MongoError: Failed to parse: { find: "pages", filter: { __t: "Blog" }, sort: { note: 1 }, limit: "10" }. 'limit' field must be numeric.]
  name: 'MongoError',
  message: 'Failed to parse: { find: "pages", filter: { __t: "Blog" }, sort: { note: 1 }, limit: "10" }. \'limit\' field must be numeric.',
  waitedMS: 0,
  ok: 0,
  errmsg: 'Failed to parse: { find: "pages", filter: { __t: "Blog" }, sort: { note: 1 }, limit: "10" }. \'limit\' field must be numeric.',
  code: 9 }
Unhandled rejection MongoError: Failed to parse: { find: "pages", filter: { __t: "Blog" }, sort: { note: 1 }, limit: "10" }. 'limit' field must be numeric.
    at Function.MongoError.create (/home/www/site/node_modules/mongodb-core/lib/error.js:31:11)
    at queryCallback (/home/www/site/node_modules/mongodb-core/lib/cursor.js:200:36)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wmertenscommented, Jun 29, 2016

@moret awesome, I’ll close this then and ask @jed to please push a new v0.3 patch release 😃

2reactions
moretcommented, Jun 29, 2016

@wmertens great. I changed my package.json to "keystone": "git@github.com:keystonejs/keystone.git#a0d9a42e1c84b7987cbc9ae62eef8a1153d3bd25", removed and reinstalled node_modules and tested. I can confirm it’s fixed, thank you a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lookup Values | User Interface API Developer Guide
Records in a lookup relationship, organized by object type. A map of object API names to Record Collection response bodies containing the lookup...
Read more >
Reference lookup
On forms, the reference lookup icon ( Core UI reference lookup icon ) appears by editable reference fields. Clicking the reference lookup ......
Read more >
Filter, Search, and LookUp functions in Power Apps
Syntax · Table - Required. Table to search. In the UI, the syntax is shown as source above the function box. · Formula...
Read more >
Parameterized lookup field not displaying values based on ...
Log in as an administrator and go to Classic Studio ->Administration->Lookups · Create a copy of the Lookup Query from 'Idea and Project...
Read more >
11 Managing Lookups
Open the Search and Select: Lookup Type window. · Click the Create Lookup Type icon on the toolbar. · Enter values in the...
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