일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
- concept
- built in object
- typeScript
- express.js
- web
- Interface
- useState
- Redux
- tailwindcss
- nextJS
- blockchain
- HTML
- REACT
- 기준
- graphQL
- CLASS
- Props
- solidity
- evm
- CSS
- API
- hardhat
- JavaScript
- middleware
- SSR
- bitcoin
- Ethereum
- node.js
- 삶
- error
- Today
- Total
ReasonJun
GraphQL : Concept 본문
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. It is a declarative language, which means that you describe what data you want, not how to get it. This makes it more efficient and flexible than traditional REST APIs.
GraphQL is organized in terms of types and fields, not endpoints. This means that you can ask for exactly the data you need, without having to make multiple requests. For example, if you want to get the name and age of a user, you can simply ask for the name and age fields on the User type.
GraphQL is a powerful tool that can be used to build more efficient and flexible APIs. It is supported by a growing number of libraries and frameworks, making it easy to get started.
Here are some of the benefits of using GraphQL:
- Efficiency: GraphQL can be more efficient than traditional REST APIs because it allows you to ask for exactly the data you need. This can reduce the number of requests that need to be made, and it can also improve performance.
- Flexibility: GraphQL is a more flexible language than REST APIs. You can ask for data in any order, and you can also nest queries. This makes it easier to build complex applications.
- Scalability: GraphQL can be scaled to handle large amounts of traffic. This is because GraphQL servers can cache queries and results, which reduces the load on the database.
If you are looking to build a more efficient, flexible, and scalable API, then GraphQL is a good option to consider.
Here are some of the popular GraphQL implementations:
- Apollo Client: A JavaScript client library for GraphQL.
- Relay: A JavaScript framework for building GraphQL applications.
- GraphQL Yoga: A TypeScript framework for building GraphQL applications.
- Hasura GraphQL Engine: A serverless GraphQL engine that can be used to build APIs without writing any code.
'Backend > GraphQL' 카테고리의 다른 글
GraphQL : Fetch Policy (0) | 2023.09.06 |
---|---|
GraphQL : Normalization (0) | 2023.09.06 |
GraphQL : Cache (0) | 2023.09.06 |
GraphQL : Apollo (0) | 2023.09.05 |
GraphQL : Resolver (0) | 2023.09.04 |