GraphQL puas yog lus nug?
GraphQL puas yog lus nug?

Video: GraphQL puas yog lus nug?

Video: GraphQL puas yog lus nug?
Video: GraphQL Explained in 100 Seconds 2024, Kaum ib hlis
Anonim

GraphQL yog a lus nug rau koj tus API, thiab lub server-sab runtime rau kev ua haujlwm lus nug los ntawm kev siv hom system koj txhais rau koj cov ntaub ntawv. GraphQL tsis khi rau ib qho tshwj xeeb database lossis lub cav khaws cia thiab hloov pauv los ntawm koj cov cai thiab cov ntaub ntawv uas twb muaj lawm.

Ntawm no, yog GraphQL ib hom lus?

GraphQL yog ib qho qhib cov ntaub ntawv query thiab manipulation lus rau APIs, thiab lub sijhawm ua haujlwm rau kev ua tiav cov lus nug nrog cov ntaub ntawv uas twb muaj lawm. GraphQL tau tsim los ntawm Facebook hauv 2012 ua ntej tshaj tawm hauv 2015.

Ib yam li ntawd, GraphQL sau ua hom lus twg? JavaScript Ruby Scala

Tsis tas li ntawd, GraphQL cov lus nug yog dab tsi?

A GraphQL lus nug yog siv los nyeem lossis nqa cov txiaj ntsig thaum kev hloov pauv yog siv los sau lossis tshaj tawm qhov txiaj ntsig. Nyob rau hauv ob qho tib si, kev ua haujlwm yog ib txoj hlua yooj yim uas a GraphQL server tuaj yeem txheeb xyuas thiab teb nrog cov ntaub ntawv hauv ib hom ntawv tshwj xeeb. GraphQL cov lus nug pab kom txo tau cov ntaub ntawv.

GraphQL puas siv SQL?

GraphQL yog lwm txoj rau REST, tsis yog SQL ntawv . GraphQL yog tsis yog SQL ntawv ! Hloov chaw, GraphQL yog data-agonistic, thiab GraphQL , yog ib txoj kev ua tau thiab nrov tshaj plaws, siv SQL mus nqa cov ntaub ntawv.

Pom zoo: