docker-compose build
docker-compose up
yarn install
yarn start:dev
# npm이면 npm으로 다운받아주세요.
yarn add @apollo/client graphql cross-fetch
- localhost:5500/graphql 플레이그라운드 접속 가능
- client_example.ts 예제 확인
mutation {
createPointTransaction(createPointTransactionInput: {
value: Int!
currency: String!
transactionIndex: Int!
transactionResult: String!
account: string!
destination: String!
fee: Int!
transactionType: String!
path: [String!]
hash: String
}){
// 받고 싶은 필드를 입력하세요. ex) id, value, currency
}
}
query {
getPointTransactions {
// 받고 싶은 필드를 입력하세요. ex) id, value, currency
}
}