adonis-graphql icon indicating copy to clipboard operation
adonis-graphql copied to clipboard

Receiving unexpected "[Object: null prototype]"

Open 18601673727 opened this issue 5 years ago • 1 comments

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 avatar Oct 13 '19 15:10 18601673727

@18601673727 could you provide a repo (github/gitlab/...git version controller) i want to try it out

annymosse avatar Dec 16 '19 13:12 annymosse