我有一个使用express、express-graphql、graphql和graphql-upload实现的 GraphQL 后端。我的 GraphQL 架构声明如下:
type OProject {
_id: ID!
title: String!
theme: String!
budget: Float!
documentation: String!
date: Date
}
input IProject {
title: String!
theme: String!
budget: Float!
file: Upload!
}
type Mutations {
create(data: IProject): OProject
}
type Mutation {
Project: Mutations
}
Run Code Online (Sandbox Code Playgroud)
我想使用axioscreate在/graphql 上向我的 GraphQL API 发出请求。我该怎么办?