Java知识分享网 - 轻松学习从此开始!    

Java知识分享网

        
AI编程,程序员挑战年入30~100万高级指南 - 职业规划
SpringBoot+SpringSecurity+Vue权限系统高级实战课程        

IDEA永久激活

Java微信小程序电商实战课程(SpringBoot+VUe)

     

AI人工智能学习大礼包

     

PyCharm永久激活

66套java实战课程无套路领取

     

Cursor+Claude AI编程 1天快速上手视频教程

     

Full Stack GraphQL Applications With React, Node.js, and Neo4j (William Lyon) PDF 下载


时间:2024-03-19 11:36来源:http://www.java1234.com 作者:转载  侵权举报
Full Stack GraphQL Applications With React, Node.js, and Neo4j (William Lyon)
失效链接处理
Full Stack GraphQL Applications With React, Node.js, and Neo4j (William Lyon) PDF 下载

 


用户下载说明:
电子版仅供预览,下载后24小时内务必删除,支持正版,喜欢的请购买正版书籍:
https://product.dangdang.com/11256745356.html

 
相关截图:
 



主要内容:


1.2 GraphQL
At its core, GraphQL is a specification for building APIs. The GraphQL specification
describes an API query language and a way of fulfilling those requests. When building
a GraphQL API, we describe the data available using a strict type system. These type
definitions become the specification for the API, and the client is free to request the
data it requires based on these type definitions, which also define the entry points for
the API.
GraphQL is typically framed as an alternative to REST, which is the API paradigm
you are mostly likely to be familiar with. This can be true in some cases; however,
GraphQL can also wrap existing REST APIs or other data sources. This is due to the
benefit of GraphQL being data-layer-agnostic, meaning we can use GraphQL with any
data source.
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your
existing data. GraphQL provides a complete and understandable description of the data in
your API, gives clients the power to ask for exactly what they need and nothing more, makes
it easier to evolve APIs over time, and enables powerful developer tools.

 

1.2.1 GraphQL type definitions
Rather than being organized around endpoints that map to resources (as with REST),
GraphQL APIs are centered around type definitions that define the data types, fields,
and how they are connected in the API. These type definitions become the schema of
the API, which is served from a single endpoint.
Since GraphQL services can be implemented in any language, a language-agnostic
GraphQL Schema Definition Language (SDL) is used to define GraphQL types. Let’s
look at an example in figure 1.2, motivated by considering a simple movie application.
Imagine you’ve been hired to create a website that allows users to search a movie cata
log for movie details, such as title, actors, and description, as well as show recommen
dations for similar movies the user may find interesting.
 




 
------分隔线----------------------------


锋哥推荐