rbi-learning / Today-I-Learned

1 stars 0 forks source link

12/08 Today I learned #122

Open AlexandraCaplan opened 4 years ago

AlexandraCaplan commented 4 years ago

Today I learned about new methods for returning data!

.find returns the first item that matches your search .filter returns all items that match the search .object.assign replaces data within the object

We also learned about linking the front to backend

Then we need to 'stringify' the body for the server to accept it - eg. JSON.stringify({ description: form.description.value }) How to get the user list of all tasks: app.get("/tasks", (_request, response) => { response.json(tasks)

I also learned a bit about SQL in the videos - to start: SELECT FROM WHERE ->= <> AND OR ORDER BY DESC INSER INTO UPDATE CREATE DATABASE DROP DATABASE