服务器端使用REST返回true或false。如何在上面写一个graphql-tag?
这是服务器返回的内容:{true}
我尝试过:
const GET_accESS = gql`
query getaccess {
access @rest(type: "access",method: "GET" path: "/access") {
access
}
}
`
但是没有返回任何内容,因为我的json对象不是{access:true}而是{true}