Closed TomLisankie closed 7 months ago
The WithX
methods return a new client with modified state. Try changing your example to something like this:
configuredClient := conn.WithConfig(map[string]interface{}{
"allow_user_specified_id": true,
})
err := configuredClient.Query(...)
Closing this since it's been inactive for a while. Feel free to reopen if you're still having a problem, @TomLisankie.
Describe the bug Using the
(edgedb.Client).WithConfig
does not seem to actually do anything. All other client functionality seems to work as expectedReproduction
Expected behavior I expected this to achieve the same effect as if I ran the following EdgeQL:
configure instance set allow_user_specified_id := true;
Versions (please complete the following information):
edgedb-go
version: 0.14.1-0.20230725211155-0d5d4814b9bdAdditional context I'm trying to do this on the setup of my API server in the context of docker-compose. The whole purpose of all of this is so I can run automated tests via GitHub Actions. I ended up modifying my
docker-compose.yml
file to pass in anedgedb-bootstrap.yml
as specified here so that I could at least make sure I was getting my config correct whether the Go library is working correctly or not.