-
I am trying to set up a simple connection to my postgres database server using a brand new wundergraph install. I went through the tutorials, and specifically this page, but it does not say what to do after I configure the wundergraph.config.ts file, so forgive the naive question. I added these lines to my "wundergraph.config.ts" file.
Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the solution, so I am answering my own message so others can benefit. nextjs was not loading the postgres introspect thing because there were TWO "configureWunderGraphApplication()" directives. There was another main one with more stuff in it. Within that I changed: to
So now it works and a new file was created under general/introspection/database that seems to load the schema from my database |
Beta Was this translation helpful? Give feedback.
I found the solution, so I am answering my own message so others can benefit.
nextjs was not loading the postgres introspect thing because there were TWO "configureWunderGraphApplication()" directives. There was another main one with more stuff in it. Within that I changed:
apis: [spaceX]
to
apis: [spaceX, myDB]
So now it works and a new file was created under general/introspection/database that seems to load the schema from my database