Giter VIP home page Giter VIP logo

gqlgen-sqlboiler-examples's People

Contributors

richardlindhout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sjhitchner

gqlgen-sqlboiler-examples's Issues

Can't get your examples to work

I can't for the life of me get your social networking example to work.

Every time I run go run convert_plugin.go it results in a panic. However, I've copied the files exactly as you have.

Panic trace

go run convert_plugin.go
[convert] get boiler models
[convert] get extra's from schema
[convert] get model with information
[convert] render preload.gotpl
renderError template.gotpl: template: template.gotpl:26:3: executing "template.gotpl" at <reserveImport $.BackendModelsPath>: error calling reserveImport: empty ambient import
[convert] render convert.gotpl
renderError template.gotpl: template: template.gotpl:27:3: executing "template.gotpl" at <reserveImport $.BackendModelsPath>: error calling reserveImport: empty ambient import
[convert] render convert_input.gotpl
renderError template.gotpl: template: template.gotpl:27:3: executing "template.gotpl" at <reserveImport $.BackendModelsPath>: error calling reserveImport: empty ambient import
[convert] render filter.gotpl
renderError template.gotpl: template: template.gotpl:26:3: executing "template.gotpl" at <reserveImport $.BackendModelsPath>: error calling reserveImport: empty ambient import
panic: recursive or concurrent call to RenderToFile detected

goroutine 1 [running]:
github.com/99designs/gqlgen/codegen/templates.Render(0xc000137af0, 0xe, 0x0, 0x0, 0xc0001cc1c0, 0x65, 0x101, 0x0, 0x0, 0x0, ...)
        /[MY_ACCOUNT]/go/pkg/mod/github.com/99designs/[email protected]/codegen/templates/templates.go:63 +0xfdf
github.com/99designs/gqlgen/codegen.GenerateCode(0xc0007e1300, 0xc0007e1300, 0x0)
        /Users/randa:8 +0xfb
github.com/99designs/gqlgen/api.Generate(0xc00021c3c0, 0xc000175f48, 0x2, 0x2, 0x0, 0xc000111610)
        /[MY_ACCOUNT]/go/pkg/mod/github.com/99designs/[email protected]/api/generate.go:77 +0x378
main.main()
        /[MY_ACCOUNT]/Desktop/golang/github.com/randallmlough/testing-maria/convert_plugin.go:27 +0x183
exit status 2
make: [helpers] Error 1 (ignored)

Here is 1:1 copy of your example https://github.com/randallmlough/sqlboiler-graphql-schema (minus the generated files/dirs since that is where the issue lies)

I added a Makefile with each command with a make gen command that should execute the operations which you have listed.

SQLBoiler Version: v4.1.2

Please let me know what I am doing wrong

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.