For do this you need use Future. Create : var Future = Npm.require( ‘fibers/future’ ); In your call use : … More
Author: camilamacedo86
MeteorJs : How to use meteor Js + Neo4J database ?
Install Neo4j : $ brew install neo4j Start the Neo4j in your machine : $ neo4j start Go to console and configure … More
MongoDB: How to do any consult ignoring case sensitive?
You need use a regex function . Example : var name = $(‘.name’).val(); var regex = new RegExp([“^”, name, “$”].join(“”), … More
MongoDB : How to find by the sublevels ?
You have a BSON with an array of objects and you want to find by the objects inside so it’s … More
MongoDB: How to do any consult with dates ?
First you need save in date format in your MongoDB. Example: var dtStart = new Date(moment(dts).format(“MM/DD/YYYY HH:MM”)); var dtEnd = … More
Meteor JS: Flow-Router – How to take the value from any param of the route ( url ) ?
Use: FlowRouter.getParam(“NAME_PARAM”) Example: Route : URL : http://localhost:3000/clientText/hjmusRA6wpL9JgBNp/list/15 CODE OF THE ROUTE: FlowRouter.route(‘/clientText/:client/list/:amount’,{ { … } }); CODE TO TAKE … More
Meteor JS: Flow-Router – Excelente way to create routes in your Meteor application
Flow-Router https://github.com/kadirahq/flow-router https://kadira.io/academy/meteor-routing-guide/content/introduction-to-flow-router https://atmospherejs.com/meteorhacks/flow-router meteor add meteorhacks:flow-router FlowRouter is a very simple router for Meteor. It is focused only on … More
Meteor JS : How to take data of an object in specific ?
For do this, you can use in html file : {{#with object}} {…} {{/with}} In your javascript file you need create … More
JavaScript + Meteor JS : How to open a link in new window ?
Use : var win = window.open(url, ‘_blank’); win.focus(); Example in a Meteor Js application: clip.file <template name=”Clip”> <div class=”card-container”> {…} … More
Meteor JS : How to make a query that finds all contained values in an array using the MongoDB ?
MongoDB operator : $in Syntax : Collection.find({attribute:{$in:array}}); Example : Meteor.publish(‘ArtistsEvent’,function(id){ var event = Events.findOne({_id:id}); if ( event.attractions ){ var att = … More