Aug
SEP
Oct
01
2021
2022
2023
About this capture
Organization:
Internet Archive
Focused crawls are collections of frequently-updated webcrawl data from narrow (as opposed to broad or wide) web crawls, often focused on a single domain or subdomain.
T h e W a y b a c k M a c h i n e - h t t p : / / w e b . a r c h i v e . o r g / w e b / 2 0 2 2 0 9 0 1 2 3 4 1 5 1 / h t t p s : / / g r a p h q l . o r g /
G r a p h Q L
L e a r n C o d e C o m m u n i t y F A Q S p e c F o u n d a t i o n N e w s
L e a r n C o d e C o m m u n i t y F A Q S p e c F o u n d a t i o n N e w s
G r a p h Q L
D e s c r i b e y o u r d a t a
type Project {
name : String
tagline : String
contributors : [ User ]
}
A s k f o r w h a t y o u w a n t
{
project ( name : "GraphQL" ) {
tagline
}
}
G e t p r e d i c t a b l e r e s u l t s
{
"project" : {
"tagline" : "A query language for APIs"
}
}
G e t S t a r t e d L e a r n M o r e
A q u e r y l a n g u a g e f o r y o u r A P I
G r a p h Q L i s a q u e r y l a n g u a g e f o r A P I s a n d a r u n t i m e f o r f u l f i l l i n g t h o s e q u e r i e s w i t h y o u r e x i s t i n g d a t a . G r a p h Q L p r o v i d e s a c o m p l e t e a n d u n d e r s t a n d a b l e d e s c r i p t i o n o f t h e d a t a i n y o u r A P I , g i v e s c l i e n t s t h e p o w e r t o a s k f o r e x a c t l y w h a t t h e y n e e d a n d n o t h i n g m o r e , m a k e s i t e a s i e r t o e v o l v e A P I s o v e r t i m e , a n d e n a b l e s p o w e r f u l d e v e l o p e r t o o l s .
A s k f o r w h a t y o u n e e d ,
g e t e x a c t l y t h a t
S e n d a G r a p h Q L q u e r y t o y o u r A P I a n d g e t e x a c t l y w h a t y o u n e e d , n o t h i n g m o r e a n d n o t h i n g l e s s . G r a p h Q L q u e r i e s a l w a y s r e t u r n p r e d i c t a b l e r e s u l t s . A p p s u s i n g G r a p h Q L a r e f a s t a n d s t a b l e b e c a u s e t h e y c o n t r o l t h e d a t a t h e y g e t , n o t t h e s e r v e r .
{
hero {
name h e i g h t m a s s
}
}
{
"hero" : {
"name" : "Luke Skywalker"
}
}
{
"hero" : {
"name" : "Luke Skywalker" ,
"height" : 1.72
}
}
{
"hero" : {
"name" : "Luke Skywalker" ,
"height" : 1.72 ,
"mass" : 77
}
}
G e t m a n y r e s o u r c e s
i n a s i n g l e r e q u e s t
G r a p h Q L q u e r i e s a c c e s s n o t j u s t t h e p r o p e r t i e s o f o n e r e s o u r c e b u t a l s o s m o o t h l y f o l l o w r e f e r e n c e s b e t w e e n t h e m . W h i l e t y p i c a l R E S T A P I s r e q u i r e l o a d i n g f r o m m u l t i p l e U R L s , G r a p h Q L A P I s g e t a l l t h e d a t a y o u r a p p n e e d s i n a s i n g l e r e q u e s t . A p p s u s i n g G r a p h Q L c a n b e q u i c k e v e n o n s l o w m o b i l e n e t w o r k c o n n e c t i o n s .
{
hero {
name
friends {
name
}
}
}
{
"hero" : {
"name" : "Luke Skywalker" ,
"friends" : [
{ "name" : "Obi-Wan Kenobi" } ,
{ "name" : "R2-D2" } ,
{ "name" : "Han Solo" } ,
{ "name" : "Leia Organa" }
]
}
}
D e s c r i b e w h a t ’ s p o s s i b l e
w i t h a t y p e s y s t e m
G r a p h Q L A P I s a r e o r g a n i z e d i n t e r m s o f t y p e s a n d f i e l d s , n o t e n d p o i n t s . A c c e s s t h e f u l l c a p a b i l i t i e s o f y o u r d a t a f r o m a s i n g l e e n d p o i n t . G r a p h Q L u s e s t y p e s t o e n s u r e A p p s o n l y a s k f o r w h a t ’ s p o s s i b l e a n d p r o v i d e c l e a r a n d h e l p f u l e r r o r s . A p p s c a n u s e t y p e s t o a v o i d w r i t i n g m a n u a l p a r s i n g c o d e .
{
hero {
name
friends {
name
homeWorld {
name
climate
}
species {
name
lifespan
origin {
name
}
}
}
}
}
type Query {
hero : Character
}
type Character {
name : String
friends : [ Character ]
homeWorld : Planet
species : Species
}
type Planet {
name : String
climate : String
}
type Species {
name : String
lifespan : Int
origin : Planet
}
M o v e f a s t e r w i t h
p o w e r f u l d e v e l o p e r t o o l s
K n o w e x a c t l y w h a t d a t a y o u c a n r e q u e s t f r o m y o u r A P I w i t h o u t l e a v i n g y o u r e d i t o r , h i g h l i g h t p o t e n t i a l i s s u e s b e f o r e s e n d i n g a q u e r y , a n d t a k e a d v a n t a g e o f i m p r o v e d c o d e i n t e l l i g e n c e . G r a p h Q L m a k e s i t e a s y t o b u i l d p o w e r f u l t o o l s l i k e G r a p h i QL b y l e v e r a g i n g y o u r A P I ’ s t y p e s y s t e m .
E v o l v e y o u r A P I
w i t h o u t v e r s i o n s
A d d n e w f i e l d s a n d t y p e s t o y o u r G r a p h Q L A P I w i t h o u t i m p a c t i n g e x i s t i n g q u e r i e s . A g i n g f i e l d s c a n b e d e p r e c a t e d a n d h i d d e n f r o m t o o l s . B y u s i n g a s i n g l e e v o l v i n g v e r s i o n , G r a p h Q L A P I s g i v e a p p s c o n t i n u o u s a c c e s s t o n e w f e a t u r e s a n d e n c o u r a g e c l e a n e r , m o r e m a i n t a i n a b l e s e r v e r c o d e .
type Film {
title : String
episode : Int
releaseDate : String
}
type Film {
title : String
episode : Int
releaseDate : String
openingCrawl : String
}
type Film {
title : String
episode : Int
releaseDate : String
openingCrawl : String
director : String
}
type Film {
title : String
episode : Int
releaseDate : String
openingCrawl : String
director : String
directedBy : Person
}
type Person {
name : String
directed : [ Film ]
actedIn : [ Film ]
}
type Film {
title : String
episode : Int
releaseDate : String
openingCrawl : String
director : String @deprecated
directedBy : Person
}
type Person {
name : String
directed : [ Film ]
actedIn : [ Film ]
}
B r i n g y o u r o w n
d a t a a n d c o d e
G r a p h Q L c r e a t e s a u n i f o r m A P I a c r o s s y o u r e n t i r e a p p l i c a t i o n w i t h o u t b e i n g l i m i t e d b y a s p e c i f i c s t o r a g e e n g i n e . W r i t e G r a p h Q L A P I s t h a t l e v e r a g e y o u r e x i s t i n g d a t a a n d c o d e w i t h G r a p h Q L e n g i n e s a v a i l a b l e i n m a n y l a n g u a g e s . Y o u p r o v i d e f u n c t i o n s f o r e a c h f i e l d i n t h e t y p e s y s t e m , a n d G r a p h Q L c a l l s t h e m w i t h o p t i m a l c o n c u r r e n c y .
type Character {
name : String
homeWorld : Planet
friends : [ Character ]
}
class Character {
getName ( ) {
return this . _name
}
getHomeWorld ( ) {
return fetchHomeworld ( this . _homeworldID )
}
getFriends ( ) {
return this . _friendIDs . map ( fetchCharacter )
}
}
# type Character {
class Character :
# name : String
def name ( self ) :
return self . _name
# homeWorld : Planet
def homeWorld ( self ) :
return fetchHomeworld ( self . _homeworldID )
# friends : [ Character ]
def friends ( self ) :
return map ( fetchCharacter , self . _friendIDs )
public class Character {
public String Name { get ; }
public async Task < Planet > GetHomeWorldAsync ( ) {
return await FetchHomeworldAsync ( _HomeworldID ) ;
}
public async IEnumerable < Task < Character > > GetFriendsAsync ( ) {
return _FriendIDs . Select ( FetchCharacterAsync ) ;
}
}
W h o ’ s u s i n g G r a p h Q L ?
F a c e b o o k ' s m o b i l e a p p s h a v e b e e n p o w e r e d b y G r a p h Q L s i n c e 2 0 1 2 . A G r a p h Q L s p e c w a s o p e n s o u r c e d i n 2 0 1 5 a n d i s n o w a v a i l a b l e i n m a n y e n v i r o n m e n t s a n d u s e d b y t e a m s o f a l l s i z e s .
M o r e G r a p h Q L U s e r s
I n t r o d u c t i o n t o G r a p h Q L B e s t P r a c t i c e s F r e q u e n t l y A s k e d Q u e s t i o n s T r a i n i n g C o u r s e s
G i t H u b G r a p h Q L S p e c i f i c a t i o n L i b r a r i e s & T o o l s S e r v i c e s & V e n d o r s
@ g r a p h q l D i s c o r d S t a c k O v e r f l o w R e s o u r c e s E v e n t s L a n d s c a p e
& M o r e
N e w s B l o g G r a p h Q L F o u n d a t i o n G r a p h Q L C o m m u n i t y G r a n t L o g o a n d B r a n d G u i d e l i n e s C o d e o f C o n d u c t C o n t a c t U s E d i t t h i s p a g e
C o p y r i g h t © 2 0 2 2 T h e G r a p h Q L F o u n d a t i o n . A l l r i g h t s r e s e r v e d .
F o r w e b s i t e t e r m s o f u s e , t r a d e m a r k p o l i c y a n d g e n e r a l p r o j e c t p o l i c i e s p l e a s e s e e h t t p s : / / l f p r o j e c t s . o r g .