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.

Integration with Keystone

See original GitHub issue

I’m doing:

Post.paginate({
    page: req.query.page || 1,
    perPage: 50,
    maxPages: 10
}).populate('comments','author content date')
.deepPopulate('author.name')

and i included the plugin like so:

var deepPopulate = require('mongoose-deep-populate');
Post.schema.plugin(deepPopulate);
Post.register();

But i still get the error:

TypeError: undefined is not a function

Anyone got it working with keystone?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
AndrewFinlaycommented, Jun 14, 2015

Modify the readme and create a pr?.

From: razb [mailto:notifications@github.com] Sent: Friday, 12 June 2015 8:54 AM To: buunguyen/mongoose-deep-populate Cc: AndrewFinlay Subject: Re: [mongoose-deep-populate] Integration with Keystone (#18)

I must still be missing something. I 've verified that both the keystone and mongoose-deep-populate package.json files refrence the same mongoose version:

“peerDependencies”: { “mongoose”: “~3.8.24” },

and have verified that the plugin is registered as a method for the schema:

{ deepPopulate: [Function], getRelated: [Function], populateRelated: [Function], getUpdateHandler: [Function] }

Yet I still get:

TypeError: undefined is not a function

Any suggestions?

— Reply to this email directly or view it on GitHub https://github.com/buunguyen/mongoose-deep-populate/issues/18#issuecomment-111298745 . https://github.com/notifications/beacon/ADhW3s1TWdK-LBVPhYs3X5QkWe5doFmAks5oSgjsgaJpZM4ET2PP.gif

0reactions
robksawyercommented, Sep 24, 2017

@buunguyen I’m a bit unclear, have you gotten this working? It’s not working for me using the methods described above.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integration | Keystone Business Services
Our most highly sought after solution integrates Salesforce and NetSuite into a seamless and fully cloud-based lead to cash management system. Our custom ......
Read more >
Chapter 1. Integrating OpenStack Identity (keystone) with ...
You can integrate OpenStack Identity (keystone) with Microsoft Active Directory Domain Service (AD DS). Identity Service authenticates certain Active ...
Read more >
Tutorial: Azure AD SSO integration with Keystone
In this tutorial, you'll learn how to integrate Keystone with Azure Active Directory (Azure AD). When you integrate Keystone with Azure AD, ...
Read more >
Keystone Integration — SwiftStack Documentation
This guide provides and overview of the steps necessary to properly prepare your Keystone setup for integration with your SwiftStack environment.
Read more >
Integrating with OpenStack Keystone - Ceph Documentation
It is possible to integrate the Ceph Object Gateway with Keystone, the OpenStack identity service. This sets up the gateway to accept Keystone...
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