DEV Community

loading...

What are TOP ERRORS / PROBLEMS in a MERN+Apollo/GraphQL project??? I’m getting a empty [] in my console

Bret
・1 min read

I’m getting a [] when I make a query in the GraphQL editor.

It’s console logging my getPosts, but not my getStore, getProducts, ect.... what causes that?

Discussion (2)

Collapse
hb profile image
Henry Boisdequin

Can I see the code, please? This is necessary for me to know what the issue is.

Collapse
yobretyo profile image
Bret Author

I created my schema, model, my resolver and added it to the main index. It’s “SHOWING” for fields, but it’s not getting data from MONGODB. It’s console logging empty [ ]

Forem Open with the Forem app