nestjs / graphql

GraphQL (TypeScript) module for Nest framework (node.js) 🍷
https://docs.nestjs.com/graphql/quick-start
MIT License
1.46k stars 396 forks source link

graphql api respond null when resolveproperty is issued #89

Closed cyril-lakech closed 5 years ago

cyril-lakech commented 5 years ago

I'm submitting a sos


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

I tried to create a simple exemple of graphql API but for unknown reason the query always respond null

Expected behavior

the query should response with a list of entities

Minimal reproduction of the problem with instructions

git clone this repo on branch strangeBug and go into demo directory https://github.com/AxaGuilDEv/nestjs-talk/tree/strangeBug/demo

npm install npm run start:dev

got to localhost:3001/graphql

run a query

{
  callForPapers {
    id
  }
}

Get a null response and cry :'(

Environment


Nest version: 5.4.0


For Tooling issues:
- Node version: v10
- Platform:  Mac

Others:

cyril-lakech commented 5 years ago

still don't know why, but using the graphql demo project with same use case, I don't face this issue so forget about it. It will stay a mystery for years ^^

lock[bot] commented 4 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.