Skip to content
Advertisement

Tag: node.js

How to link Gatsby.js with my Express server

I am trying to make a very basic full-stack application where the front-end is Gatsby and the Backend is a simple Express server. I have a Database where I have some users and the goal is get these users in the backend with a query and then displaying them in the Gatsby (React) component using fetch(). Obviously something goes wrong

Wipe all tables in a schema – sequelize nodejs

To perform unit testing on a mysql database using sequelize as ORM, I need to refresh my database when each test start to run. Actually I wrote a solution like this: but every time I create tables I have to add another instruction. I would implement a single instruction to perform a complete wipe of the entire schema Something like:

print SQL output in jade file

I’m trying to output an sql query in Jade file. I got it so far that I can print plain text to jade but when I try to put an output from SQL it doesn’t work can someone help me. The code in app.js (…

Filtering existing objects with SQL query

I’m looking for a library that could filter javascript collections of objets from a SQL query. No such results on Google :/ For example, this objects collection… filtered with… would return… Do you know if such a library already exists ? Or should I devellop it by myself… ? (Uhh –‘) Thanks all ! Answer Thanks for all these answers

Searching for a specific text value in a column in SQLite3

Suppose I have a table named ‘Customer’ with many columns and I want to display all customers who’s name ends with ‘Thomas'(Lastname = ‘Thomas’). The following query shows an empty result(no rows). Also it didn’t show any error. While executing the following query give me correct result. I would like to know what is the problem with my first query.

Advertisement