The "/graphql" function is not imported

First place you’ll want to look is in your redwood.toml file. I also recommend checking out the docs about what redwood.toml is for. What is your apiUrl set to?

When I use Docker I have it point to http://localhost:8911/api like so:

[web]
  title = "Redwood App"
  port = 8910
  apiUrl = "http://localhost:8911/api"
[api]
  port = 8911

I then include the following in my API Dockerfile.

ENTRYPOINT [ "yarn", "rw", "serve", "api", "--port", "8911", "--rootPath", "/api" ]

More context in this article if what I just said doesn’t make sense:

1 Like