Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Searching through mongodb database with meteor package "search-source" Not sure how to hook it up to my own code!

So I am making an app on meteor, and I have created a database with mongodb on it that contains games with attributes like name and genre. I now need to hook this up to a search bar so you can search a game name and it will get pulled from the database to click on. I found a pre-made meteor package that does this called search-source; link here:

https://meteorhacks.com/implementing-an-instant-search-solution-with-meteor

the directions and code on the site seem pretty straight forward, but I cant seem to hook it up to my own database! I established my database on the client js file like this:

GamesList = new Meteor.Collection('games');

That has been working great, but no matter where I plug it in to the code provided from meteorhacks.com it doesnt seem to come up with any results. Some pointers would be great, and if anyone needs to see more of my code to understand whats going on I will gladly post it for you. Thanks!

Hmm... I don't have much experience in this area, but I'd be happy to try and help you troubleshoot.

Unfortunately, that meteorhacks link doesn't seem to be working for me at the moment.

Could you post your code here? The easiest way would be to create a workspace, and post a workspace snapshot using the camera icon in the top right.