Skip to content

Latest commit

ย 

History

History
38 lines (27 loc) ยท 819 Bytes

File metadata and controls

38 lines (27 loc) ยท 819 Bytes

๊ธฐ์—ฌ ๊ฐ€์ด๋“œ

๊ฐœ๋ฐœ ํ™˜๊ฒฝ ๊ตฌ์„ฑ

Rover CLI๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ์ง€ ์•Š์œผ์‹œ๋‹ค๋ฉด ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

$ curl -sSL https://rover.apollo.dev/nix/latest | sh

rover config ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด GraphOS์— ์ธ์ฆ์„ ํ•ฉ๋‹ˆ๋‹ค.

$ rover config auth

ํ•„์š”ํ•œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.

export GITHUB_API_TOKEN=<๊นƒํ—ˆ๋ธŒ API ํ† ํฐ>

rover dev ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๊ฐœ๋ฐœ์šฉ GraphQL ์„œ๋ฒ„๋ฅผ ์˜ฌ๋ฆฝ๋‹ˆ๋‹ค.

$ APOLLO_GRAPH_REF=dalestudy@current \
  rover dev --supergraph-config supergraph.yaml --router-config router.yaml

curl ๋ช…๋ น์–ด๋กœ ํ…Œ์ŠคํŠธํ•ด๋ด…๋‹ˆ๋‹ค.

$ curl --request POST \
  --header 'content-type: application/json' \
  --url 'https://dalestudy.fly.dev/' \
  --data '{"query":"query { __typename }"}'
{"data":{"__typename":"Query"}}%