playGround에서 GraphQL API 요청하는 방법
3320 단어 CSGRAPHQL-APICS
연관 내용
[Rest-API / GraphQL-API]
[API 관련 프로그램]
playGround
-
GraphQL-API의 API 명세를 볼 수 있고 실행해 볼 수 있는 프로그램
-
Shift + Space bar
: 입력해야 하는 값을 보여줌 -
!
: 필수값 -
[!]
: 있다면 무조건 보내줘야 하는 조건 필수값 -
API명 = 메소드 = EndPoint

1. 조회: QUERY

query{
API명(인자:값){
조회(return)하려는 정보
}
}
예시
query{
fetchBoard(number:1){
title
contents
writer
}
}
2. 생성/수정/삭제 : MUTATION

mutation{
API명(인자:값){
조회(return)하려는 정보
}
}
예시
mutation {
createBoard(writer:"juhee", title:"null", contents:"null" ){
number
_id
}
}
Author And Source
이 문제에 관하여(playGround에서 GraphQL API 요청하는 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@e_juhee/playGround저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)