adonis-graphql
adonis-graphql copied to clipboard
Receiving unexpected "[Object: null prototype]"
Almost same like this issue https://github.com/apollographql/apollo-server/issues/3149
type Mutation {
test(payload: TestInput): TestOutput
}
input TestInput {
id: Int!
}
type TestOutput {
id: Int!
}
Resolver:
Mutation: {
test: async (_, args, {auth}) => {
return args.payload
}
}
Query:
mutation MutationTest {
test(payload: {id: 1}) {
id
}
}
Results:
[Object: null prototype] {
id: 1
}
😕
@18601673727 could you provide a repo (github/gitlab/...git version controller) i want to try it out