jeffwillette / graphql-go-pets-example Goto Github PK
View Code? Open in Web Editor NEWAn example of neelance/graphql-go, resolves against sqlite
An example of neelance/graphql-go, resolves against sqlite
hi
I'm clone your code and running it. but I found this error
{
getUser(id: 1) {
name
id
}
}
http response
"json: error calling MarshalJSON for type json.RawMessage: invalid character '}' looking for beginning of value\n"
backend error
2018/04/15 23:43:59 graphql: panic occurred: graphql: could not marshal
goroutine 778 [running]:
golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/log.(*DefaultLogger).LogPanic(0x47a21f8, 0x458f060, 0xc420214480, 0x44c3d00, 0xc4202183c0)
/Users/zhaogaolong/go/src/golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/log/log.go:21 +0x77
golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).handlePanic(0xc420218180, 0x458f060, 0xc420214480)
/Users/zhaogaolong/go/src/golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:29 +0x87
panic(0x44c3d00, 0xc4202183c0)
/usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:505 +0x229
golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).execSelectionSet(0xc420218180, 0x458f060, 0xc420214d50, 0x0, 0x0, 0x0, 0x458d060, 0xc4201741c0, 0xc42026ad00, 0x44da5e0, ...)
/Users/zhaogaolong/go/src/golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:273 +0xb40
golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec.execFieldSelection(0x458f060, 0xc420214480, 0xc420218180, 0xc420170380, 0xc42026ad00, 0x1)
/Users/zhaogaolong/go/src/golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:205 +0x2cc
golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).execSelections.func1(0xc4200a47a0, 0xc420218180, 0x458f060, 0xc420214480, 0xc42026a9c0, 0xc420170380)
/Users/zhaogaolong/go/src/golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:74 +0x16c
created by golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec.(*Request).execSelections
/Users/zhaogaolong/go/src/golang.zhaogaolong.com/graphql-go-pets-example/vendor/github.com/graph-gophers/graphql-go/internal/exec/exec.go:70 +0x476
I not edit your code. I use dep ensure
dowload require golang codes.
go version: go version go1.10 darwin/amd64
go run *.go
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function ‘sqlite3SelectNew’:
sqlite3-binding.c:129019:10: warning: function may return address of local variable [-Wreturn-local-addr]
129019 | return pNew;
| ^~~~
sqlite3-binding.c:128979:10: note: declared here
128979 | Select standin;
| ^~~~~~~
INFO[0002] starting server fields.time="2023-03-05 00:36:03.512319537 -0500 EST m=+2.752403774"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.