Apollo 图形错误 ;{message:“语法错误:应为名称,在”30807695“中找到;,
我使用crypto js散列数据,并通过apollo angular将其发送到graphql 我尝试使用方法toString()将其作为字符串发送即使使用async,100个变量中的90个都失败,等待返回空字符串。然后将对象拆分为两个变量,一个作为int数组,第二个作为int。没有成功,因为即使接受的查询类型是int,它仍然显示相同的错误。还尝试使其成为字符串数组,即使typeof是string,graphql也会将其识别为int 阿波罗突变:Apollo 图形错误 ;{message:“语法错误:应为名称,在”30807695“中找到;,,apollo,express-graphql,Apollo,Express Graphql,我使用crypto js散列数据,并通过apollo angular将其发送到graphql 我尝试使用方法toString()将其作为字符串发送即使使用async,100个变量中的90个都失败,等待返回空字符串。然后将对象拆分为两个变量,一个作为int数组,第二个作为int。没有成功,因为即使接受的查询类型是int,它仍然显示相同的错误。还尝试使其成为字符串数组,即使typeof是string,graphql也会将其识别为int 阿波罗突变: return this.apollo.mutate
return this.apollo.mutate<Query>({
errorPolicy: 'all',
mutation: gql`
mutation Mutation{
signUp(words:${words},sigBytes:${sigBytes})
}`
});
作为字符串的所有单词的架构类型:
signUp(words: String! ,sigBytes: Int!): String,
预期的输出是将整个数据发送到express,以将其解密回来
只有以下错误:
GraphQLError {message: "Syntax Error: Expected Name, found Int "-379818220"",
GraphQLError {message: "Syntax Error: Expected Name, found Int "-379818220"",