Building a GraphQL Server [Part 4] - JSON Server & Axios

preview_player
Показать описание
In part 4 of 5 of this series we will move away from hardcoded data and implement JSON-server which gives us a mock REST API. We will also install Axios to make our requests.

CODE: Code for this project

BECOME A PATRON: Show support & get perks!

ONE TIME DONATIONS:

FOLLOW TRAVERSY MEDIA:

EDUONIX COURSES: Please use affiliate links from website below
Рекомендации по теме
Комментарии
Автор

Thank you Brad, for all your amazing video tutorials and crash courses. It has been very useful to me

prashanthc
Автор

Thank you! Lesson learned and finished!

daronwolff
Автор

Press alt+shift+f you can format the code automatically

隔山打蜗牛
Автор

Fantastic video, try to understand how use it with real server with node.js and mongoDB.

Herclia
Автор

So, in the GraphQL client, if I'm requesting for fewer fields (columns) than that exist in a given table, would the query on the database still be SELECT * from TABLE, instead of only the required fields, say, SELECT a, b from TABLE?

sameerachanta
Автор

Hi. This video is really great. I have set up my own API based on the concepts you are teaching here. So great!

I have a question though about the GraphQL types. In this series you return the GraphQLString and a GraphQLInt type inside of your new GraphQLObjectType.

However, if my data values are arrays or objects how can I return them? For example there isn't a GraphQLArray, so how do I handle the case where my returning data field is an array?

For example, in this case the incoming data "classCode" field value is an array not a string:

const CourseType = new GraphQLObjectType({
name: 'Course',
fields: ()=> ({
classCode:{ type: GraphQL....? },
})

I'm sure you are supper busy, so thank you very much for your time.

jasonallshorn
Автор

How can console.log final query execute through graphql wrapper?

searchingname
Автор

How do you query by more than one field, but make them optional. ie. I might want to query by email or email and age > 27

devopssimon
Автор

#6:41 i get "message": "connect ECONNREFUSED ::1:3000"

SOLVED

yapayzeka
Автор

how to make full screen background-image responsive??

Grewal
Автор

Yang milih allah like 800 ya yang milih dajal abaikan saja

fuwosjgxyeuusgz
welcome to shbcf.ru