at the end when Inserting tasks from the server-side database console, “db.tasks.insert({ text: “Hello world!”, createdAt: new Date() });” this command seems to do nothing to my app.
Im also wondering if this has affected my proggression through the tutorial as creating the input space for new tasks has been done successully however pressing enter does nothing to the page.
just an update, after typing in db.tasks.insert({ text: “Hello world!”, createdAt: new Date() }); command, i get a reply "WriteResult({ “nInserted” : 1 )} but nothing happens to my app
Can you show us your code?
Have you imported /api/tasks.js to the server?
should i add the app as an attachment?
just paste
the code
like this.
find </> in the toolbar
server/main.js
import { Meteor } from 'meteor/meteor';
Meteor.startup(() => {
// code to run on server at startup
});
import '../imports/api/tasks.js';
imports/api/tasks.js
import { mongo } from 'meteor/mongo';
export const Tasks = new Mongo.Collection('tasks');
i think you should compare your code to their corresponding repo.
server/main.js »
https://github.com/meteor/simple-todos/commit/85ec00cdd88b93b68d2f3c517060594a8f015062
imports/ui/body.js »
https://github.com/meteor/simple-todos/commit/f6b008980d6f04b93e05bf777bdb0378308f4b57
i did a few sift throughs to compare last night maybe i was just tired, thank you for your help
ok this is rather odd, i made slight changes to the letters that werent in caps and the onrush of all the times i sent the commands via console last night just went through filling my app with “Hello world!”